Home
JAQForum Ver 20.06
Log In or Join  
Active Topics
Local Time 03:39 29 Mar 2024 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : SIMcom module was working great, now it outputs HEX....

Author Message
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9029
Posted: 01:35am 20 Nov 2019
Copy link to clipboard 
Print this post

Hello. :)

SMS used to be in ASCII forwarded directly to the TE(Terminal Emulator), but now they are forwarded directly to the TE as a large HEX string.

My setup commands are:

AT+CMGF=1
AT+CNMI=1,2,0,0,0
AT+CPMS="SM',"SM","SM"


I get a string of about 300 bytes of HEX returned.  Here is an example of what is forwarded to the TE, if I SMS a message "D" to the module:

000607BEAF848DF3B4818C8298414E5676566A6A42386E79485343744534008D908918802B36313434373234313637322F545950453D504C4D4E008A808E03048E7488058103093A8083687474703A2F2F766D6D73632E6F707475732E636F6D2E61753A383030322F353F414E5676566A6A42386E7948534374453400

I have tried resetting the module to default values with AT&F, but that has not helped.
I am using a TE to directly control the module, and watch the responses.
I am using the same cellphone I have always used, on the same network, and I am sending plain SMS, not MMS.
Do anyone in the know with SIMcom modules have any suggestions?
Perhaps there is a command someone can refer me too in the manual?
Everything WAS working fine until this started happening.... :(
Smoke makes things work. When the smoke gets out, it stops!
 
KeepIS

Guru

Joined: 13/10/2014
Location: Australia
Posts: 1336
Posted: 04:24am 20 Nov 2019
Copy link to clipboard 
Print this post

I'm using a SIMCOM SIM5320 (3G)

It's part of my integrated Vehicle interface installation. Been running that module a few years now and nothing has changed as far as SMS TR/RX and the general operation.

SMS messages are read out aloud in mine (button touch), there are some garbage numerical strings at the start of a few of the SMS messages and it depends on the source of the message.

Normally my code removes them and leavers plain text, however I found some preamble was so random and undocumented that I couldn't catch it all without loosing part of the message.
 
Your commands look correct, assuming there are no error response codes from the module.

Sorry I can't be of much help.        

Mike.
Edited 2019-11-20 14:26 by KeepIS
It's all too hard.
Mike.
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 5867
Posted: 04:58am 20 Nov 2019
Copy link to clipboard 
Print this post

I don't suppose it's the terminal emulator that has decided to switch to HEX mode?

Jim
VK7JH
MMedit   MMBasic Help
 
KeepIS

Guru

Joined: 13/10/2014
Location: Australia
Posts: 1336
Posted: 08:03am 20 Nov 2019
Copy link to clipboard 
Print this post

I was a bit shy about suggesting that possibility      

Mike.
It's all too hard.
Mike.
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9029
Posted: 07:12pm 20 Nov 2019
Copy link to clipboard 
Print this post

No, not the TE.  I am using GFXterm, but I also used MMEDIT's chat window, and get exactly the same thing, so it is the SIMcom module that is outputting the HEX type messages.  I am still looking into this, but with the AT commands manual running to 363 pages, there are literally hundreds and hundreds of commands to go through.

It is ONLY when you send a SMS to the module, that the response is HEX.  I can ask it other things such as AT+CSQ for signal quality, and the reply from the module is plain ASCII.  But send it an SMS, and I get several hundred bytes of HEX code, even if the SMS is only one byte long....strange.

I have emailed SIMcom to see if they can help.  If they post a solution, I will copy it to this thread for everyone else's information.
Smoke makes things work. When the smoke gets out, it stops!
 
KeepIS

Guru

Joined: 13/10/2014
Location: Australia
Posts: 1336
Posted: 10:37pm 20 Nov 2019
Copy link to clipboard 
Print this post

If it's of any interest, I have a standalone program for the Phone module.

It has a set up page where all relevant settings to the phone operation can be interrogated and set, with a description of each setting.

It sends / receives SMS messages and phone calls and it's all GUI. I can post a link if your interested in seeing if it talks to the module.

It's written for the SIMCOM SIM5320 Phone module. But AT+CMGF=1 looks like the only setting that switches TEXT for SMS. There are couple that enable / disable verbose results and reporting, that could add quite a lot to the preamble, been a long time since I looked at it though so memory is fading.

Mike.
It's all too hard.
Mike.
 
Print this page


To reply to this topic, you need to log in.

© JAQ Software 2024