question about library
Brought to you by:
wimpi
Hello.
I have a gprs modem TC65 and need to communicate by RS485 port with other devices and send the readings to a server. The modem is CLDC-1.1, IMP-NG.
You think that I can use your fantastic library on my device.
Can I use directly the libraries or I must recompile any way?
Must I add the javax.comm libraries or can I use native CLDC ones? In CLDC not exist the SerialPort class, exist conector class and CommConnection interface.
CommConnection cc = (CommConnection)
Connector.open("comm:com0;baudrate=19200");
int baudrate = cc.getBaudRate();
InputStream is = cc.openInputStream();
OutputStream os = cc.openOutputStream();
Thank you very much for your help
I am not familiar with CLDC. You need a Java serial communications library and at the time I wrote the RTU classes for Linux, rxtx implementation of javax.comm was the only option. It works well and I used the jamod library with the serial RTU communicatons with an RS-485 network. The master was run on a PC with a B&B serial to RS-485 converter. The slaves were dos based embedded controllers running the slave protocol written in c and c++.