Please refer to the attached file regarding the issues i’m having.
Thanks
Paul
It shouldn’t be a problem with the receive, do you get any errors in debug? Try to put some prints before and after SER.receive, which BTW should return a string so your print with decimal type format might crash with errors.
Hi Cosmin,
Just to update the thread for future users.
I figured out the issue, in my application i think i misunderstood how the python serial interfaced works. I was expecting to use print commands to display text via the serial interface which isn’t the case with a LCD module. What i did was to SER.send back to the interface what is in the SER.receive() or SERF.read() buffer and it works great.
The reason i wasn’t seeing the printed texts on the debug screen was i was using only the serial port without CMUX virtual ports.
I enabled CMUX and Bingo, saw both the Sent and received text but unfortunately doesn’t display on the LCD since the physical port is now used and virtual port emulation.
But atleast, i now know what was exactlky the problem and how to work around it.
We use cookies to enhance your browsing experience and help us improve our websites. To improve our website, we carefully select third parties that use cookies to allow us to serve specific content and achieve the purposes set out in our cookie policy. For more information on how to make adjustments through your browser to the cookies being used on your device, please click Find Out More link. By closing this banner or continuing to browse our website, you agree to our use of such cookies. FIND OUT MORE
Hi
Please refer to the attached file regarding the issues i’m having.
Thanks
Paul
It shouldn’t be a problem with the receive, do you get any errors in debug? Try to put some prints before and after SER.receive, which BTW should return a string so your print with decimal type format might crash with errors.
Hi Cosmin,
Just to update the thread for future users.
I figured out the issue, in my application i think i misunderstood how the python serial interfaced works. I was expecting to use print commands to display text via the serial interface which isn’t the case with a LCD module. What i did was to SER.send back to the interface what is in the SER.receive() or SERF.read() buffer and it works great.
The reason i wasn’t seeing the printed texts on the debug screen was i was using only the serial port without CMUX virtual ports.
I enabled CMUX and Bingo, saw both the Sent and received text but unfortunately doesn’t display on the LCD since the physical port is now used and virtual port emulation.
But atleast, i now know what was exactlky the problem and how to work around it.
Nonetheless, thanks for the in sight.