F
I have to write a sw under Unity Pro to communicate with a device via serial (rs485) character link. This device has his own communication protocol, so I have to implement a custom driver on the PLC side. The communication is half-duplex Master(plc) Slave(device). I think to use a ascii communication channel with the function OUT_IN_CHAR to send requests and receive responses, and I will want to send packet in byte array format (like: 0x40 0x33 0x1A 0xF4... and so on). My problem is that all the functions to read/write on the serial port accept only parameters in STRING type. How can I convert an array of byte in string? Is the correct choice useing this kind of function (OUT_IN_CHAR) or you think i could try something else?
Thank you in advance for your help.. :-D
Bye
Federico
Thank you in advance for your help.. :-D
Bye
Federico