xiaoxiang781216 commented on PR #14823: URL: https://github.com/apache/nuttx/pull/14823#issuecomment-2483356264
> > Because you need this tool to change host serial port into mux mode. > > Why? Are you using the modem with SIM? We use cmux for debugging purpose to have the multiple virtual port for nsh/log/gdb at the same time on one physical uart. > Normally the CMUX will work integrated with PPP and the user should issue a command (or an IOCTL) to setup the CMUX (multiplexed) ports. in this case, you can bypass cmux tool and do ioctl in your program. > > This tool doesn't need for NuttX since NuttX CMUX driver auto switch to mux mode by config, not through ioctl dynamically. > > Hmm, I think having IOCTL support could be useful in case where we want to enter / leave CMUX during the PPP execution. > it's hard to handle the enter/leave without the lost data, especially we want syslog can be worked as soon as possible in any environment. > > No, NuttX mux driver could work automatically without the setup like Linux, that's why this tool put into nuttx/tools/ not apps/. > > Hmm, by automatically you mean statically, right? It should be use some board config to enter in this CMUX mode, correct? you can config through: 1. Which physical port you want to use CMUX 2. how many virtual serial ports you want After initialization, you will see all virtual serial ports under /dev/ and use them like the normal uart. Of course, the other side(e.g. Linux) need config by their design as usually. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
