Subject: terminal program for linux
From: Rotary Engine
Date: 9/25/2011, 2:31 PM
To: AAA Put this in the To box



Anybody know how to take ASCII data in from a USB port using
the Linux command line? I have a USB GPS receiver probably putting out
NEMA 0183 ASCII data every one second.

-------------------------------

When I do "dmesg" I get this among other things.

[337219.194564] usb 2-5: USB disconnect, address 10
[353725.772224] usb 8-1: new full speed USB device using uhci_hcd and
address 2
[353725.976107] usb 8-1: configuration #1 chosen from 1 choice
[353726.141383] usbcore: registered new interface driver usbserial
[353726.141398] USB Serial support registered for generic
[353726.141423] usbcore: registered new interface driver usbserial_generic
[353726.141425] usbserial: USB Serial Driver core
[353726.155861] USB Serial support registered for DeLorme Earthmate USB
[353726.155874] USB Serial support registered for HID-COM RS232 Adapter
[353726.155886] USB Serial support registered for Nokia CA-42 V2 Adapter
[353726.155906] cypress 8-1:1.0: DeLorme Earthmate USB converter detected

[353726.157262] usb 8-1: DeLorme Earthmate USB converter now attached to
ttyUSB0

[353726.157280] usbcore: registered new interface driver cypress
[353726.157282] cypress_m8: v1.09:Cypress USB to Serial Driver
[353726.177064] usbcore: registered new interface driver hiddev
[353726.177081] usbcore: registered new interface driver usbhid
[353726.177083] usbhid: v2.6:USB HID core driver


What do I do now?

Paul Lamar

Paul,

Try installing cutecom with your package manager. If you use yum:

yum install cutecom

CuteCom is a graphical serial terminal, like minicom or Hyperterminal on
Windows. It is aimed mainly at hardware developers or other people who
need a terminal to talk to their devices.

Mark LaPierre


root@paul-desktop:~# yum install cutecom
The program 'yum' is currently not installed. You can install it by typing:
apt-get install yum
bash: yum: command not found
root@paul-desktop:~#


Then I did.

root@paul-desktop:~# yum install cutecom
The program 'yum' is currently not installed. You can install it by typing:
apt-get install yum
bash: yum: command not found
root@paul-desktop:~#
root@paul-desktop:~#
root@paul-desktop:~#
root@paul-desktop:~#
root@paul-desktop:~# apt-get install cutecom
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer
required:
vim-gui-common vim-runtime
Use 'apt-get autoremove' to remove them.
Suggested packages:
lrzsz
The following NEW packages will be installed:
cutecom
0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
Need to get 50.1kB of archives.
After this operation, 184kB of additional disk space will be used.
WARNING: The following packages cannot be authenticated!
cutecom
Install these packages without verification [y/N]? y
Err http://us.archive.ubuntu.com jaunty/universe cutecom 0.20.0-1
404 Not Found [IP: 91.189.92.171 80]
Failed to fetch
http://us.archive.ubuntu.com/ubuntu/pool/universe/c/cutecom/cutecom_0.20.0-1_i386.deb
404 Not Found [IP: 91.189.92.171 80]
E: Unable to fetch some archives, maybe run apt-get update or try with
--fix-missing?
root@paul-desktop:~#

Then this happened.

root@paul-desktop:~# apt-get update
SNIP<<<<
root@paul-desktop:~#



Paul Lamar


I did a little experimenting.

[mlapier@mushroom Downloads]$ wget
http://us.archive.ubuntu.com/ubuntu/pool/universe/c/cutecom/cutecom_0.20.0-1_i386.deb
--2011-09-25 11:17:19--
http://us.archive.ubuntu.com/ubuntu/pool/universe/c/cutecom/cutecom_0.20.0-1_i386.deb
Resolving us.archive.ubuntu.com... 91.189.92.171, 91.189.88.30,
91.189.88.31, ...
Connecting to us.archive.ubuntu.com|91.189.92.171|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2011-09-25 11:17:19 ERROR 404: Not Found.

[mlapier@mushroom Downloads]$ wget
http://us.archive.ubuntu.com/ubuntu/pool/universe/c/cutecom/cutecom_0.22.0-2_i386.deb
--2011-09-25 11:20:10--
http://us.archive.ubuntu.com/ubuntu/pool/universe/c/cutecom/cutecom_0.22.0-2_i386.deb
Resolving us.archive.ubuntu.com... 91.189.88.40, 91.189.88.45,
91.189.88.46, ...
Connecting to us.archive.ubuntu.com|91.189.88.40|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 54954 (54K) [application/x-debian-package]
Saving to: ?cutecom_0.22.0-2_i386.deb?

100%[======================================] 54,954       169K/s   in
0.3s

2011-09-25 11:20:11 (169 KB/s) - ?cutecom_0.22.0-2_i386.deb? saved
[54954/54954]

apt-get was trying to fetch cutecom_0.20.0-1_i386.deb which is not found
in the repository.  The correct file is cutecom_0.22.0-2_i386.deb.

There appears to be something amiss with your local repo files.  I'm
thinking that they are not updated to match your current installed
revision of Ubuntu.  This happens when Ubuntu is upgraded from one
release to another.

I don't know where Ubuntu keeps the repo files for apt-get but Fedora
keeps the repo files for yum at:

[mlapier@mushroom yum.repos.d]$ pwd
/etc/yum.repos.d
[mlapier@mushroom yum.repos.d]$ ls
adobe-linux-i386.repo        rpmfusion-free-updates.repo
fedora.repo                  rpmfusion-free-updates-testing.repo
fedora-updates.repo          rpmfusion-nonfree-rawhide.repo
fedora-updates-testing.repo  rpmfusion-nonfree.repo
packagekit-media.repo        rpmfusion-nonfree-updates.repo
rpmfusion-free-rawhide.repo  rpmfusion-nonfree-updates-testing.repo
rpmfusion-free.repo
[mlapier@mushroom yum.repos.d]$

Check out this forum posting:

http://ubuntuforums.org/showthread.php?t=1295170

This sounds like a similar issue to your apt-get update problem.

Mark LaPierre


I tried it with Real Term on XP and it did not work there
either.

Paul Lamar
-- 
The Rotary Engine NewsLetter. Powered by Linux.
ACRE NL web site. http://www.rotaryeng.net
Youtube key word PaulLamar2
Copyright 1998-2011 All world wide rights reserved.