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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
06-24-2020, 11:43 AM
|
#1
|
LQ Newbie
Registered: Apr 2019
Posts: 7
Rep: 
|
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
|
|
|
06-24-2020, 01:36 PM
|
#2
|
LQ Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,712
|
Quote:
Originally Posted by prl242
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.
|
|
|
06-24-2020, 01:40 PM
|
#3
|
LQ Newbie
Registered: Apr 2019
Posts: 7
Original Poster
Rep: 
|
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.
|
|
|
06-24-2020, 02:35 PM
|
#4
|
LQ Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,712
|
Quote:
Originally Posted by prl242
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.
|
|
|
06-24-2020, 03:39 PM
|
#5
|
Moderator
Registered: Aug 2002
Posts: 26,798
|
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.
|
06-24-2020, 04:04 PM
|
#6
|
LQ Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,712
|
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.
|
|
|
06-24-2020, 04:37 PM
|
#7
|
LQ Newbie
Registered: Apr 2019
Posts: 7
Original Poster
Rep: 
|
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
|
|
|
All times are GMT -5. The time now is 06:40 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|