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.

serial library
#5
(05.01.2018, 08:24)admin Wrote: You still need a resident script to handle data communication. Library is just a way of having a re-usable code in different scripts.
As for RS-485<>RS-232 adapters keep in mind that RS-485 is only half-duplex so you cannot send and receive data at the same time. If you need full-duplex then the onyl solution is USB<>RS-232 adapter.

ok i have this sorted now, if i use twice serial.open wil this cause any issue?

port = serial.open('/dev/RS232', { baudrate = 9600, parity = 'none', duplex = 'full' })

1 in resident script to recieve data and 1 in library to send data 

many thanks.
Reply


Messages In This Thread
serial library - by benanderson_475 - 03.01.2018, 21:12
RE: serial library - by admin - 04.01.2018, 08:02
RE: serial library - by benanderson_475 - 04.01.2018, 19:59
RE: serial library - by admin - 05.01.2018, 08:24
RE: serial library - by benanderson_475 - 08.01.2018, 10:30
RE: serial library - by admin - 09.01.2018, 13:50

Forum Jump: