Subject: terminal program for linux
From: Rotary Engine
Date: 9/24/2011, 10:05 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
Get:1 http://dl.google.com stable Release.gpg [198B]
Ign http://dl.google.com stable/main Translation-en_US
Get:2 http://dl.google.com stable Release [1347B]
Get:3 http://dl.google.com stable/main Packages [1178B]
Ign http://security.ubuntu.com jaunty-security Release.gpg
Ign http://security.ubuntu.com jaunty-security/main Translation-en_US
Ign http://security.ubuntu.com jaunty-security/restricted Translation-en_US
Ign http://us.archive.ubuntu.com jaunty Release.gpg
Ign http://us.archive.ubuntu.com jaunty/main Translation-en_US
Ign http://us.archive.ubuntu.com jaunty/restricted Translation-en_US
Ign http://security.ubuntu.com jaunty-security/universe Translation-en_US
Ign http://security.ubuntu.com jaunty-security/multiverse Translation-en_US
Ign http://security.ubuntu.com jaunty-security Release
Ign http://us.archive.ubuntu.com jaunty/universe Translation-en_US
Ign http://us.archive.ubuntu.com jaunty/multiverse Translation-en_US
Ign http://us.archive.ubuntu.com jaunty-updates Release.gpg
Ign http://us.archive.ubuntu.com jaunty-updates/main Translation-en_US
Ign http://us.archive.ubuntu.com jaunty-updates/restricted Translation-en_US
Ign http://us.archive.ubuntu.com jaunty-updates/universe Translation-en_US
Ign http://us.archive.ubuntu.com jaunty-updates/multiverse Translation-en_US
Ign http://us.archive.ubuntu.com jaunty Release
Ign http://security.ubuntu.com jaunty-security/main Packages
Ign http://us.archive.ubuntu.com jaunty-updates Release
Ign http://security.ubuntu.com jaunty-security/restricted Packages
Ign http://security.ubuntu.com jaunty-security/main Sources
Ign http://security.ubuntu.com jaunty-security/restricted Sources
Ign http://security.ubuntu.com jaunty-security/universe Packages
Ign http://security.ubuntu.com jaunty-security/universe Sources
Ign http://us.archive.ubuntu.com jaunty/main Packages
Ign http://us.archive.ubuntu.com jaunty/restricted Packages
Ign http://us.archive.ubuntu.com jaunty/main Sources
Ign http://us.archive.ubuntu.com jaunty/restricted Sources
Ign http://us.archive.ubuntu.com jaunty/universe Packages
Ign http://security.ubuntu.com jaunty-security/multiverse Packages
Ign http://security.ubuntu.com jaunty-security/multiverse Sources
Ign http://security.ubuntu.com jaunty-security/main Packages
Ign http://security.ubuntu.com jaunty-security/restricted Packages
Ign http://security.ubuntu.com jaunty-security/main Sources
Ign http://security.ubuntu.com jaunty-security/restricted Sources
Ign http://security.ubuntu.com jaunty-security/universe Packages
Ign http://us.archive.ubuntu.com jaunty/universe Sources
Ign http://us.archive.ubuntu.com jaunty/multiverse Packages
Ign http://us.archive.ubuntu.com jaunty/multiverse Sources
Ign http://us.archive.ubuntu.com jaunty-updates/main Packages
Ign http://us.archive.ubuntu.com jaunty-updates/restricted Packages
Ign http://us.archive.ubuntu.com jaunty-updates/main Sources
Ign http://security.ubuntu.com jaunty-security/universe Sources
Ign http://security.ubuntu.com jaunty-security/multiverse Packages
Ign http://us.archive.ubuntu.com jaunty-updates/restricted Sources
Ign http://us.archive.ubuntu.com jaunty-updates/universe Packages
Ign http://us.archive.ubuntu.com jaunty-updates/universe Sources
Ign http://us.archive.ubuntu.com jaunty-updates/multiverse Packages
Ign http://us.archive.ubuntu.com jaunty-updates/multiverse Sources
Ign http://us.archive.ubuntu.com jaunty/main Packages
Ign http://us.archive.ubuntu.com jaunty/restricted Packages
Ign http://us.archive.ubuntu.com jaunty/main Sources
Ign http://us.archive.ubuntu.com jaunty/restricted Sources
Ign http://us.archive.ubuntu.com jaunty/universe Packages
Ign http://us.archive.ubuntu.com jaunty/universe Sources
Ign http://security.ubuntu.com jaunty-security/multiverse Sources
Err http://security.ubuntu.com jaunty-security/main Packages
 404 Not Found [IP: 91.189.92.166 80]
Err http://security.ubuntu.com jaunty-security/restricted Packages
 404 Not Found [IP: 91.189.92.166 80]
Err http://security.ubuntu.com jaunty-security/main Sources
 404 Not Found [IP: 91.189.92.166 80]
Err http://security.ubuntu.com jaunty-security/restricted Sources
 404 Not Found [IP: 91.189.92.166 80]
Ign http://us.archive.ubuntu.com jaunty/multiverse Packages
Ign http://us.archive.ubuntu.com jaunty/multiverse Sources
Ign http://us.archive.ubuntu.com jaunty-updates/main Packages
Ign http://us.archive.ubuntu.com jaunty-updates/restricted Packages
Ign http://us.archive.ubuntu.com jaunty-updates/main Sources
Err http://security.ubuntu.com jaunty-security/universe Packages
 404 Not Found [IP: 91.189.92.166 80]
