Jump to content
PLC Forum


Sign in to follow this  
FabioPD

PORTA USB IN raspberry

Recommended Posts

FabioPD

[Aiuto con raspberry] quando collego ad una porta USB del raspy un convertitore seriale (232 o 485) come posso vedere se la porta viene vista nel sistema? mi viene assegnata una porta COM (come in Windows?) grazie

Share this post


Link to post
Share on other sites

ilguargua

Lancia in console il comando :

 

tail -f /var/log/syslog

e successivamente collega il tuo dispositivo. L'output dovrebbe essere simile a questo :

Oct 24 18:24:33 guargua-desktop kernel: [ 3687.913357] usb 5-2: new full-speed USB device number 2 using xhci_hcd
Oct 24 18:24:33 guargua-desktop kernel: [ 3688.079168] usb 5-2: New USB device found, idVendor=067b, idProduct=2303
Oct 24 18:24:33 guargua-desktop kernel: [ 3688.079173] usb 5-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
Oct 24 18:24:33 guargua-desktop kernel: [ 3688.079176] usb 5-2: Product: USB-Serial Controller
Oct 24 18:24:33 guargua-desktop kernel: [ 3688.079178] usb 5-2: Manufacturer: Prolific Technology Inc.
Oct 24 18:24:33 guargua-desktop mtp-probe: checking bus 5, device 2: "/sys/devices/pci0000:00/0000:00:10.0/usb5/5-2"
Oct 24 18:24:33 guargua-desktop mtp-probe: bus: 5, device: 2 was not an MTP device
Oct 24 18:24:33 guargua-desktop kernel: [ 3688.109071] usbcore: registered new interface driver usbserial_generic
Oct 24 18:24:33 guargua-desktop kernel: [ 3688.109088] usbserial: USB Serial support registered for generic
Oct 24 18:24:33 guargua-desktop kernel: [ 3688.111244] usbcore: registered new interface driver pl2303
Oct 24 18:24:33 guargua-desktop kernel: [ 3688.111264] usbserial: USB Serial support registered for pl2303
Oct 24 18:24:33 guargua-desktop kernel: [ 3688.111295] pl2303 5-2:1.0: pl2303 converter detected
Oct 24 18:24:33 guargua-desktop kernel: [ 3688.139028] usb 5-2: pl2303 converter now attached to ttyUSB0

L'ultima riga è quella che ti interessa, potrai usare il tuo dispositivo come /dev/ttyUSB0 (o quello che ti appare, questo è solo l'esempio con un convertitore che ho sottomano).

 

Ciao, Ale.

+

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...