Page 1 of 1

Ser2Net via 3G

Posted: Fri May 30, 2014 7:23 pm
by hylandz
Currently working on a project that will monitor RS232 data and transmit it wirelessly to a Telent app while I'm in the field.
I've got the Rpi booting up into Ser2net fine and transmitting the data on a local Wi-Fi network which I can view on my Ipad perfectly.

My problem is the Rpi will be moved from device to device and I need to monitor the data sometimes miles out in the field from the control panel so I was thinking 3G, the only problem with this, is the 3G will create a new IP address every time it starts up and I do not want to lug around a monitor with me every time just to check what the IP is before I venture off into the field.

So need a few ideas if anybody could point me in the right direction, my thoughts are so far either some kind of script that would SMS or e-mail me the IP address or maybe an LCD screen built into a board that would tell me the IP address when it connects.

Thanks

Re: Ser2Net via 3G

Posted: Thu Jun 05, 2014 1:45 am
by recurry
Why not set the RPi up with a static ip?

Re: Ser2Net via 3G

Posted: Thu Jun 05, 2014 7:31 am
by ghans
Even if you use something like DynDNS you are propably behind
a firewall which blocks inbound connections and only opens
very few ports to the outside.

ghans

Re: Ser2Net via 3G

Posted: Thu Jun 05, 2014 8:09 am
by solyaris

Re: Ser2Net via 3G

Posted: Wed Jun 11, 2014 6:38 pm
by n3tm4n
I've done something similar before using an old Panasonic toughbook running debian so not Raspberry specific. I used it for an out of band management of network devices.

Anyway in that scenario I used auto ssh running on the touchbook to connect a ssh session back to a home IP (using DYNDNS or similar if static isn't available). I could then use port forwarding on the ssh tunnel to allow me to get back to the remote device easily whatever IP address it had.

I used the screen utility to keep the serial line active, so that I could pick up the session from where I last left it. It was all 9600 though so no real traffic to cause problems on slow links.

HTH.