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
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