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.

RS232 read problem
#2
Since you have a log call between write and flush you basically have adding a random delay. Flush will discard all buffered data but the TV might not have sent the response completely.

You should remove flush after write and use read with timeout. Something like this:
Code:
res, err = port:read(100, 1)
log(res, err)
Reply


Messages In This Thread
RS232 read problem - by JRP - 26.05.2020, 11:43
RE: RS232 reed problem - by admin - 26.05.2020, 11:57
RE: RS232 reed problem - by JRP - 01.06.2020, 09:10

Forum Jump: