08.01.2018, 10:30
(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.