hylandz
Posts: 9
Joined: Thu Nov 28, 2013 6:19 pm

Ser2Net via 3G

Fri May 30, 2014 7:23 pm

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

recurry
Posts: 6
Joined: Wed May 07, 2014 11:34 pm

Re: Ser2Net via 3G

Thu Jun 05, 2014 1:45 am

Why not set the RPi up with a static ip?

ghans
Posts: 7882
Joined: Mon Dec 12, 2011 8:30 pm
Location: Germany

Re: Ser2Net via 3G

Thu Jun 05, 2014 7:31 am

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
• Don't like the board ? Missing features ? Change to the prosilver theme ! You can find it in your settings.
• Don't like to search the forum BEFORE posting 'cos it's useless ? Try googling : yoursearchtermshere site:raspberrypi.org

solyaris
Posts: 77
Joined: Thu Mar 27, 2014 11:03 am
Location: Genova, Italy
Contact: Website

Re: Ser2Net via 3G

Thu Jun 05, 2014 8:09 am


n3tm4n
Posts: 29
Joined: Tue Jun 10, 2014 11:34 am
Location: East Midlands, UK
Contact: Website

Re: Ser2Net via 3G

Wed Jun 11, 2014 6:38 pm

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.

Return to “Networking and servers”