Upcoming maintenance
Dear Customers and Partners.
This website will be undergoing scheduled maintenance on June 14, 2023. Please be aware there may be disruption to the developer portal website and associated services during the scheduled maintenance period.
This upgrade is essential to ensure the continued performance, reliability, and security of Developer World.
We apologize for any inconvenience.
Integrating 2G modem to Spresense
-
Dear all,
I am trying to integrate a 2G modem to SPRESENSE. Has anyone done anything on this front? Please advise if there is something been done on this front. Any lead will be highly appreciated.
Thanks and regards,
Vivek -
I have downloaded the Sketch from the below link and tried to compile the it with Arduino IDE but getting into the below error:
spresense_gsm_fona_tutorial:1:27: error: Adafruit_FONA.h: No such file or directory
compilation terminated.
exit status 1
Adafruit_FONA.h: No such file or directoryDid you use any external git repository for the Adafruit_FONA.h file or any other dependency this might have?
Thanks and reards,
VivekFrom: @KamilTomaszewski
Hi,
Check this out:
https://developer.sony.com/develop/spresense/tutorials-sample-projects/spresense-tutorials/cellular-connectivityI hope it will help.
Best Regards,
Kamil Tomaszewski -
Hi Kamil,
Excellent, that worked
Cheers
Vivek
From @KamilTomaszewski
Hi Vivek,
You must install the Adafruit_FONA library. Try this:
Let me know if it helped.
BR,
Kamil -
Hi All,
We have put together a SPRESENSE with a FONA module connected to it. Here is the connectivity picture:
I have run the FONA sketch on the SPRESENSE which is available here:
I think the sketch cannot connect to the FONA module.
To start with I had to update the boot-loader which is what I expected but for some reason the boot loader version it expects is much older version. Also, I get the below error message at the SPRESENSE initialisation:cxd56_farapiinitialize: Mismatched version: loader(17646) != Self(17660) cxd56_farapiinitialize: Please update loader and gnssfw firmwares!!
I do not understand why the above error is coming. I have updated the bootloader and the only bootloader the SPRSENSE likes is the version spresense-binaries-v1.3.0.zip as can be seen below:
>>> Install files ... install -b 115200 Install /home/vbhadra/spresense/sdk/../firmware/spresense/dnnrt-mp.espk |0%-----------------------------50%------------------------------100%| ###################################################################### 88352 bytes loaded. Package validation is OK. Saving package to "dnnrt-mp" updater# install -b 115200 Install /home/vbhadra/spresense/sdk/../firmware/spresense/loader.espk |0%-----------------------------50%------------------------------100%| ###################################################################### 118880 bytes loaded. Package validation is OK. Saving package to "loader" updater# install -b 115200 Install /home/vbhadra/spresense/sdk/../firmware/spresense/gnssfw.espk |0%-----------------------------50%------------------------------100%| ###################################################################### 450944 bytes loaded. Package validation is OK. Saving package to "gnssfw" updater# install -b 115200 Install /home/vbhadra/spresense/sdk/../firmware/spresense/AESM.espk |0%-----------------------------50%------------------------------100%| ###################################################################### 28944 bytes loaded. Package validation is OK. Saving package to "AESM" updater# sync updater# Restarting the board ... reboot
I think the fona library is unable to get any AT command response from the module over the serial line.
Please look at the attached document where I have explained the steps I have taken and also the connectivity diagram.
I then ran FONAtest which comes with the FONA library and it detects the connected FONA hardware and does a number of testing and finally gives the details of the connected FONA hw. The FONAtest is also not getting any AT command response either. I get the below error with the both the sketches I am running:
cxd56_farapiinitialize: Mismatched version: loader(17646) != Self(17660) cxd56_farapiinitialize: Please update loader and gnssfw firmwares!! Attempting to open comm with ATs ---> AT <--- ---> AT <--- ---> AT <--- Timeout: No response to AT... last ditch attempt. ---> AT <--- ---> AT <--- ---> AT <--- ---> ATE0 <--- ---> ATE0 <--- Error: Couldn't connect to FONA module
I have made a detailed document with images and explanations of the steps I have taken but there seems to be something still not working. Please have a look at the document attached.
Has anyone ever seen any error like this with FONA?
Please feel free to share your thoughts or comments.
Cheers
Vivek -
Hi All,
I am trying to run the spresense_gsm_fona_tutorial on the spresense which is connected to a FONA module.
When I run the application it often getting into the "Failed to turn on GPRS" error. And then a subsequent "Couldn't initialize HTTP request!" error comes out and nothing works.
I am debugging the issue at the moment. I have noticed if I at this point run the FONAtest module and try turning on/off the gprs with 'G'/'g' command from the serial console and then run the spresense_gsm_fona_tutorial application again, it starts working. At this point the issue is bit symptomatic and trying to do a characterisation of the issue. I thought to share with you in case you have ever experienced something like this.I have attached the log file. I have modified the below to incorporate the APN name and the dweet name as below in the code:
#define DWEET_THING_NAME "private-thrill"
#define FONA_APN "iot.truphone.com"Please share your thoughts, in the meantime I am debugging the issue.
Thanks and regards,
Vivek