cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with firmware package and P-L496G-CELL01 board. why C2C device not connect ?

SPinj
Associate II

hii,

I have just started working on P-l496g-cell01 board and download the packages from st web site.

I use en.x-cube-cloud-gen packages in which default code is available to connect grove stream cloud. I follow all steps and also check all jumper all are properly connected but when i debug the code at the stage of initialization of UG96 Cellular device not connect and show the error on tera term "Trying to connect with the embedded SIM

Fail to AT SYNC, after several attempts

C2C AT comunication error with the C2C device

C2C device might be disconnected or wrongly connected

Error initializing the module!" please help me how to solve this error ?

C2C device connect proper way power led ON and also connect with the NW my Esim also activated.

Thank you,

Regards,

sadik pinjari.

14 REPLIES 14
S.Ma
Principal

In any case, as far as I remember there are precompiled BIN demos in the C2C repository to make sure the HW is fine.

Then it's a matter to configure probably the X-CUBE compile options.

thierry BINIGUER
Associate III

Hi,

This kind of problem may occur when Hw Flow Control is set by another SW (for instance x-cube-cellular first).

Then modem stores this state in its internal non volatil memory and expects new communication with RTS pin in a relevant state.

C2C driver works without HW flow control.

2 solutions :

  • either re-install FW modem (as it was out of the box).

       Follow instructions in : Quectel SW upgrade zip file available at https://stm32-c2c.com (in precompile demos repository)

  • or use a fix which sets the RTS pin so that modem can respond (files are attached : ug96_io.c, ug96_io.h)

Note C2C driver manages modem autobaud feature.

This is done by STM32 SW (C2C driver) by repeating 10 times AT command (at the maximum) to tune automatically the speed.

Thierry

thierry BINIGUER
Associate III

+ include file​, with RTS :

#define UART_C2C_RTS_AF                   GPIO_AF7_USART1

#define UART_C2C_RTS_AF                   GPIO_AF7_USART1

#define UART_C2C_RTS_AF                   GPIO_AF7_USART1

Thierry

SPinj
Associate II

Thanks Thierry BINIGUER for your reply..

Hi Thierry,

I am having the same issue as described in this post. I have amended the ug_96.h and ug_96.c files to match those you've posted here however still receive the error:

"Fail to AT SYNC, after several attempts

C2C AT comunication error with the C2C device

C2C device might be disconnected or wrongly connected

Error initializing the module! "

I am using the BG96 running FW ver BG96MAR02A08M1G_01.012.01.012 with the P-L496G-CELL02 kit.

I was wondering if there was anything else I could do to try and get the examples from the STM32CubeExpansion_Cloud GenericV1.0.0 pack to work.

Thanks