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.

RS-232 Projector control
#4
nil means no error. You don't need to change anything in Modbus, it is not related to using serial ports in scripts. Check that projector has the same baud rate as the script. Check if you get any reply before closing the port:
Code:
res, err = port:read(-1, 2)
log(res, err)
-- close port
port:close()
Do this with reversed RX/TX as well. Make sure that GND is connected between the projector and LM.
Reply


Messages In This Thread
RS-232 Projector control - by SevenP - 15.03.2023, 14:26
RE: RS-232 Projector control - by Daniel - 15.03.2023, 14:36
RE: RS-232 Projector control - by SevenP - 15.03.2023, 14:41
RE: RS-232 Projector control - by admin - 15.03.2023, 14:45

Forum Jump: