Skip to the content Skip to the navigation Accessibility information
Decagon Devices
Login|Register| Contact us
US: 1.800.755.2751
International: +1.509.332.2756
  • Home
  • Products
    • Water Activity
    • Environmental Instruments
    • Sensors
    • Data Loggers and Collectors
    • Environmental Monitoring Systems
    • Lysimeters and Infiltrometers
  • Services
    • Thermal Properties Testing
    • Soil Moisture Release Curve Construction
    • Campbell Scientific Data Logger Programming
    • Soil Moisture Sensor Custom Calibration
  • Support
  • News & Events
  • Where to Buy
  • About Us
    • About Us
    • Contact Us
    • Sister Companies
    • Employment
    • GA Harris Fellowship
    • People
  • Education
  • Forums
    • Soil Moisture
    • Data Loggers and Data Management
    • Canopy Measurements
    • Soil Water Potential
    • Lysimetry and Hydrology
    • Clarke Topp Twenty Questions
    • Best Practices of Soil Moisture Measurements Virtual Seminar Questions
    • Methods of Sampling and Analyzing Soil Pore Solution Virtual Seminar Questions
    • Basic Principles of Radiation Measurement to Predict ET, Climate Change, Photosynthesis and Crop Yield
    • Lysimetry Basics: Peering in to the Black Box Virtual Seminar Questions

62 Posts in 20 Topics by 25 members

Jump to:
Search

Data Loggers and Data Management

Welcome to Decagon's online forum.  Find answers to common questions for Decagon personnel and other users.  If this is your first visit, you will need to register before you can post. However, you can browse all messages below.

Moderators: Lauren, Virgil, Decagon Support

Page: 1 Go to End
Author Topic:em50 and linux 1085 Views
  • alextm
    Avatar
    Community Member
    2 Posts

    em50 and linux Link to this post

    26 October 2011 at 11:10am

    Hello,

    I'm trying to install the em50 under Linux.
    I managed to load the ftdi_sio module with the folowing parameters:
    # modprobe ftdi_sio vendor=0x10c4 product=0x8414

    The ftdi driver version is 1.6.0.

    The output when I connect the device is:

    Oct 26 14:42:48 vaio-nrj kernel: [ 727.419434] USB Serial support registered for FTDI USB Serial Device
    Oct 26 14:42:48 vaio-nrj kernel: [ 727.419820] ftdi_sio 5-1:1.0: FTDI USB Serial Device converter detected
    Oct 26 14:42:48 vaio-nrj kernel: [ 727.419997] usb 5-1: Detected SIO
    Oct 26 14:42:48 vaio-nrj kernel: [ 727.420044] usb 5-1: Number of endpoints 2
    Oct 26 14:42:48 vaio-nrj kernel: [ 727.420051] usb 5-1: Endpoint 1 MaxPacketSize 64
    Oct 26 14:42:48 vaio-nrj kernel: [ 727.420056] usb 5-1: Endpoint 2 MaxPacketSize 64
    Oct 26 14:42:48 vaio-nrj kernel: [ 727.420061] usb 5-1: Setting MaxPacketSize 64
    Oct 26 14:42:53 vaio-nrj kernel: [ 732.422600] ftdi_sio ttyUSB0: Unable to read latency timer: -110
    Oct 26 14:42:53 vaio-nrj kernel: [ 732.427485] usb 5-1: FTDI USB Serial Device converter now attached to ttyUSB0
    Oct 26 14:42:53 vaio-nrj kernel: [ 732.427532] usbcore: registered new interface driver ftdi_sio
    Oct 26 14:42:53 vaio-nrj kernel: [ 732.427537] ftdi_sio: v1.6.0:USB FTDI Serial Converters Driver

    And when I try to open the serial ttyUSB0 for example with minicom, the output is:

    Oct 26 14:42:53 vaio-nrj kernel: [ 732.516269] ftdi_sio ttyUSB0: ftdi_set_termios urb failed to set baudrate
    Oct 26 14:42:53 vaio-nrj kernel: [ 732.520312] ftdi_sio ttyUSB0: ftdi_set_termios FAILED to set databits/stopbits/parity
    Oct 26 14:42:53 vaio-nrj kernel: [ 732.523280] ftdi_sio ttyUSB0: ftdi_set_termios urb failed to set baudrate
    Oct 26 14:42:53 vaio-nrj kernel: [ 732.526275] ftdi_sio ttyUSB0: urb failed to set to xon/xoff flow control
    Oct 26 14:42:53 vaio-nrj kernel: [ 732.529260] ftdi_sio ttyUSB0: Unable to write latency timer: -71
    Oct 26 14:42:53 vaio-nrj kernel: [ 732.532280] ftdi_sio ttyUSB0: ftdi_set_termios FAILED to set databits/stopbits/parity
    Oct 26 14:42:53 vaio-nrj kernel: [ 732.535283] ftdi_sio ttyUSB0: ftdi_set_termios error from disable flowcontrol urb
    Oct 26 14:42:53 vaio-nrj kernel: [ 732.539259] ftdi_sio ttyUSB0: urb failed to set to xon/xoff flow control
    Oct 26 14:42:53 vaio-nrj kernel: [ 732.540214] hub 5-0:1.0: port 1 disabled by hub (EMI?), re-enabling...
    Oct 26 14:42:53 vaio-nrj kernel: [ 732.540222] usb 5-1: USB disconnect, address 3
    Oct 26 14:42:53 vaio-nrj kernel: [ 732.545046] ftdi_sio ttyUSB0: FTDI USB Serial Device converter now disconnected from ttyUSB0
    Oct 26 14:42:53 vaio-nrj kernel: [ 732.545071] ftdi_sio 5-1:1.0: device disconnected

    I tried with Ubuntu, Centos, Slack, Suse ... no success.

    Is there any way for talking to the device in serial mode under Linux ?

    Thank you,
    Alex

  • alextm
    Avatar
    Community Member
    2 Posts

    Re: em50 and linux Link to this post

    27 October 2011 at 4:26am

    Solved, at least the serial communication problem.

    The driver is not ftdi_sio. It is cp210x.

    The standard Linux kernel does include this driver but it does not recognize the device.

    After trying with the latest driver from: http://www.silabs.com/products/mcu/Pages/USBtoUARTBridgeVCPDrivers.aspx , http://www.silabs.com/Support%20Documents/Software/cp210x-3.1.0.tar.gz wich is full of bugs, I returned to the one installed in the kernel.
    The one in the kernel is version 0.9 but after modifing the source of cp210x.c and adding:
    { USB_DEVICE(0x10C4, 0x8414) }, /* Decagon EM50 serial */
    on line 105, and recompiled the module, it started working.

    I can communicate with the device on port /dev/ttyUSB0.
    The OS that I use is CentOS 6.0 with kernel 2.6.32.

    Have fun,
    Alex

    1085 Views
Go to Top

Currently Online: There is nobody online.

Welcome to our latest member: lafseo

2365 NE Hopkins Court
Pullman, WA 99163 - USA
1-800-755-2751 / Int'l: 509-332-2756
© 2013 Decagon Devices, Inc. - All Rights Reserved