Exporting hardware

From Openmoko

(Difference between revisions)
Jump to: navigation, search
 
(Exporting Hardware over networks)
Line 12: Line 12:
 
This has been tested with GPS and GSM, but in theory it will work with all hardware.
 
This has been tested with GPS and GSM, but in theory it will work with all hardware.
  
 +
At this point you must setup any required daemons on the hsot computer.
 +
for GPS you will need gpsd
 +
for GSM you will need gsmd
 +
for Bluetooth you will need bluez-utils
 +
for WI-FI (GTA02) you will need a basic wireless setup iwconfig, iwspy, iwpriv etc.
 +
for audio system you will need alsa.
  
 +
could be used for getting files to the SD card easy, of course scp is a good utility for doing that.
  
 
Example: export GSM over USB network
 
Example: export GSM over USB network
Line 27: Line 34:
 
     * With this in mind if you have an unlimited data package you could export this over the internet.
 
     * With this in mind if you have an unlimited data package you could export this over the internet.
 
     * the possibilities are limitless.
 
     * the possibilities are limitless.
 +
 +
--Kris

Revision as of 19:00, 8 December 2007

Exporting Hardware over networks

This is an elaboration on my original post for exporting GPS using netcat. The networking portion is covered elsewhere and you can use either USB or bluetooth networking. This is how it works:


   * On host type: nc -vvn -l -p 5000 > /dev/mount-point

This sets up the host to listen for the connection.

   * On the Neo type: nc IP-ADDRESS-OF-HOST 5000 < /dev/port-to-export

This exports the port to the host ip address

This has been tested with GPS and GSM, but in theory it will work with all hardware.

At this point you must setup any required daemons on the hsot computer. for GPS you will need gpsd for GSM you will need gsmd for Bluetooth you will need bluez-utils for WI-FI (GTA02) you will need a basic wireless setup iwconfig, iwspy, iwpriv etc. for audio system you will need alsa.

could be used for getting files to the SD card easy, of course scp is a good utility for doing that.

Example: export GSM over USB network

   * First be sure you have gllin installed on the Neo.
   * On host type: nc -vvn -l -p 5000 > /tmp/nmeaNP
   * On the Neo type: nc 192.168.0.200 5000 < /tmp/nmeaNP
   *
   * On the host PC install GPSD, your GPS is attached as /tmp/nmeaNP
   * start gpsd on host with: gpsd -p /tmp/nmeaNP
   * run your application! I used gpsdrive and it works better than my stand-alone GPS.
   * Tested with RoadNav.Works great!
   *
   * With this in mind if you have an unlimited data package you could export this over the internet.
   * the possibilities are limitless.

--Kris

Personal tools

Exporting Hardware over networks

This is an elaboration on my original post for exporting GPS using netcat. The networking portion is covered elsewhere and you can use either USB or bluetooth networking. This is how it works:


   * On host type: nc -vvn -l -p 5000 > /dev/mount-point

This sets up the host to listen for the connection.

   * On the Neo type: nc IP-ADDRESS-OF-HOST 5000 < /dev/port-to-export

This exports the port to the host ip address

This has been tested with GPS and GSM, but in theory it will work with all hardware.


Example: export GSM over USB network

   * First be sure you have gllin installed on the Neo.
   * On host type: nc -vvn -l -p 5000 > /tmp/nmeaNP
   * On the Neo type: nc 192.168.0.200 5000 < /tmp/nmeaNP
   *
   * On the host PC install GPSD, your GPS is attached as /tmp/nmeaNP
   * start gpsd on host with: gpsd -p /tmp/nmeaNP
   * run your application! I used gpsdrive and it works better than my stand-alone GPS.
   * Tested with RoadNav.Works great!
   *
   * With this in mind if you have an unlimited data package you could export this over the internet.
   * the possibilities are limitless.