Page 1 of 1

Pass data from Arduino using TCP/IP

Posted: Sun May 08, 2011 12:18 pm
by fzr600
Hi,

I'm very new to the DomotiGa but find this project usefull and I'd like to pass my data from Arduino.
So, is there any way to pass data (meter values, events) from arduino to domotiga using TCP/IP network? I saw there is XML-RPC, but didn't find any API.
Any help would be appreciated.

G.

Re: Pass data from Arduino using TCP/IP

Posted: Mon May 09, 2011 1:47 pm
by luria
I'm using UDP and the bitwise library with my arduinos and perl scripts to pass this information to/from Domotiga. You can find one of my projects in the "Arduino"-forum with some (outdated) code. I'm reading temperatures and setting device states directly in the database. TCP had too much overhead for me. Passing and receiving UDP packets is near instantaneous, and made error handling easier than with TCP connections.

Re: Pass data from Arduino using TCP/IP

Posted: Mon May 09, 2011 2:03 pm
by fzr600
Could you please share a link to those posts? I'm interesting espetially in DomotiGa side :)

Re: Pass data from Arduino using TCP/IP

Posted: Mon May 09, 2011 10:50 pm
by luria
Sure:
http://domoticaforum.eu/viewtopic.php?f=63&t=5325

The Perl stuff is all very basic entrylevel code and my arduino C is a mess. But at least you'll get up and running.

The bitwise library is a bit ;) more complicated to install than other libraries - the files must be dropped into the ethernet library, and not all files can coexist.

Edit: Bytewise, not bitwise - https://bitbucket.org/bjoern/arduino_os ... /Ethernet/

Re: Pass data from Arduino using TCP/IP

Posted: Tue May 10, 2011 5:16 am
by fzr600
Thanks a lot!