Serial Command Troubles


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Serial Command Troubles
# 1  
Old 10-27-2008
Serial Command Troubles

Hello,

I am trying to send serial commands via a USB->Serial device using Mac OSX 10.5. I have the PL2303 driver installed. I have installed minicom and I can send commands all day long using echo "Dallas" >/dev/tty.usbserial if minicom is running. If minicom is not running the the echo command will hang up. I don't understand how minicom is able to keep the driver configured properly during the session. I have tried to change the settings of the tty.usbserial device using stty but the settings revert back instantly so of course the echo command will hang.

I found this script on the Interweb somewhere but it hangs as well.
#/bin/bash

{ stty speed 38400
echo "ATI0"
} < /dev/tty.usbserial > /dev/tty.usbserial


Any help would be greatly appreciated,
Thank you
Dallas
# 2  
Old 04-23-2009
usb serial

I wonder if you've tried using "screen". I use it with FTDI's chipset and Bluetooth devices quite a bit. As a terminal it works very well, and simply.
eg. screen /dev/tty.usbserial -9600
Geoffre
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Troubles running DB2 command in shell script via cron

Hi there, Now I'm facing error regarding running shell script via cron. The shell script which is required to get value from database. Below is the main part of shell script. #/bin/bash #connect to database(1) db2 connect to $database user xxxx using yyyy #set values from... (3 Replies)
Discussion started by: Rohan Kishibe
3 Replies

2. UNIX for Advanced & Expert Users

Troubles with OpenSSH

Hi, I am trying to login from one AIX server to another without using a password, a basic configuration, however it doesn't seem to work. All things are in place. I have both a public and private key in the ~/.ssh folder and also have an "authorized_keys" file on the target-server containing... (5 Replies)
Discussion started by: Hille
5 Replies

3. Shell Programming and Scripting

for loop troubles

What I have here is a pretty textbook recursive function. Its purpose right now is simply to display all folders that don't contain folders. It works fine in all instances I can think of... except one. If there is a folder with a space in its name, the thing goes Kablooie. AFAIK the problem comes... (5 Replies)
Discussion started by: divisionbyzero
5 Replies

4. Shell Programming and Scripting

Troubles with zip command

Hello, I have some troubles with script that creates a zip archive. First I added following command: zip -r /path/to/folder/packed_file.zip /another/path/folder_for_packing But there is a problem: how to zip the folder without adding full path inside the archive? 'folder_for_backing'... (3 Replies)
Discussion started by: assamalla
3 Replies

5. Ubuntu

Ubuntu 9.04 Serial application to telnet to serial device

Hello! I am working on an application which reads environmental instruments which have serial ports. The application requires a serial port to be present to talk to the device (i.e. /dev/ttyS0 ). In some instances the environmental devices will be 100's of yards away from the computer, so a... (5 Replies)
Discussion started by: mvona
5 Replies

6. Solaris

Anyone know how to get Serial number with 1 command?

Solaris8 Anyone help? (27 Replies)
Discussion started by: frustrated1
27 Replies

7. AIX

command to monitor the Serial port

Hi, Can anyone please tell me how to check the status of the serial port ?? for example,in Sun os we use the command pmadm to see the status of the serial port-- So is there any command or method in AIX,So that i can see the serial port status ?? thanks in advance ... (1 Reply)
Discussion started by: smartgupta
1 Replies

8. HP-UX

cron troubles

I have a cronjob that I need to run everyday and it needs to have todays date inputed, here is what I have, but is not working as expected.......... 23 02 * * * cd /path;./RequestSummaryReport.sh $(date +%Y-%m-%d) the output from mail gives me............. Date: Fri, 8 Feb 2008 02:12:07... (4 Replies)
Discussion started by: theninja
4 Replies

9. UNIX for Dummies Questions & Answers

Password Troubles

I'm very new to UNIX (I just started working with Terminal 2 days ago) and I don't know the system very well. I'm having trouble whenever I am asked for a password. I simply... can't type. I press keys on the keyboard but no characters appear on the screen. For example, when I log onto... (5 Replies)
Discussion started by: alexmiller
5 Replies

10. UNIX for Advanced & Expert Users

How to set baude rate of Serial port using setserial or other command

Hello, I am encountering problems when I use termios structure to set my baud rate of serial port. Pls give me a way by which I can set the same using a different command (1 Reply)
Discussion started by: zaheer031
1 Replies
Login or Register to Ask a Question