HAI Omni communications starter code

BobS0327

Active Member
Attached is a link to a zip file that contains four files.   These files can be compiled on the Windows platform using a C compiler to create a very basic example of communicating with a Omni controller via ethernet.This is essentially starter code for any DIYer trying to get a better understanding of Omni ethernet communications.  I've used some of the code from Chuck Cannon's HAI library found at https://gitorious.org/hai/
 
Unfortunately Chuck's library hasn't been updated in a few years.  So, I had to make a few updates.  Most notable change was converting from UDP protocol to TCP protocol.
 
You will have to update the IP Address, Port, and key variables found at the top of the HAI.H file before you compile the code.  The starter code just gets the System Info and turns a light on for 60 seconds.
 
The code has been posted to encourage others to port it to the Arduino platform.
 
Code is too large to post in code tags on the forum and the forum will not allow me to up load the file.  So, I posted it on file dropper:
http://www.filedropper.com/haistarter
 
 
 
 
BobS0327 said:
Attached is a link to a zip file that contains four files.   These files can be compiled on the Windows platform using a C compiler to create a very basic example of communicating with a Omni controller via ethernet.This is essentially starter code for any DIYer trying to get a better understanding of Omni ethernet communications.  I've used some of the code from Chuck Cannon's HAI library found at https://gitorious.org/hai/
 
Unfortunately Chuck's library hasn't been updated in a few years.  So, I had to make a few updates.  Most notable change was converting from UDP protocol to TCP protocol.
 
You will have to update the IP Address, Port, and key variables found at the top of the HAI.H file before you compile the code.  The starter code just gets the System Info and turns a light on for 60 seconds.
 
The code has been posted to encourage others to port it to the Arduino platform.
 
Code is too large to post in code tags on the forum and the forum will not allow me to up load the file.  So, I posted it on file dropper:
http://www.filedropper.com/haistarter
 
When i clicked the link to filedropper, it just took me to my own filedropper account page.  Would you be able to share that file with me?  I would really appreciate it.
 
It appears that Filedropper only keeps the files available for a certain time period.  But anyway, if you PM me with your email address, I will send you a link to my cloud where I store the files.  You can then download the files.
 
 
Update..  I have re uploaded the zip file to file dropper.  So, it should be available from that source for the next few days
 
The link is http://www.filedropper.com/haistarter
 
 
 
BobS0327 said:
It appears that Filedropper only keeps the files available for a certain time period.  But anyway, if you PM me with your email address, I will send you a link to my cloud where I store the files.  You can then download the files.
 
 
Update..  I have re uploaded the zip file to file dropper.  So, it should be available from that source for the next few days
 
The link is http://www.filedropper.com/haistarter
Actually, the file just contained AES.cpp.  not other files were in there.  Should there have been more?
 
edwardt said:
Actually, the file just contained AES.cpp.  not other files were in there.  Should there have been more?
Ooops. Sorry.  My bad.  I just uploaded a file that contains all four source files.
 
Edward,
 
Not sure what the problem is with file dropper.  I verified the zip file to be sure all four files were in it prior to posting to file dropper.
 
But anyway, below is a link to my cloud which has all four files.  Please be advised that the link will expire in five days
 
http://1drv.ms/1vaMCcq
 
Back
Top