I have an RS-485 line on which several devices are present. At the end of this line is an RS-485 to USB converter. When I insert this converter into a PC, it is defined as a COM port and I work with these devices using the "Serial" and "AsyncStreams" libraries
There is also an RS-485 to Ethernet converter. Is it possible to somehow work with him directly? Is there some kind of library for this?
I found that some manufacturers provide software for converting Ethernet to virtual COM port. For example, "USR-VCOM", but this is very inconvenient because you have to run additional software. Is it possible to somehow work directly with the RS-485 to Ethernet converter using only B4J?
B4X:
sp.Initialize("")
cb1COM.Items.AddAll(sp.ListPorts)
sp.Open(cb1COM.Value)
sp.SetParams (1200,8,1,0)
astream.Initialize(sp.GetInputStream, sp.GetOutputStream, "astream")
I found that some manufacturers provide software for converting Ethernet to virtual COM port. For example, "USR-VCOM", but this is very inconvenient because you have to run additional software. Is it possible to somehow work directly with the RS-485 to Ethernet converter using only B4J?