EEVblog Electronics Community Forum

Electronics => Projects, Designs, and Technical Stuff => Topic started by: hussamaldean on September 13, 2019, 06:27:49 am

Title: GSM module with SPI interface
Post by: hussamaldean on September 13, 2019, 06:27:49 am
Hi all,
I am looking for GSM module for my project which needs a GSM. however, the RS232 is slow and requires a lot of time. is there any GSM module that uses SPI interface rather than RS232 ?

regards
Title: Re: GSM module with SPI interface
Post by: Phoenix on September 13, 2019, 07:34:43 am

It's been my experience that the modules will use a UART as they follow the 3gpp standards. Modules with USB will present themselves as virtual comm ports to an OS. Can you use UART with flow control for extra speed?

Sent from my G8441 using Tapatalk

Title: Re: GSM module with SPI interface
Post by: hussamaldean on September 13, 2019, 08:27:16 am

It's been my experience that the modules will use a UART as they follow the 3gpp standards. Modules with USB will present themselves as virtual comm ports to an OS. Can you use UART with flow control for extra speed?

Sent from my G8441 using Tapatalk
we have 3G in only in Iraq, the problem I need to send data at rate of 1Hz but the module can't processor fast enough the AT commands, the delay is about 400mS between each AT command and burst data doesn't work either since the server will kick me out :(
Title: Re: GSM module with SPI interface
Post by: Phoenix on September 13, 2019, 08:52:21 am
I don't think the cellular system is designed for that kind of real time data transfer.

You can usually enter a raw data transfer mode once your socket is open. Then continually send data. Are you saying the server disconnects your socket if you do that?

 Can you aggregate data and send a minutes or 5 minutes worth in batches?

Sent from my G8441 using Tapatalk

Title: Re: GSM module with SPI interface
Post by: hussamaldean on September 13, 2019, 09:02:34 am
I don't think the cellular system is designed for that kind of real time data transfer.

You can usually enter a raw data transfer mode once your socket is open. Then continually send data. Are you saying the server disconnects your socket if you do that?

 Can you aggregate data and send a minutes or 5 minutes worth in batches?

Sent from my G8441 using Tapatalk
the main purpose is to monitor a remote substation in real time which requires to send data every 1 seconds but the GSM module requires about 1 seconds to process each AT command :(
Title: Re: GSM module with SPI interface
Post by: Phoenix on September 13, 2019, 09:16:14 am
Have you tried putting it into data pass through mode, assuming your module supports it. You don't need to use at commands then. Whatever you send down the rs232 is directly sent out the socket, without wrapping in an AT command. Can send data a lot faster.

Sent from my G8441 using Tapatalk

Title: Re: GSM module with SPI interface
Post by: hussamaldean on September 13, 2019, 01:13:43 pm
Have you tried putting it into data pass through mode, assuming your module supports it. You don't need to use at commands then. Whatever you send down the rs232 is directly sent out the socket, without wrapping in an AT command. Can send data a lot faster.

Sent from my G8441 using Tapatalk

does the sim900 support it ? if yes, how to enable it ?
Title: Re: GSM module with SPI interface
Post by: FreddieChopin on September 13, 2019, 08:08:08 pm
If that's the case then maybe ditch GSM altogether and go with customized shortwave RF link?
Title: Re: GSM module with SPI interface
Post by: Phoenix on September 13, 2019, 10:21:52 pm
Called transparent mode. Search for SIM900_TCPIP_Application Note_V1.02.pdf

Sent from my G8441 using Tapatalk
Title: Re: GSM module with SPI interface
Post by: hussamaldean on September 14, 2019, 04:41:16 am
If that's the case then maybe ditch GSM altogether and go with customized shortwave RF link?
It is not possible to use shortwave since the requirement is to  use GSM
Called transparent mode. Search for SIM900_TCPIP_Application Note_V1.02.pdf

Sent from my G8441 using Tapatalk

I tried to use CIP mode but since I have to send JSON data, it won't work
Title: Re: GSM module with SPI interface
Post by: FreddieChopin on September 14, 2019, 07:25:40 am
From your rather stange reqirements it sounds more and more like you're trying to develop something shady that involves lots of fertilizer  :palm: