This page last changed on Feb 01, 2013 by johnwhitmore.

Hello all,
trying to move my Custom Controller for a friend over to a RaspberryPi and having difficulty. I'm using Debian Wheezy and have the jdk installed and librxtx-java. I've written a very short Java standalone program just to check that I'm picking up serial ports and it's finding none. My protocol added to the Controller is interfacing via USB Serial ports so I need to get access to them. Has anybody traveled this road before?

import gnu.io.CommPortIdentifier;

public class JavaSerial {

public static void main (String[] args) {

CommPortIdentifier comPortID = null;
java.util.Enumeration<CommPortIdentifier> portList = CommPortIdentifier.getPortIdentifiers();

while (portList.hasMoreElements()) {
CommPortIdentifier portId = (CommPortIdentifier) portList.nextElement();
if (portId.getPortType() == CommPortIdentifier.PORT_SERIAL)

Unknown macro: { System.out.println("SerialPortManager port}

}
System.out.println("HelloWorld");
}
}

Please put code fragments between {code}...{code}.
Also, there are some forum threads regarding the Pi and RXTX.

Posted by mredeker at Feb 01, 2013 10:23

Sorry didn't realise about the code issue.

On the RaspberryPi problem I've managed to find the problem and it's basically that the FTDI chip on the Device I'm interfacing to, an FTDI FT232BM, is no longer supported by the Linux Kernel. I'm hoping to get a replacement part which is supported. I don't think that there's anything else that can be done.

Sorry about the noise I didn't realise that the issue was a HW one until I get well into it. Assume it was SW.

Posted by johnwhitmore at Feb 01, 2013 18:21

No problem.
Maybe this helps: http://www.raspberrypi.org/phpBB3/viewtopic.php?t=8010
(I did not read through it )

Posted by mredeker at Feb 01, 2013 19:58

John, I admire your tenacity and motivation to work through difficult issues with little and in most cases no supporting documentation from us . Despite the high levels of frustration it causes.

What is your situation professionally? Are you in general available for contracting if required? We are building a roster of motivated contributors we can reach out to for OpenRemote related work.

Feel free to respond in private email juha@openremote.org if you prefer instead of public forum.

Best regards,

Juha

Posted by juha at Feb 02, 2013 04:17

Hi Juha,
thanks a million for that. I'm not sure about tenacity, at present I think all I'm doing is testing people's patience, trying to get the Designer working. On the plus side once I get it going locally it should take half an hour to get a new protocol file in place, and start testing it. I'll be out of your hair soon

I'm not sure about the practicalities but I'd love to help out. Having said that as my posts might have hinted Java ain't my favorite language even though I've done a fair bit of coding in it professionally. It just never strikes me as a language to easily translate what's in my head to the computer. Wait till I finish a Protocol and have a look over it yourself.

Anyhow basically yes I'd love to help out, if you think I can be of any use to you, and thanks a million for your offer. I'm stoked by that

John

Posted by johnwhitmore at Feb 02, 2013 21:31
Document generated by Confluence on Jun 05, 2016 09:31