Author Topic: HAL COM  (Read 4570 times)

peace

  • Newbie
  • *
  • Posts: 42
    • View Profile
HAL COM
« 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)
« Last Edit: May 24, 2016, 10:13:51 pm by peace »

systemshock

  • Full Member
  • ***
  • Posts: 170
    • View Profile
Re: HAL COM
« Reply #1 on: April 10, 2016, 02:40:18 pm »
cool.
"frog's in too princess's" it just basic NLP...

doggs

  • Sr. Member
  • ****
  • Posts: 371
    • View Profile
Re: HAL COM
« Reply #2 on: May 01, 2016, 10:29:08 pm »
thank you
be informed and always vote it will help you in the long run does not matter if your liberal, conservative or independent. stay informed and watch the votes in government not what the media tells you.

lightspeed

  • Hero Member
  • *****
  • Posts: 6763
    • View Profile
Re: HAL COM
« Reply #3 on: November 09, 2016, 03:21:20 pm »
 

Art

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3853
    • View Profile
Re: HAL COM
« Reply #4 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).
In the world of AI it's the thought that counts!

- Art -

cyberjedi

  • Hero Member
  • *****
  • Posts: 824
  • The Mighty Hal Machine
    • View Profile
Re: HAL COM
« Reply #5 on: November 16, 2016, 10:39:39 am »
im all over it
im loaded with X10 and ibm home director modules and serial connections