TOP
SSV Software Systems Register  Register
Log in to check your private messages  Log in to check your private messages
Startseite FAQ Search Mitglieder Profile  Log in 
SSV Support-Forum
USB-UART mit FTDI-Chip ….

 
Post new topic   Reply to topic    SSV-Forum Forum Index >>> IGW/935
<<< Previous topic - Next topic >>>  
Display posts from previous:   
Author Message
kdw



Joined: 05 May 2006
Posts: 1460

PostPosted: 16.05.2013, 11:55    Post subject: USB-UART mit FTDI-Chip …. Reply with quote

Hallo Forum.

Vor kurzem erreichte uns eine Anfrage hinsichtlich der USB-Schnittstelle des IGW/935. Ein Kunde wollte einen Temperatursensor mit USB-UART (Chip-Hersteller FTDI) an der USB-Schnittstelle betreiben, um die Temperatur auszulesen und weiterzuverarbeiten. Die Daten werden einmal pro Sekunde mit 9.600 bps/N/8/1 vom Sensor über den USB-UART gesendet.

Standardmäßig sind keine FTDI-USB-Treiber im IGW/935-Linux vorhanden. Diese Treiber müssen per FTP zum IGW/935 übertragen und nachinstalliert werden:

Code:
insmod usbserial.ko
insmod ftdi_sio.ko


Der UART wird zur Device ttyUSB0 im Linux des IGW/935. Danach kann zum Beispiel mit microcom (dieses Tool ist ab Werk im Linux des IGW/935 vorinstalliert) die Temperatur gelesen und ausgegeben werden:

Code:
microcom -s 9600 /dev/ttyUSB0
* 27.49 * *
* 27.50 * *
* 27.49 * *
* 27.51 * *
* 27.50 * *
* 27.50 * *
* 27.49 * *
* 27.51 * *
* 27.49 * *
* 27.50 * *


Gruß KDW
Back to top
View user's profile Send private message
hne



Joined: 11 Jul 2008
Posts: 210
Location: Hannover

PostPosted: 04.09.2017, 09:07    Post subject: Reply with quote

Wird ein neuer USB-Serial-Adpater eingesteckt, funktioniert möglicherweise die obige Anleitung nicht. Im ftdi_sio sind nur die bis datao bekannten Hersteller und Produkte hinterlegt.

Schauen Sie bitte mit lsusb nach, welchen Chip Sie haben:
Code:
# lsusb
Bus 001 Device 013: ID 0403:6015 Future Technology Devices International, Ltd


In dem Fall ist es 6015.
Dieser wird nicht automatisch erkannt. Die Befehle zum Laden der Module lauten in diesem Fall:
Code:
modprobe usbserial
modprobe ftdi_sio product=0x6015


Um herauszufinden, welches serielle Device zugeordnet wurde, schauen Sie bitte mit dmesg nach:
Code:
# dmesg | grep ttyUSB
usb 1-2.2.6: FTDI USB Serial Device converter now attached to ttyUSB0


In diesem Fall ist es /dev/ttyUSB0.
_________________
Henry Nestler
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    SSV-Forum Forum Index >>> IGW/935 All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

SSV Software Systems GmbH

Dünenweg 5
30419 Hannover

Fon: +49(0)511  ·  40 000-0
Fax: +49(0)511  ·  40 000-40

sales@ssv-embedded.de


Impressum    ·    Datenschutz    ·    AGB

© 2023 SSV SOFTWARE SYSTEMS GmbH. Alle Rechte vorbehalten.

ISO 9001:2015