Serial output is not working properly
root@OpenWrt:~# python3 Python 3.10.7 (main, Nov 17 2022, 16:38:42) [GCC 11.2.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import serial >>> s = serial.Serial() >>> s.get s.getCD() s.getCTS() s.getDSR() s.getRI() s.getSettingsDict() s.get_settings() >>>
On my OpenWrt 22.03 on Omega2S+, the serial port default instance has onle these methods with
That means, the sthandard PySerial installation on Python3 doesn't have the method.
What OpenWrt distribution are you using?
Can you explain
The device I'm reading it from isn't an Onion device, that's why I clarified that function was for that device specifically, and I have tested that read method when attached to other non-onion devices, and it can read RS232 input. I did check the onion device I have, and those are the methods it has for serial that start with get too. It is worth noting that if the onion board is communicating with itself, it can read just fine.
DumTux last edited by DumTux
I think this forum is for Onion Omega2 devices.
For your issue, it's more related to that specific device.
There are other places that you can post the issue.
I don't think the problem is with the other device, considering I have tested it with other serial devices and it works fine. Similarly, I have another device that can take serial input which does not work properly with my omega2lte board (that device doesn't display input data that isn't in the correct format, which is why I have to use the other thing to troubleshoot). Is there some reason why it might have trouble sending to other devices in general? The only thing I can think of is if it isn't using RS232, and if that's the problem, is there a way to get it to transfer with that protocol?
So, what is the OpenWrt version on your Omega Lte?
I don't know exactly. I looked up how to find out, and it said to run
which just shows the startup banner. The banner says Ω-ware: 0.3.3 b251 but I'm not sure what part of that, if any, is the version
Post the result of
Linux Omega-81DD 4.14.81 #0 Fri Jun 4 20:35:27 2021 mips GNU/Linux
Can you test the 232 port with OpenWrt 22.03 latest release?
For the version information: cat /etc/openwrt_release
For Onion firmware version: onion os version
The OpneWRT version is 18.06-snapshot
The Onion firmware version is v0.3.3 b251
And the onion os version is 1.0.6-1
I have tested the serial output with the echo command with the most recent version of OpenWRT, and it has the same problem, so the problem doesn't seem to be a problem with the LTE OS
DumTux last edited by DumTux
In that case, it is the Hardware issue.
You can go back to LTE os image.
I saw no RS232 port on LTE board.
How did you add the 232 transceiver?
Do you have sketch or schematics to show here?
Well that would be the problem, I was using the serial port. However, the device I was originally trying to use doesn't need RS232 (it can be connected directly to an arduino uno). I'll convert the signal to RS232 for the purposes of debugging, and hopefully that will illustrate how to solve the problem. Will installing the OpenWRT 18.06 let me get the LTE OS back, or do I have to find it specifically some other way?
I am using the UART1 of Omega2 -
/dev/ttyS1for GPS module communication with 115200bps.
It is 24/7 running for more than 3 weeks constantly.
Working with no error.
So I cannot guess what will be your issue on LTE board.