Gumstix connecting
Contents |
Talking to device server (on the Gumstix) from outside
HOST - bayete(160.103.5.120)
- execute:
redir --laddr=160.103.5.120 --lport=10000 --caddr=192.168.1.2 --cport=10000 &
redir is a port redirector. Its functionality basically consists of the ability to listen for TCP connections on a given port, and, when it recieves a connection, to then connect to a given destination address/port, and pass data between them.
GUMSTIX - gumstix(192.168.1.2)
- contents of /etc/hosts file (on Gumstix) has to be changed from:
127.0.0.1 localhost.localdomain localhost gumstix
192.168.1.1 bayete
to
127.0.0.1 localhost.localdomain localhost
192.168.1.2 gumstix
192.168.1.1 bayete
since when omniORB creates an IOR, it always put the IP address, instead of the hostname into it. So it does a name lookup for the host name and with the above setup it gets 127.0.0.1.
- run a device server without database:
# ./Eurotherm gumstix -nodb -dlist gumstix/eurotherm/1 -ORBendPoint 'giop:tcp::10000'
Ready to accept request
ANY machine(xxx.xxx.xxx.xxx)
- following command will open atkpanel which can talk to Eurotherm device server
any@machine:~/tango_noarm/bin$ ./atkpanel tango://bayete:10000/gumstix/eurotherm/1#dbase=no
File as a database
./Eurotherm gumstix -file=/root/properties/Eurotherm.prop -ORBendPoint 'giop:tcp::10000'