Open ivdor opened 6 years ago
AT+CGSN may can not get the correct IMEI either if CSDK API can not
But CGSN write same imei, as printed on case of module.
I must switch to ICCID or IMSI as unique identifier? May be i can see imei in memory of module throught tracer?
What is the order of this two operation?
1:get imei by AT command 2:get imei by CSDK API
1 -> 2
or 2->1
or 1->2->1
Doesn't matter. It is different firmwares - original a9g (latest ~2018-06-22) and builded by sdk - demo/imei
AT firmware - show imei. Builded .lod in sdk - shows "0000000"...
I have the same problem IMEI show "00000000000000"
I too have the same problem. Imei shows "00000000000000". Is there a solution to this ?
My Solution is to write the custom IMEI with AT command AT+EGMR.
Any solution to the empty IMEI, I depend on it for differentiate between device!
I solved it the same way lamqhoang did. Flashed original AT firmware and with AiThinker Serial Tool I did AT command AT+EGMR.
Works OK.
So you write your IMEI? I have another problem with the serial tool. No baud rate is working. I tried all standard baud rate and I only got garbage on the screen.
Yes, you have to write the IMEI yourself. I had the number stored before I had this problem so I just wrote the same IMEI.
Regarding the problem with Serial Tool, check where the RX and TX cables are connected in the module. That happened to me as well at some point.
If they're connected to HST_TX and HST_RX try connecting them to RX1 and TX1 and it should work.
Check the following link: https://github.com/Ai-Thinker-Open/GPRS_C_SDK/issues/435
Thank a lot. Regarding this IMEI, but this is not a good way for production handling. Another point, I'm developing using CSDK, sometimes the application doesn't start, another time after compiling new changes and flashing I find the old App is working not the new one. Any suggestions?
I didn't played with the CSDK that much. I switched to pulkin's micropython version since it was easier for me to program as I don't have any experience with C.
Maybe someone else could give you some help with that.
Is this micropython stable/well documented? Any useful links/tutorials?
micropython is awesome but not all functionality is available on this port, but there is enough to give it a shot.
The link is https://github.com/pulkin/micropython/tree/master/ports/gprs_a9
My Solution is to write the custom IMEI with AT command AT+EGMR.
My IMEI is empty (+EGMR:000000000000000). I tried to use AT+EGMR to write it but I got +CME ERROR: 53.
I tried running the command using the following FW versions, none worked. Ai-Thinker_A9_AT_firmware_release_v1.6_RC.afw Ai-Thinker_A9_A9G_AT_V02.02.20181011R.afw Ai-Thinker_A9_A9G_AT_V02.02.20190915R.afw
Which firmware worked for you?
1. SDK version(SDK 版本)
2.1.1.2 CSDTK4.2
2. In what kind of operation problems appear, and how to reproduce the problem ?(什么样的操作步骤问题会出现,是否是稳定复现,如何复现问题?)
1. First time I saw it on trace of files "demo/gps_agps" or "demo/gps_tracker". Trace "buffer" before sending DATA to host:
First parameter('id') must be IMEI.
Next I test file "demo/imei (+iccid)". Trace:
Also imei_build.log has text:
3.
AT+CGSN?
command on8955_modem_v1_AT_release_merge(2).afw
show real IMEI same as qr-code on a9g case