Zabaware Support Forums

Zabaware Forums => Ultra Hal Assistant File Sharing Area => Topic started by: peace on April 08, 2016, 11:06:18 pm

Title: HAL COM
Post by: peace on April 08, 2016, 11:06:18 pm
ok heres hal com you can control an arduino or other device through usb com port through .vbs and cmd.
 thanks to spitfire as i used his datefunction as a template
good luck ...... installation notes are in the zip file




the way this works is hal waits for "on" or "off" then
 opens "com on.vbs" or "com off.vbs"
the .vbs open command prompt (minimized) and sends the correct number to the
correct com port. the arduino listens for a 1 or 0 and turns the pin(13) high or low.
good luck.

use the larger download its modified to use the command "light on", "light off" instead of just "on" which turned on everytime "on" was said


serial function is a seperate plugin from hal com.

serial function plugin
the way this works
you give hal the command "light on" or "light off"  (no quotations)
the script opens a .vbs file that runs serialterm.exe with the required conditions
serial term sends a 1 for on or
a 0 for off
the arduino receives a 1 or 0 turns the light on or off and responds with
"the light os on" or
"the light is off"
serialterm receives the phrase the arduino sent and stores it in a file named log.txt
the the .vbs file closes serial term
serial Function.uhp then pauses for a second to allow log.txt to update
serial Function.uhp then reads log.txt and sends it out as hals responce.

hal com ( sending to arduino only)
serial function  (input output to an arduino)
Title: Re: HAL COM
Post by: systemshock on April 10, 2016, 02:40:18 pm
cool.
Title: Re: HAL COM
Post by: doggs on May 01, 2016, 10:29:08 pm
thank you
Title: Re: HAL COM
Post by: lightspeed on November 09, 2016, 03:21:20 pm
IS THEIR ANY WAY HAL CAN work with something like this , i guess it does it by wif  frequency?


https://www.amazon.com/Etekcity-Wireless-Electrical-Household-Appliances/dp/B00DQELHBS/ref=pd_lpo_60_tr_t_3?ie=UTF8&psc=1&refRID=2EA7D020F9D8D957C4ZF
Title: Re: HAL COM
Post by: Art on November 10, 2016, 07:15:15 am
The Arduino is controlling the signal sent to the COM or Serial ports whereas the device you selected uses RF (Radio Frequency) to turn appliance / light modules on or off. Sort of like the X-10 modules (of which I have lots).
Title: Re: HAL COM
Post by: cyberjedi on November 16, 2016, 10:39:39 am
im all over it
im loaded with X10 and ibm home director modules and serial connections