25.01.2023, 23:13
(This post was last modified: 25.01.2023, 23:24 by benanderson_475.)
Hi i have LM5p2-DR
HW: LM5 M4 (imx6) SW: 20211215
i am attempting to use the rs232 port, '/dev/RS232' when i navigate to the utilities, system status, serial ports, only /dev/RS485-1 and /dev/RS485-2 are showing?
i should have /dev/RS485-1, /dev/RS485-2, /dev/RS485-3 /dev/RS232 ??
is there anything to enable or configure to use the RS232 port, i have tried the below code, or maybe i have something else wrong?
but port is always nil so i assume '/dev/RS232' never is opened?
x = io.exists('/dev/RS485-1')
x returns true
but x = io.exists('/dev/RS232')
x returns false
HW: LM5 M4 (imx6) SW: 20211215
i am attempting to use the rs232 port, '/dev/RS232' when i navigate to the utilities, system status, serial ports, only /dev/RS485-1 and /dev/RS485-2 are showing?
i should have /dev/RS485-1, /dev/RS485-2, /dev/RS485-3 /dev/RS232 ??
is there anything to enable or configure to use the RS232 port, i have tried the below code, or maybe i have something else wrong?
Code:
port = serial.open('/dev/RS232', { baudrate = 9600, parity = 'even', duplex = 'full' })
log(port)
but port is always nil so i assume '/dev/RS232' never is opened?
x = io.exists('/dev/RS485-1')
x returns true
but x = io.exists('/dev/RS232')
x returns false