Hello all,
I have a pile of old RIM957's !! They have rs232 connectors (not usb) via a nice cradle. The RIM Desktop Manager works fine, and I have updated the firmware to v3.6, which I understand is the newest that will work with them.
With JDE v.3.6 I can compile and upload HelloWorld and it works great.
Now, I am trying to upload a program which will basically read stuff from the serial port and write it to the screen. A kind of data-watcher. String data is streamed from a serial device, terminated with CRLF's. On Hyperterminal I can watch the data thus: 12034,12099 CRLF 12021,12081 CRLF etc..
Now I wanna get that on the BB screen.
I tried this code, but the device just seems to hang after the open connection is called....
Note I am using 19200 baud, although have also tried 9600 in-case that was a limitation. Also tried connecting the device directly to Hyperterminal, but get nothing in or out.
In theory, should this be possible at all ??? I am beginning to wonder if the BB does not allow traffic on its serial port, except to the Desktop Manager! Or if I need some special security/other settings first!
If anyone has a working sample of a simple echo program, that would be good to see. I tried to method here
RIM Device Java Library: Interface CommConnection without success.
Code:
Dialog.alert("Get this message OK");
_serialConnection = (StreamConnection)Connector.open(ConnectionString);
Dialog.alert("Don't get this message, nor is an exception thrown... just seems to be hanging here");
_din = _serialConnection.openDataInputStream();
_dout = _serialConnection.openDataOutputStream();
_dout.writeChars("WELCOME FROM BLACKBERRY!!");
String contents = _din.readUTF();
Dialog.alert("GOT: " + contents); Thanks for any input!
Max.