This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Activate RS-485 second port on LM5 lite
#1
Hi,

I need to use 2xRS485 on LM5 Lite.

on RS485-1 all is working, but on RS485-2 not. (seems to be using rs232)

Script:
if not port then
  require('serial')
  port = serial.open('/dev/RS485-2', { baudrate = 9600, parity = 'even', duplex = 'half' })
  port:flush()
end

if port then
  char = port:read(1, 1)--send back if read succeeded
  if char then
      port:write(char)
  end
end



Tnx. Auzzii
Reply


Messages In This Thread
Activate RS-485 second port on LM5 lite - by Auzzii - 09.01.2020, 13:14

Forum Jump: