Hi everybody
I'm trying to modify the Zephyr serial LTE modem example so that CMUX can be controlled using another communication interface, specifically I'm imagining UART1 (basically I don't care if it's UART1, UART2, etc.).
The idea is that I will switch the modem to PPP mode, but in the event that I need to leave this mode, I am not able to implement it, because in PPP mode the modem does not respond to AT commands. Therefore, I need to add another communication interface (another UART), with the help of which I will send a command, with the help of which I will switch the CMUX back to the AT superstructure.
I was able to find libraries in zephyr for working with CMUX and for working with pipe, but from the documentation I'm not sure if I've correctly understood the use of these libraries. The problem is that I don't know how to access the created pipe or the created CMUX from the main program. My point is to simply access CMUX and connect it to the AT superstructure.
It is clear to me that I will have to modify the devicetree, or rather enable another UART, but that is a fairly obvious detail.
Could I ask for some example of how to access CMUX control (if it has been created)? How could I approach it and rebuild it, what libraries to use and possibly what to add to prj.conf?
Kind regards
Jaroslav Havel