LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 11-01-2010, 06:19 PM   #1
gkogut
LQ Newbie
 
Registered: Nov 2003
Posts: 4

Rep: Reputation: 0
block on write call to ttyACM device


I have a write call to a ttyACM serial device that blocks after several hundreds bytes are written. I'm writing in ~25 byte chunks, so I have 5-8 successful writes, then the next write blocks forever. I can bypass the blocked call using select, but I can never call write again without closing and re-opening the port.

The serial port is opened correctly because I can read from it just fine. Write permissions are correct, and it's opened RW. The code is likely correct because I tested the same code using the same device on a pure RS-232 serial port, and it worked fine - no block.

Is there anything to know about the linux ACM module? It's my understanding that write calls basically shouldn't block. They're supposed to return -1 if there's an error.
 
Old 11-04-2010, 09:23 AM   #2
ciotog
Member
 
Registered: Mar 2004
Location: Canada
Distribution: Slackware current
Posts: 728
Blog Entries: 2

Rep: Reputation: 43
Seems like a flow control issue to me.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
mount: block device is write-protected, mounting read-only xpucto Linux - Server 10 02-01-2017 02:16 AM
Block device /dev/sda3 is not a valid root device.. rincewind Linux - Hardware 7 06-09-2006 04:47 AM
"block device /dev/sda2 is write-protected, mounting read-only" - fstab problem blanks77 Linux - Hardware 1 04-28-2006 06:09 PM
UL 1.0 GRUB: could not find device for /boot: not found or not a block device cma Linux - General 4 12-12-2005 03:35 AM
USB CF Card Reader/Write not a valid block device cromwell Linux - Hardware 10 01-06-2004 10:11 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:27 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration