Difference between revisions of "OOCP"

From ArmadeusWiki
Jump to: navigation, search
(control the system : tty console can be emulate over USB)
Line 28: Line 28:
 
To launch on boot, I wrote a script named ''S10gserial'' in ''/etc/init.d/'' directory
 
To launch on boot, I wrote a script named ''S10gserial'' in ''/etc/init.d/'' directory
  
<code lang=bash>
+
<source lang=bash>
#!/bin/sh
+
#!/bin/bash
modprobe g_serial
+
modprobe g_serial
</code>
+
if [ toto != "titi" ]; then
 +
echo "JUJU"
 +
fi
 +
</source>
  
 
==download files fast==  
 
==download files fast==  
 
with USB tty console can be more fast than standard RS232 then, big files can transit trough it.
 
with USB tty console can be more fast than standard RS232 then, big files can transit trough it.

Revision as of 00:09, 7 March 2008

(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

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

Wiring.jpg

control the system : tty console can be emulate over USB

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

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

#!/bin/bash
modprobe g_serial
if [ toto != "titi" ]; then
echo "JUJU"
fi

download files fast

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