I have been working on having a PIC control an Insteon home control network. I have made some progress. By using a Power-Linc Modem (serial) I can 'inject' Hex strings into the command and control network and turn lights and such on and off using a PIC. The Power-Linc Modem communicates at 19200 baud, and running a pic at 4mhz this can be achieved like so:
Code:
INCLUDE "modedefs.bas"
include "ALLDIGITAL.pbp"
OSCCON =$60 'clock speed
DEFINE OSC 4
serout2 PortB.1,32, [$02,$62,$1A,$8D,$A0,$05,$11,$FF] 'On
end
I need to find out how to control devices embedded into Insteon Scenes.
Anyone else doing any of this?
Pinout? I was asking because the manual I downloaded shows the serial port having Serial in (TTL) and serial in (RS232). Same for serial out (TTL and RS232) I just wanted to check which you are using. Probably your device is different.
You can test your RS232 by plugging into you PC and us a terminal program to look at what the PIC is sending.
Update: what I have found is, using the Insteon My ISY you set up the scenes and devices; basically programming the Power Line Modem (PLM) with the home control devices you choose. Then, in the Universal Devices Admin Console you can view Device Communication Events (Tools > Diagnostics > Event Viewer > 3. Device communication events) to capture the correct Hex string you can use in your own micro-controller program.