Cannot get cellular connection to work AE Cloud 2 Kit

Hello,

 

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.

 

K

  • Which version of the SSP are you using? The project you posted send the AT commands :-

    AT+QCFG="nwscanmode",1,1
    AT+QCFG="nwscanseq",010203,1

    to the BG96 modem, this will force it into GSM only mode (no LTE), which RAT are you trying to use?

  • Hi Kirus,

    CGREG=0,5 means that you're roaming. For that I highly recommend that you upgrade your project to SSP version 1.5.3 as previous versions wait to get CGREG=0,1 only.

    Regards
  • 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:

    Hi 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!

     

    Regards,

    K

     

     

    ----------Update-----------

    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:

     

    ------Update2------

    For some reason now it connects.. nothing was changed...

  • In reply to kirus1997:

    Hi Kirus,

    If nothing has changed and project now started working then it's quite likely that the coverage is not sufficient for BG96 to make connection within the specified time period. Can you reproduce this failure consistently in other places?

    Regards
  • In reply to Renesas Karol:

    Hi Karol,

    I believe i found the error: if the number of retries is set back to 5, the modem does not connect, otherwise it is working fine, even with a number of retries = 7.
    Another person could not get it working i think when using a lower version of ssp, which makes sense since you suggested an update to v1.5.3.

    Thanks for your help! :)

    Regards,

    K
  • In reply to Renesas Karol:

    Hi Karol,

    Before this thread is closed, could you please explain why during the automatic setup of the modem, the "AT" command is sent at the start and then later in the middle of the setup?

    Thank you!

    Regards,

    K
  • In reply to kirus1997:

    This is the reset sequence. The modem is reset by the reset pin, then AT is sent to the modem, when a response is received the modem has reset and is responding to commands. The modem is reset during the middle of the setup sequence, after changing some of the configuration.
  • In reply to Jeremy:

    Okay, got it, thanks Jeremy!
  • In reply to Jeremy:

    Hi Jeremy,
    Using the Renesas Sierra Framework 1.60, I have successfully attached to the network, and stayed connected for a few hours exchanging data with our server on the network.
    After a few hours the communication has stopped, and I have been advised I should introduce a data flow which involved the attaching to the network, performing any data transfers, and detaching. Then this sequence can repeat indefinitely.
    I have implemented the necessary at the AT command level, but I do not know what exactly to at the level of nx_ip_interface_xxx interface level.
    Is there some advice/example we can follow ?