RE: Freerunner, Jalimo, rxtx, GPS
Hello, my goal is not just accessing the GPS device. I'm trying to run on Openmoko a certain java application that uses librxtx to access the GPS, and librxtx happens to be in the Openmoko-Jalimo repository. I'm not asking for the moon Anybody has used this librxtx? http://jalimo.evolvis.org/repository/openmoko/ The person who uploaded it, perhaps? Regards, Juan Lucas De: Fredrik Wendt [mailto:fred...@wendt.se] Enviado el: vie 06/03/2009 8:50 Para: Juan Lucas Dominguez Rubio Asunto: Re: [jalimo-info] Freerunner, Jalimo, rxtx, GPS On tor, 2009-03-05 at 20:48 +0100, Juan Lucas Dominguez Rubio wrote: > Dear list, > > [...] called /dev/ttySAC1, it says it does not exist. What am I doing > wrong? I have no idea at all, but a question: have you tried using FSO and it's dbus API for GPS/positional services? / Fredrik ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Freerunner, Jalimo, rxtx, GPS
You don't say which distro you are trying this on, but my guess is that you are fighting with gpsd or frameworkd for access to the GPS serial port. You probably should be talking to gpsd/ogpsd or via dbus to the framework, rather than directly to the serial port. Jim On Thu, Mar 5, 2009 at 2:48 PM, Juan Lucas Dominguez Rubio wrote: > Dear list, > > I am trying to use librxtx to access the GPS device in my FreeRunner through > the /dev/ttySAC1 serial port. I have done this: > > opkg install librxtx-java > opkg install librxtx-jni > > In the classpath of my little java app I have added RXTXcomm.jar and tried > to execute this code without success. No ports are discovered (with the GPS > on and off), and if I try to access a port called /dev/ttySAC1, it says it > does not exist. What am I doing wrong? > > = > static void listPorts() > { > java.util.Enumeration portEnum = > CommPortIdentifier.getPortIdentifiers(); > while ( portEnum.hasMoreElements() ) > { > CommPortIdentifier portIdentifier = (CommPortIdentifier) > portEnum.nextElement(); > System.out.println(portIdentifier.getName() + " - " + > getPortTypeName(portIdentifier.getPortType()) ); > } > } > > static String getPortTypeName ( int portType ) > { > switch ( portType ) > { > case CommPortIdentifier.PORT_I2C: > return "I2C"; > case CommPortIdentifier.PORT_PARALLEL: > return "Parallel"; > case CommPortIdentifier.PORT_RAW: > return "Raw"; > case CommPortIdentifier.PORT_RS485: > return "RS485"; > case CommPortIdentifier.PORT_SERIAL: > return "Serial"; > default: > return "unknown type"; > } > } > = > > Regards, > Juan Lucas > > ___ > Openmoko community mailing list > community@lists.openmoko.org > http://lists.openmoko.org/mailman/listinfo/community > > ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community