I have a problem getting Cellular connection to work on AE-Cloud2 kit in the UK. I have tried different provided examples: Synergy Enterprise Cloud ToolBox Demo, Amazon Web services Application project (https://www.renesas.com/us/en/software/D6002695.html) and connecting to io.adafruit using HTTPS Client Lab.
The problem is that when I try using cellular connection, after the GSM modem goes into Data Mode and starts sending data, I do not get anything back and after some time I get a message on Tera Term “PPP link is down”. – when running AWS example.
I know that the modem is working fine, and the SIM card data plan is active, I have tested this with Quectel Qnavigator application using PPP tab and successfully established a connection with their server, receiving the IP addres of a SIM card I was expecting. I can also confirm that AT commands used to set up the connection are correct, I have reffered to https://en-support.renesas.com/knowledgeBase/18027787 and by using AT+CGREG? Got 0.5 as a reply, confirming that the connection is setup successfully. Another confirmation is that when in data mode, the blue LED on the modem starts flashing quickly.
In the code I have changed the settings to the required APN (ciot.vodafone.com), context ID(1), and IP version(IP), and also made sure that the Cellular connection is selected by selecting TESTING_REE and commenting out other definitions. – AE_CLOUD2_HTTPS example. I dont think that username or password are required, by just in case they are both the same - "vodafone".
i have also tested ethernet and wifi with this example, and they both are working fine.
I have attached the screenshots of the at commands and the unsuccessful result.
Here is the project i followed. 1212.S5D9_AE_CLOUD2_HTTPS.zip
Thank you very much for your help.
Which version of the SSP are you using? The project you posted send the AT commands :-
to the BG96 modem, this will force it into GSM only mode (no LTE), which RAT are you trying to use?
In reply to Jeremy:
Hi Jeremy, I am trying to use 2G GSM mode, so i believe that the commands are correct. K
In reply to Renesas Karol:
Thank you for the response.
Below explanation is for the example S5D9_AE_CLOUD2_HTTPS.. (AWS example also failed, but i am not focusing on it now)
I have updated to the SSP v1.5.3, changed the APR cache size to 520 bytes. IN the BSP tab SSP version is set to 1.5.3 and Board is S5D9_PILLAR_ARDUINO_MODULE(v1.5.0). Everything compiles with no errors, but of course a number of warnings. And BG96 version is also updated to the one suggested in the change notes.
Now i cant even get the modem to connect at all when using the same code. So i suppose something in the code must be changed, but i do not really understand what. (I have tested the modem with Qnavigator again, it managed to successfully connect and get the IP address, so the modem and SIM are fine).
I have noticed that the sequence of At command has changed slightly, the ATZ0 which is the modem reset command is not there anymore(see attached screenshots), and then halfway through configuration the "AT" command is sent, which is adjusting the baud rate command, not too sure why this appears..
Another weird thing, although the JLink console prints that the modem is not connected, the Blue Led is on for a longer period of time than OFF, which i think is a successful GSM connection..
Should something be changed in the code?
Thank you very much for your help!
Changed the number of AT command retries from 5 to 10 in "AT Command Retry Count" in g_sf_cellular0 Cellular FW on Quectel Catm1 modem
The modem now connected, however after that the result is the same: PPP link down, please see a screenshot below:
For some reason now it connects.. nothing was changed...
In reply to kirus1997: