Open Pablopabota opened 3 years ago
Hi. Will it panic without CMUX enabled (by commenting/removing esp_modem_start_cmux(dte))?
Hi. No, it won't panic, but it won't switch between modes, right?
I (2453) pppos_example: Trying to initialize modem on GPIO TX: 23 / RX: 22
I (2503) bg96: CMUX setup
I (2903) bg96: PIN ASK response: +CPIN: READY
I (3003) bg96: PIN ASK response: OK
I (4253) pppos_example: Module: BG96
I (4253) pppos_example: Operator: "Movistar movistar"
I (4253) pppos_example: IMEI: xxxx
I (4253) pppos_example: IMSI: xxxx
I (4453) pppos_example: rssi: 10, ber: 99
I (4653) pppos_example: Battery voltage: 3717 mV
I (4653) esp-modem: APN: xxxx
I (4753) esp-modem: PPP MODE
I (4853) DCE_TAG: ATD response: CONNECT 150000000
I (4853) pppos_example: Modem PPP Started
I (64853) esp-netif_lwip-ppp: Connection lost
I (64853) pppos_example: Modem Disconnect from PPP Server
This is the log now
No it won't. You can move this line around and enable CMUX every time you're not in PPP (or CMUX) mode.
I think you need to check what's happening at esp_modem.c:832
at esp_modem.c:832 dte->change_mode is executed to change to MODEM_CMUX_MODE which is a pretty simple function. So I'm not that sure of what could be happening there.
Also the start_cmux is being executed in that piece of code, I was hoping you could tell me what to do, or what could I try to debug it.
Seems that the problem is the missing of the: bg96_dce->parent.setup_cmux = esp_modem_dce_setup_cmux; line in the bg96_init() function.
Hi, I'm trying to run this code on a BG96. After setting everything to it I flash the code and here is the ouput log:
It seems that the start_cmux function isn't working but I don't understand which instruction is prohibited, Any idea of what could be wrong?
Best regards, P