Jump to content
Sign in to follow this  
IAmAFailedProgram

MSP430FR5969 interfacing with a gsm sim800l

Recommended Posts

I am trying to interface my MSP430FR5969 with a sim800l gsm. The following AT commands are sent to the gsm through the Serial1 UART (the responses are in blue):

 

AT

AT

OK

AT+COPS?

+CO

AT+CBC

AT+CBC

+CBC:

The response i expect for AT+CBC is the strength of the battery in the format: +CBC: 0,00,0000 where the zeroes are replaced with the data. The AT+COPS? command should return a long string.

It seems to me that not all of the message is making it from the gsm module. I found this exert for the arduino board on a guide for this gsm:

 

Quote

 

If your message is long enough just like ours, then you’ll probably receive it with some missing characters. This is not because of a faulty code. Your SoftwareSerial receive buffer is getting filled up and discarding characters. You are not reading fast enough from the buffer.

The simplest solution to this is to increase the size of the SoftwareSerial buffer from its default size of 64 bytes to 256 bytes (or smaller, depending on what works for you).

On a Windows PC, go to C:\Program Files (x86) -> Arduino -> hardware -> Arduino -> avr -> libraries -> SoftwareSerial (-> src for newer version of Arduino IDE) Open SoftwareSerial.h and change the line:

 

 

Could this issue also apply to the MSP430? If so then how could I increase the size of the serial1? Or am i thinking this wrong? Any  help is appreciated.

 

Share this post


Link to post
Share on other sites

The FR5969 use a hardware serial interface and the buffer size is set to 16 byte here.

Do do not think that this would be the issues as while data coming in also data a take out of the buffer from the software.

Of course you can give it a try with a bigger buffer - just check the HardwareSerial.cpp file.

Note: take the one in the Energia update directory: e.g. for windows

c:\Users\xxxxxxxxx\AppData\Local\Energia15\packages\energia\hardware\msp430\1.0.5\cores\msp430

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...