Err http://security.ubuntu.com jaunty-security/universe Sources
 404 Not Found [IP: 91.189.92.166 80]
Ign http://us.archive.ubuntu.com jaunty-updates/restricted Sources
Ign http://us.archive.ubuntu.com jaunty-updates/universe Packages
Ign http://us.archive.ubuntu.com jaunty-updates/universe Sources
Ign http://us.archive.ubuntu.com jaunty-updates/multiverse Packages
Ign http://us.archive.ubuntu.com jaunty-updates/multiverse Sources
Err http://us.archive.ubuntu.com jaunty/main Packages
 404 Not Found [IP: 91.189.88.30 80]
Err http://security.ubuntu.com jaunty-security/multiverse Packages
 404 Not Found [IP: 91.189.92.166 80]
Err http://security.ubuntu.com jaunty-security/multiverse Sources
 404 Not Found [IP: 91.189.92.166 80]
Err http://us.archive.ubuntu.com jaunty/restricted Packages
 404 Not Found [IP: 91.189.88.30 80]
Err http://us.archive.ubuntu.com jaunty/main Sources
 404 Not Found [IP: 91.189.88.30 80]
Err http://us.archive.ubuntu.com jaunty/restricted Sources
 404 Not Found [IP: 91.189.88.30 80]
Err http://us.archive.ubuntu.com jaunty/universe Packages
 404 Not Found [IP: 91.189.88.30 80]
Err http://us.archive.ubuntu.com jaunty/universe Sources
 404 Not Found [IP: 91.189.88.30 80]
Err http://us.archive.ubuntu.com jaunty/multiverse Packages
 404 Not Found [IP: 91.189.88.30 80]
Err http://us.archive.ubuntu.com jaunty/multiverse Sources
 404 Not Found [IP: 91.189.88.30 80]
Err http://us.archive.ubuntu.com jaunty-updates/main Packages
 404 Not Found [IP: 91.189.88.30 80]
Err http://us.archive.ubuntu.com jaunty-updates/restricted Packages
 404 Not Found [IP: 91.189.88.30 80]
Err http://us.archive.ubuntu.com jaunty-updates/main Sources
 404 Not Found [IP: 91.189.88.30 80]
Err http://us.archive.ubuntu.com jaunty-updates/restricted Sources
 404 Not Found [IP: 91.189.88.30 80]
Err http://us.archive.ubuntu.com jaunty-updates/universe Packages
 404 Not Found [IP: 91.189.88.30 80]
Err http://us.archive.ubuntu.com jaunty-updates/universe Sources
 404 Not Found [IP: 91.189.88.30 80]
Err http://us.archive.ubuntu.com jaunty-updates/multiverse Packages
 404 Not Found [IP: 91.189.88.30 80]
Err http://us.archive.ubuntu.com jaunty-updates/multiverse Sources
 404 Not Found [IP: 91.189.88.30 80]
Fetched 2723B in 2s (1191B/s)
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/jaunty-security/main/binary-i386/Packages 404 Not Found [IP: 91.189.92.166 80]

W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/jaunty-security/restricted/binary-i386/Packages  404 Not Found [IP: 91.189.92.166 80]

W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/jaunty-security/main/source/Sources  404 Not Found [IP: 91.189.92.166 80]

W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/jaunty-security/restricted/source/Sources 404 Not Found [IP: 91.189.92.166 80]

W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/jaunty-security/universe/binary-i386/Packages  404 Not Found [IP: 91.189.92.166 80]

W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/jaunty-security/universe/source/Sources 404 Not Found [IP: 91.189.92.166 80]

W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/jaunty-security/multiverse/binary-i386/Packages  404 Not Found [IP: 91.189.92.166 80]

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/jaunty/main/binary-i386/Packages  404 Not Found [IP: 91.189.88.30 80]

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/jaunty/restricted/binary-i386/Packages 404 Not Found [IP: 91.189.88.30 80]

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/jaunty/main/source/Sources  404 Not Found [IP: 91.189.88.30 80]

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/jaunty/restricted/source/Sources  404 Not Found [IP: 91.189.88.30 80]

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/jaunty/universe/binary-i386/Packages 404 Not Found [IP: 91.189.88.30 80]

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/jaunty/universe/source/Sources  404 Not Found [IP: 91.189.88.30 80]

W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/jaunty-security/multiverse/source/Sources 404 Not Found [IP: 91.189.92.166 80]

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/jaunty/multiverse/binary-i386/Packages 404 Not Found [IP: 91.189.88.30 80]

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/jaunty/multiverse/source/Sources  404 Not Found [IP: 91.189.88.30 80]

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/jaunty-updates/main/binary-i386/Packages  404 Not Found [IP: 91.189.88.30 80]

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/jaunty-updates/restricted/binary-i386/Packages  404 Not Found [IP: 91.189.88.30 80]

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/jaunty-updates/main/source/Sources  404 Not Found [IP: 91.189.88.30 80]

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/jaunty-updates/restricted/source/Sources  404 Not Found [IP: 91.189.88.30 80]

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/jaunty-updates/universe/binary-i386/Packages  404 Not Found [IP: 91.189.88.30 80]

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/jaunty-updates/universe/source/Sources 404 Not Found [IP: 91.189.88.30 80]

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/jaunty-updates/multiverse/binary-i386/Packages  404 Not Found [IP: 91.189.88.30 80]

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/jaunty-updates/multiverse/source/Sources  404 Not Found [IP: 91.189.88.30 80]

E: Some index files failed to download, they have been ignored, or old ones used instead.
root@paul-desktop:~#



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.