element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Raspberry Pi
  • Products
  • More
Raspberry Pi
Raspberry Pi Forum Raspberry Pi OS FTDI channel Cap / limit?
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Raspberry Pi to participate - click to join for free!
Featured Articles
Announcing Pi
Technical Specifications
Raspberry Pi FAQs
Win a Pi
Raspberry Pi Wishlist
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Not Answered
  • Replies 4 replies
  • Subscribers 665 subscribers
  • Views 937 views
  • Users 0 members are here
  • raspberry pi 4 8 gb
  • python software
  • ftdi adapter
Related

Raspberry Pi OS FTDI channel Cap / limit?

daemoninformatica
daemoninformatica over 4 years ago

I'm currently experimenting with a setup where I install a lite version of Raspberry Pi OS on a Pi 4 (8GB version).

Installation (using NOOBS) and configuration for ssh was painless and so was installing some python3 libraries and utilities.

 

The problem I run into is the following: Using 2 4-port hubs, I'm trying to connect several (currently 5) FTDI cables. I wrote a simple python script to read the serial input and if any input was there, pass it on over mqtt to a server (in local network. )

The thing is, this appears to work for 4 channels (FTDI cables) but as I add a second hub with the 5th channel, serial data goes 'missing'. (isn't passed on properly). Each channel has its own identical but separate python serial to mqtt process.

The processor and memory are basically idleing, so I can't imagine there should be a limit there.

In recent past, I've tried this setup with a Pi 3, and ran into the same problem. Figuring it had to do with the very limited bridge between CPU and USB / network, I upgraded to the Pi 4 that should have a different architecture (solving the limit)

But even so: These serial connections aren't passing actually a lot of data (we're talking KB's per minute.)

 

I was wondering: could there be some cap / limit on serial / USB interfaces in the software (kernel)? During these 'missing data' periods, the device doesn't actually disconnect (or show any other error) according to dmesg.

  • Sign in to reply
  • Cancel
Parents
  • daemoninformatica
    0 daemoninformatica over 4 years ago

    I am so sorry!

     

    I neglected this way too long.

     

    In the end, I (kinda) figured this out.

    I used a 'readlines' to read a pyserial's output stream to read lines. Makes kind of sense, right? I think that altogether this is not a bad implementation, until you use too many serial IO's.

    In th end I more or less rewrote part of the implementation and did a readline() kind-of implementation, no longer depending on  timeouts per channel, based on the operating system's idea of a timeout.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Reply
  • daemoninformatica
    0 daemoninformatica over 4 years ago

    I am so sorry!

     

    I neglected this way too long.

     

    In the end, I (kinda) figured this out.

    I used a 'readlines' to read a pyserial's output stream to read lines. Makes kind of sense, right? I think that altogether this is not a bad implementation, until you use too many serial IO's.

    In th end I more or less rewrote part of the implementation and did a readline() kind-of implementation, no longer depending on  timeouts per channel, based on the operating system's idea of a timeout.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Children
No Data
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube