Difference between pages "USB to serial adapter" and "Build and install gphoto2"

From Linuxintro
(Difference between pages)
imported>ThorstenStaerk
 
imported>ThorstenStaerk
 
Line 1: Line 1:
[[USB]] to serial adaptors allow you to use [http://en.wikipedia.org/wiki/RS232 RS232] based hardware via a computer's USB port.
+
gphoto2 is a utility to download pictures from a [[digital camera]].
  
I bought SiteCom's USB to serial cable and it works perfectly with Linux:
+
To [[build]] and [[install]] it, [[find out your distribution]] and proceed accordingly
* [[open a console]]
 
* attach the adaptor
 
* read the syslog using the command
 
dmesg
 
* in the syslog you will find some lines reading like
 
<pre>
 
[51904.256210] usb 2-1.6: new full speed USB device number 8 using ehci_hcd
 
[51904.341896] usb 2-1.6: New USB device found, idVendor=067b, idProduct=2303
 
[51904.341904] usb 2-1.6: New USB device strings: Mfr=1, Product=2, SerialNumber=0
 
[51904.341909] usb 2-1.6: Product: USB-Serial Controller D
 
[51904.341912] usb 2-1.6: Manufacturer: Prolific Technology Inc.
 
[51904.342508] hdj_probe() unsupported device, idVendor67b, idProduct:2303
 
[51904.342540] pl2303 2-1.6:1.0: pl2303 converter detected
 
[51904.344545] usb 2-1.6: pl2303 converter now attached to ttyUSB0
 
</pre>
 
  
= Testing with another computer =
+
= SUSE Linux 12.1 =
To test with another computer I connect the USB to serial adapter to my USB port, the other end I connect via a female-female cable to an older computer's com2 port. Then I issue on my computer
+
* [[open a console]] as root and [[install]] some [[dependencies]]:
dd if=/dev/urandom of=/dev/ttyUSB0
+
[[yast]] -i libgphoto2-devel
on the other computer I use
+
* download the source code from http://sourceforge.net/projects/gphoto/files/gphoto/
dd if=/dev/ttyS1
+
* [[extract]] it, in this example version 2.4.14:
And I can see how garbage is transmitted.
+
cd
 
+
[[tar]] xvzf Downloads/gphoto2-2.4.14.tar.gz
= See also =
+
cd gphoto2-2.4.14/
* [[hardwAre]]
 

Revision as of 18:44, 11 August 2012

gphoto2 is a utility to download pictures from a digital camera.

To build and install it, find out your distribution and proceed accordingly

SUSE Linux 12.1

yast -i libgphoto2-devel
cd
tar xvzf Downloads/gphoto2-2.4.14.tar.gz
cd gphoto2-2.4.14/