LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-12-2010, 12:30 AM   #1
burnsb
LQ Newbie
 
Registered: Apr 2010
Posts: 7

Rep: Reputation: 1
mincom xmodem transfer works, setty rx bash does not


I'm trying to transfer a screen capture from a device using the xmodem protocol.

I can do so successfully using minicom with the settings: /dev/ttyACM0 baud 38400, 8n1, no hardware or software flow control. The xmodem rx config line is /usr/bin/rx -vv -c (I had to add the -c).

However I need to do this using a bash script.

Here is what I'm trying:
stty -F /dev/ttyACM0 38400 clocal cread -crtscts cs8 -cstopb -parenb
rx -vv -c test.bmp < /dev/ttyACM0

I get a block of garbage but then the device fails, Ctrl-C will get me out.

I've read the man/info on stty, setserial, rx, minicom, and done extensive searching including checking out the source on minicom. However I don't know C. Any help would be greatly appreciated.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Bash script to transfer folders recursively without overwriting via FTP laurens Linux - Newbie 9 11-13-2009 07:40 AM
Minicom: xmodem Paris Heng Linux - Networking 5 05-23-2008 12:22 PM
bash script extract name transfer & to right folder gizmo1007 Programming 2 12-15-2007 05:12 AM
Using BASH script to transfer a file via (s)ftp senther Linux - Newbie 2 07-19-2005 04:47 PM
uploading with 1K Xmodem jonij Linux - Newbie 4 01-18-2005 12:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:57 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