Difference between revisions of "OOCP"

From ArmadeusWiki
Jump to: navigation, search
m (control the system : tty console can be emulate over USB)
 
(23 intermediate revisions by 3 users not shown)
Line 3: Line 3:
 
You think they are too many cables on your devlight ?
 
You think they are too many cables on your devlight ?
  
yes mee too :
+
yes me too :
  
 
[[Image:tropdecable.jpg]]
 
[[Image:tropdecable.jpg]]
Line 15: Line 15:
 
* Power the kit (AC/DC bloc)
 
* Power the kit (AC/DC bloc)
 
* control the system (RS232)
 
* control the system (RS232)
* download files fast (Ethernet)
+
* download files fastly (Ethernet)
  
But it is possible to use only USB to :
+
But it is possible to use only [http://fr.wikipedia.org/wiki/USB USB] to :
* '''Power the kit''' : USB protocol can provide up to 500mA
+
==Power the kit==
* '''control the system''' : tty console can be emulate over USB
+
{{Warning| It's a Hack, so it can damage your PC-USB port.}}
* '''download files fast''' : with USB tty console can be more fast than standard RS232 then, big files can transit trough it.
+
 
 +
USB protocol can provide up to 500mA (100mA by default) at 5V, then we have to plug USB power on DevLight power and USB-GND on DevLight GND like this :
 +
 
 +
[[Image:wiring.jpg | 300px]]
 +
 
 +
{{Warning|  '''Never''' connect USB and standard Power at the same time, or you shall burn your PC-USB port.}}
 +
 
 +
==Control the system : tty console can be emulated over USB==
 +
In the first time, RS232 is needed to configure the kit. [[USB_Gadget  | Here]] is an explanation on how to configure module ''g_serial'' to use USB as serial port.
 +
 
 +
To launch it at boot, I wrote a script named ''S10gserial'' in ''/etc/init.d/'' directory
 +
 
 +
<source lang=bash>
 +
#!/bin/bash
 +
# load core USB controler
 +
modprobe imx_udc
 +
# load serial USB controler
 +
modprobe g_serial
 +
</source>
 +
 
 +
'''TODO:''' Connect the ''ttygserial'' device on APF console automatically.
 +
 
 +
==download files fast==
 +
with USB tty console can be more fast than standard RS232 then, big files can transit trough it.

Latest revision as of 14:07, 12 June 2009

(Only One Cable Project)

You think they are too many cables on your devlight ?

yes me too :

Tropdecable.jpg

Yes it is possible to develop applications with only one cable :

Moinsdecable.jpg


To program the apf, we need tree cables to

  • Power the kit (AC/DC bloc)
  • control the system (RS232)
  • download files fastly (Ethernet)

But it is possible to use only USB to :

Power the kit

Warning Warning: It's a Hack, so it can damage your PC-USB port.


USB protocol can provide up to 500mA (100mA by default) at 5V, then we have to plug USB power on DevLight power and USB-GND on DevLight GND like this :

Wiring.jpg

Warning Warning: Never connect USB and standard Power at the same time, or you shall burn your PC-USB port.


Control the system : tty console can be emulated over USB

In the first time, RS232 is needed to configure the kit. Here is an explanation on how to configure module g_serial to use USB as serial port.

To launch it at boot, I wrote a script named S10gserial in /etc/init.d/ directory

#!/bin/bash
# load core USB controler
modprobe imx_udc
# load serial USB controler
modprobe g_serial

TODO: Connect the ttygserial device on APF console automatically.

download files fast

with USB tty console can be more fast than standard RS232 then, big files can transit trough it.