GSM serial data

Hardware inside and outside of the ECU
Post Reply
User avatar
AndreyB
Site Admin
Posts: 14331
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

GSM serial data

Post by AndreyB »

Has anyone played with little GSM modules? Which one? How did it go? How hard was it?

Wonder what are the options for telemetry over GSM. I guess it would have to be GSM>TCP/IP on the internet, unless there are some serial P2P options via GSM/GPRS/2G/3G?
Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions

Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
puff
contributor
contributor
Posts: 2961
Joined: Mon Nov 11, 2013 11:28 am
Location: Moskau

Re: GSM serial data

Post by puff »

I'd say the simplest is to use wifi board (esp something) and connect it to wifi hotspot on any Android smartphone - no need to get extra sim, etc. However, that would still require you to have sort of a cloud and make your code connect to it to upload logs or to wait to connection, etc.
User avatar
AndreyB
Site Admin
Posts: 14331
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: GSM serial data

Post by AndreyB »

puff wrote:I'd say the simplest is to use wifi board (esp something) and connect it to wifi hotspot on any Android smartphone - no need to get extra sim, etc.
This sounds like a good idea for TCP/IP prototyping but extra point of failure, extra device extra pairing etc involved.
Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions

Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
puff
contributor
contributor
Posts: 2961
Joined: Mon Nov 11, 2013 11:28 am
Location: Moskau

Re: GSM serial data

Post by puff »

Vice versa, proving that it works would be even simpler: if you can open a website on your smartphone, it is highly likely that the devices connected to the hotspot have the connection. While checking the network coverage, connection status, errors (sms for balance? Indeed?) on a modem is a completely different story..

Sent from my XT1058 using Tapatalk
User avatar
kb1gtt
contributor
contributor
Posts: 3758
Joined: Tue Sep 10, 2013 1:42 am
Location: ME of USA

Re: GSM serial data

Post by kb1gtt »

We should have talked about this while I was there. I've done it with a plc. Key issue was getting a data plan that worked.
Welcome to the friendlier side of internet crazy :)
Rhinoman
contributor
contributor
Posts: 256
Joined: Thu Sep 24, 2015 2:14 pm
Location: Wiltshire, UK

Re: GSM serial data

Post by Rhinoman »

I've used them, they are fairly straightforward but you need to be somewhere were there is a reliable signal - not in the English countryside!
User avatar
AndreyB
Site Admin
Posts: 14331
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: GSM serial data

Post by AndreyB »

Any specific part numbers knows to work? Did you guys use them in TCP/IP or serial mode? If serial mode what was the destination?
Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions

Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
User avatar
andreika
donator
donator
Posts: 461
Joined: Mon Feb 13, 2017 2:35 pm
Location: Kiev

Re: GSM serial data

Post by andreika »

I've used good old SIM300D via UART - worked like a charm :)
puff
contributor
contributor
Posts: 2961
Joined: Mon Nov 11, 2013 11:28 am
Location: Moskau

Re: GSM serial data

Post by puff »

I've always been wondering, what does it mean "via UART"? How does it look like?
You use AT commands to set up a connection to some IP address? And then instead of AT commands you start sending your data?
User avatar
Dron_Gus
contributor
contributor
Posts: 455
Joined: Wed Nov 13, 2013 1:11 pm
Location: S-Pb
Github Username: dron0gus

Re: GSM serial data

Post by Dron_Gus »

puff wrote:I've always been wondering, what does it mean "via UART"? How does it look like?
You use AT commands to set up a connection to some IP address? And then instead of AT commands you start sending your data?
Yes. You can switch between data and command mode with special sequence or RTS/CTS or other flow control signal.
Or you can use some AT command (AT+CIPSEND IRC) to send some data in command mode. Data usually coded to ascii string.
Above is applied to GSM modules with integrated TCP/IP stack.
puff
contributor
contributor
Posts: 2961
Joined: Mon Nov 11, 2013 11:28 am
Location: Moskau

Re: GSM serial data

Post by puff »

Dron_Gus wrote:GSM modules with integrated TCP/IP stack
does this mean GPRS? Is 3G any different?
User avatar
Dron_Gus
contributor
contributor
Posts: 455
Joined: Wed Nov 13, 2013 1:11 pm
Location: S-Pb
Github Username: dron0gus

Re: GSM serial data

Post by Dron_Gus »

puff wrote:
Dron_Gus wrote:GSM modules with integrated TCP/IP stack
does this mean GPRS? Is 3G any different?
GPRS, EDGE, LTE, etc. AT commands all the same. May be some differences between manufacturers, because AFAIR AT commands for integrated TCP/IP stack is not covered with any standard.
Rhinoman
contributor
contributor
Posts: 256
Joined: Thu Sep 24, 2015 2:14 pm
Location: Wiltshire, UK

Re: GSM serial data

Post by Rhinoman »

I used serial mode with a SIM900 module, it can be done with a USB-TTL adapter. I have also used TCP/IP with a 3G module but that was a complete system using Ethernet so it was a 'bolt in'.
Post Reply