LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 06-24-2020, 11:43 AM   #1
prl242
LQ Newbie
 
Registered: Apr 2019
Posts: 7

Rep: Reputation: Disabled
Minicom communications to usb device


Hi,

Has anyone had an issue where minicom is set to communicate with a usb device, command is sent. In order to see the response we need to close minicom and reopen it. The response is there.

We are using XUbuntu 12.04. The usb device is custom hardware (purchased) that uses ascii commands.

Thanks
Paul
 
Old 06-24-2020, 01:36 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,712

Rep: Reputation: 8168Reputation: 8168Reputation: 8168Reputation: 8168Reputation: 8168Reputation: 8168Reputation: 8168Reputation: 8168Reputation: 8168Reputation: 8168Reputation: 8168
Quote:
Originally Posted by prl242 View Post
Hi,
Has anyone had an issue where minicom is set to communicate with a usb device, command is sent. In order to see the response we need to close minicom and reopen it. The response is there.

We are using XUbuntu 12.04. The usb device is custom hardware (purchased) that uses ascii commands.
Well, since you don't say anything about the hardware or give us any specs, there's not a lot we can tell you. Serial communications is typically a dark art, so the first thing I'd check would be the baud/parity, followed by the echo (? Can't remember what it's called) settings in minicom. The manual on the purchased device should have specs on how to talk to it, and how to configure your client.
 
Old 06-24-2020, 01:40 PM   #3
prl242
LQ Newbie
 
Registered: Apr 2019
Posts: 7

Original Poster
Rep: Reputation: Disabled
Thanks. We have confirmed the port settings. Using wireshark to sniff the packets it looks like the response from the device is in two packets. And the first packet does not include an end of line character.
 
Old 06-24-2020, 02:35 PM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,712

Rep: Reputation: 8168Reputation: 8168Reputation: 8168Reputation: 8168Reputation: 8168Reputation: 8168Reputation: 8168Reputation: 8168Reputation: 8168Reputation: 8168Reputation: 8168
Quote:
Originally Posted by prl242 View Post
Thanks. We have confirmed the port settings. Using wireshark to sniff the packets it looks like the response from the device is in two packets. And the first packet does not include an end of line character.
Ok, great...we still don't know anything about the device, how you're connecting to it, what settings you're using, etc. Not sure what you think we can tell you without knowing ANYTHING other than you're using minicom to USB.
 
Old 06-24-2020, 03:39 PM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 26,798

Rep: Reputation: 6333Reputation: 6333Reputation: 6333Reputation: 6333Reputation: 6333Reputation: 6333Reputation: 6333Reputation: 6333Reputation: 6333Reputation: 6333Reputation: 6333
I agree with TBOne that you have not provided enough information. Just because there isn't an EOL character should not prevent minicom from displaying incoming data although we do not know how its configured.

As stated hopefully the manual that came with the device has some information on its protocol. If it is online can you provide the URL?

I have used minicom with many many serial devices, real and virtual i.e USB where its communication is ASCII text without problems. Its just understanding how the protocol works.

Last edited by michaelk; 06-24-2020 at 03:41 PM.
 
1 members found this post helpful.
Old 06-24-2020, 04:04 PM   #6
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,712

Rep: Reputation: 8168Reputation: 8168Reputation: 8168Reputation: 8168Reputation: 8168Reputation: 8168Reputation: 8168Reputation: 8168Reputation: 8168Reputation: 8168Reputation: 8168
To add to what's here already, the setting I was trying to think of earlier is "local echo". Posting the output of
Code:
stty -f /dev/whatever/usb/device/name -a
..would help. If istrip is set, it could cause problems.
 
Old 06-24-2020, 04:37 PM   #7
prl242
LQ Newbie
 
Registered: Apr 2019
Posts: 7

Original Poster
Rep: Reputation: Disabled
Hi all,

Thanks for the responses. The device we have is being integrated with a single board computer and I can not give many details of the device itself.

Our issue now appears not to be with the software configuration. It seems that improper electrical grounding is corrupting the usb communications. Not enough to completely fail though

Cheers
Paul
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] howto install driver for Ethernet controller: Atheros Communications Device 1083 nicolasdiogo Linux - Hardware 20 07-09-2013 11:48 AM
Driver Atheros Communications Device 1083 (rev c0) ganesh raorane Linux - Newbie 3 08-13-2012 11:50 AM
minicom vs. Gtkterm vs. Putty - app for serial communications don_wombat_73 Linux - Software 2 05-21-2009 10:59 AM
Minicom via ttyS0: Please help with $TERM, $MINICOM, colors, mouse/gpm. GrapefruiTgirl Linux - Software 2 07-19-2008 07:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 06:40 PM.

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