LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-04-2008, 12:38 PM   #1
EnderX
Member
 
Registered: Nov 2006
Posts: 66

Rep: Reputation: 15
Question involving kermit connections and line speed


If this is in the wrong place, I apologize; I simply wasn't sure where it fit.

As part of my job, I've been tasked with maintaining the code for a set of handheld barcode scanners. The scanners came with a program designed for loading information on them and retrieving it from them, but this requires that the end user haul this program up and manually make the shift according to the instructions in the manual. I've been looking for a way to automate this.

It turns out that the scanner's internal os includes what appears to be a minimal installation of kermit. (It specifically states 'Kermit Server Mode' on the screen when this is selected from the menu.) I can't get it to accept any commands, and the instructions in the manual place all actions on the host side, but I'd thought that might be usable for automating information retrieval. Upon discovering that there was a (c)kermit install on my Linux test server, I started trying to make the connection. I've never worked with C-Kermit before, though, so I'm having trouble, and am probably missing something obvious here.

I found a site online that appears to be a complete copy of the man page (as the first part is identical to the information that appears when I type man kermit into my test box). It included instructions for making a direct serial port connection; as the scanner cable is designed to plug into a serial port, I thought that was what I needed. However, upon attempting to follow the instructions for that setup, I'm having problems with the set speed command. I've tried every single speed setting that 'set speed ?' lists, and get the same message for all of them: ?Unsupported line speed - [numeric value of speed]. While attempting to follow earlier instructions I did not get this message, but the instructions I am following now include an extra step - set modem type none.

Where am I messing up in this?
 
Old 11-04-2008, 12:44 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by EnderX View Post
If this is in the wrong place, I apologize; I simply wasn't sure where it fit.

As part of my job, I've been tasked with maintaining the code for a set of handheld barcode scanners. The scanners came with a program designed for loading information on them and retrieving it from them, but this requires that the end user haul this program up and manually make the shift according to the instructions in the manual. I've been looking for a way to automate this.

It turns out that the scanner's internal os includes what appears to be a minimal installation of kermit. (It specifically states 'Kermit Server Mode' on the screen when this is selected from the menu.) I can't get it to accept any commands, and the instructions in the manual place all actions on the host side, but I'd thought that might be usable for automating information retrieval. Upon discovering that there was a (c)kermit install on my Linux test server, I started trying to make the connection. I've never worked with C-Kermit before, though, so I'm having trouble, and am probably missing something obvious here.

I found a site online that appears to be a complete copy of the man page (as the first part is identical to the information that appears when I type man kermit into my test box). It included instructions for making a direct serial port connection; as the scanner cable is designed to plug into a serial port, I thought that was what I needed. However, upon attempting to follow the instructions for that setup, I'm having problems with the set speed command. I've tried every single speed setting that 'set speed ?' lists, and get the same message for all of them: ?Unsupported line speed - [numeric value of speed]. While attempting to follow earlier instructions I did not get this message, but the instructions I am following now include an extra step - set modem type none.

Where am I messing up in this?
Try this: http://linux.die.net/man/8/setserial The setserial command might be what you're after. That will help you set your serial speed/parity/etc.

Don't know what you're trying to automate this in, but an "expect" script would be able to navigate menus/options received, and send back commands based on what it gets....
 
  


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
Shell Scripting question involving ping jhilton Linux - Newbie 3 07-29-2008 10:16 AM
Active connections conundrum involving lsof / netstat output uncle-c Linux - Newbie 8 12-09-2007 10:56 AM
Question involving kernel compile synapse Slackware 2 04-28-2004 02:53 PM
Suse Question involving Yast Trinity22 Linux - Distributions 2 04-09-2004 06:03 PM
Installation Question involving /home partition bolinux Linux - General 3 11-26-2003 01:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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