Thanks, Jason.  That makes sense.  I incorrectly thought both ports were http, but a raw tcp port for the second one makes more sense.  If it is the same protocol that the PLM speaks, it should be easy to add support for it to misterhouse.  It would also be good to iron out any issues with xPL and Insteon.  Reprogramming the PIC to support xPL sounds fun too.  So many projects, so little time. 
 
David


On 3/23/2011 6:08 PM, Jason Sharpee wrote:
From my research of the 2412N:

- There are two ports on the device, port 80 - http webui and port 9761 - raw insteon.

- The TCP 80 port is a standard http transport and there are some well documented links in my blog post on how to send commands.  No one has determined a way using this port to receive push notifications without polling.  I am not planning on doing anything which this port specifically for that reason.

- The TCP 9761 port is a direct link to the onboard serial PLM, so it should be straightforward to interface with a host "gateway" from Insteon Protocol to xPL.  I am assuming the 9761 port is synchronous, so I will just break up the commands / responses / status into individual xPL packets.   I bought a Insteon Motion sensor for the explicit purpose of testing out "Push Notifications" of motion events.

- it would also appear feasible to load custom firmware onto the 2412N as a Microchip PIC and someone with some effort to decode / modify some of the files. https://github.com/chadwackerman/openlinc  Theoretically with a bit of time someone could write a custom firmware that would host xPL functionality on the device itself.  Not an effort I can afford to take at the moment though. :(

-J



On Wed, Mar 23, 2011 at 5:30 PM, David Norwood <dnorwood2@yahoo.com> wrote:
I have been thinking a lot lately about the comet flavor of ajax using
the long poll technique.  One problem with 1-wire technology that we
have discussed here is that 1-wire devices can not initiate
communications and must be polled.  This is fine for weather sensors,
but can be a problem when latency is important (with motion sensors, for
example).

My understanding is that the 2412N has a http server (on at least 2
ports) that you connect to to issue commands and (I assume) retrieve
status updates.  Does anyone know if the 2412N employs any server push
technology such as long polling, or do we have to poll it for updates?
It would be nice if xAP or xPL actually ran on the device so it could
announce updates.

David

------------------------------------------------------------------------------
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software
be a part of the solution? Download the Intel(R) Manageability Checker
today! http://p.sf.net/sfu/intel-dev2devmar
________________________________________________________
To unsubscribe from this list, go to: http://sourceforge.net/mail/?group_id=1365


------------------------------------------------------------------------------ Enable your software for Intel(R) Active Management Technology to meet the growing manageability and security demands of your customers. Businesses are taking advantage of Intel(R) vPro (TM) technology - will your software be a part of the solution? Download the Intel(R) Manageability Checker today! http://p.sf.net/sfu/intel-dev2devmar
________________________________________________________ To unsubscribe from this list, go to: http://sourceforge.net/mail/?group_id=1365