vshymanskyy / TinyGSM

A small Arduino library for GSM modules, that just works
GNU Lesser General Public License v3.0
1.91k stars 708 forks source link

Simcom A7670SA - IMEI code AT+CGSN different from AT+GSN #739

Closed deeja closed 11 months ago

deeja commented 11 months ago

[x ] I have read the Troubleshooting section of the ReadMe

What type of issues is this?

[ ] Request to support a new module

[ ] Bug or problem compiling the library [x ] Bug or issue with library functionality (ie, sending data over TCP/IP) [ ] Question or request for help

What are you working with?

Modem: Simcom A7670SA Main processor board: Lilygo A7670SA TinyGSM version: vshymanskyy/TinyGSM@^0.11.7

#define TINY_GSM_MODEM_SIM7600

Scenario, steps to reproduce

Calling AT+GSN on A7670 doesn't return IMEI / Serial number. The call has been changed to AT+CGSN. As a sidenote though, it looks like SIMCOM have included both AT+CGSN and AT+GSN on the SIM7500, SIM7600, SIM7070,SIM7080, and SIM7090.

From the SIM7070 guide:

3.2.4 AT+CGSN RequestProduct Serial Number Identification(Identical with+GSN)

Whereas the A76XX guide has:

2.2.19 AT+CGSN Request product serial number identification

deeja commented 11 months ago

Ok, this is wrong. I just just ran a console test and it is returning the IMEI.

ATI

SMS DONE

Manufacturer: INCORPORATED
Model: A7670SA-FASE
Revision: A7670M7_V1.11.1
IMEI: [MY IMEI]
+GCAP: +CGSM,+FCLASS,+DS

OK
AT+CGSN

[MY IMEI]

OK
AT+GSN

[MY IMEI]

OK

Apologies

deeja commented 11 months ago

Turned out that the RX and TX pins had swapped between the SIM7000 and the A7670SA lilygo boards. Easy to miss