AT commands and cygwin


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users AT commands and cygwin
# 1  
Old 08-13-2009
Error AT commands and cygwin

Hello!!!
I try to run this code in cygwin:

echo "AT">/dev/ttyS2
echo "AT+COPS=?">/dev/ttyS2
read $LINE</dev/ttyS2
echo $LINE

I want to communicate with serial port /dev/ttyS2 but I found some problems. I have tried to use the AT commands in Hyperterminal and it has worked...why doesn't work through shell bash???
Sorry for my bad english!!! Smilie
Byeeee
# 2  
Old 08-13-2009
Two things:
  • You probably have to set the baud rate and such first. It's not going to magically guess. See 'man stty'.
  • Open and close the file only when you want to open and close the modem. Smilie It may be sending hangup signals every time you close the file.
# 3  
Old 08-13-2009
What does 'ls -l /dev/' show? Because in my Cygwin installation, there is no /dev/ttyS*. Or any other device file for that matter. This is probably because /dev on a Linux system contains a virtual filesystem that acts as an arbiter to the kernel modules, and this functionality can't be emulated by Cygwin.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Running q-shell commands( on IBM-i Series) from cygwin terminal (on windows)

I have cygwin installed on windows server and when I do echo $SHELL the output is /bin/bash I have created a ssh tunnel from this windows server through cygwin to ibm -i series which is running Q-shell. I am trying to invoke a utility wsadmin (used for scripting) on ibm-i from the... (12 Replies)
Discussion started by: gaurav99
12 Replies

2. Shell Programming and Scripting

cygwin

Do clear command do not work in cygwin.. (4 Replies)
Discussion started by: parthmittal2007
4 Replies

3. Shell Programming and Scripting

opening new instance of cygwin from withing cygwin

I'm using cygwin on win7, What I would like to do is something like this: cygstart cygwin tail -f /foo/test.log | perl -pe 's/error/\e I know I can start a new instance using either of these: mintty -e ... cygstart tail ... But neither of those open in ANSI mode, so I can't do... (0 Replies)
Discussion started by: Validatorian
0 Replies

4. AIX

HACMP: difference between 'cl' commands and 'cli' commands

Hi all, I'm new in this forum. I'm looking for the difference between the HACMP commands with the prefix "cl" and "cli". The first type are under /usr/es/sbin/cluster/sbin directory and the second are under /usr/es/sbin/cluster/cspoc directory. I know that the first are called HACMP for AIX... (0 Replies)
Discussion started by: peppix
0 Replies

5. UNIX for Dummies Questions & Answers

cygwin

hi.... i want to set an alias to "ls -lart" permanently. i am using cygwin and in that .bashrc and .bash_profile files are readonly. so please tell me how i can do that? thanks (1 Reply)
Discussion started by: Usha Shastri
1 Replies

6. Shell Programming and Scripting

Can BASH execute commands on a remote server when the commands are embedded in shell

I want to log into a remote server transfer over a new config and then backup the existing config, replace with the new config. I am not sure if I can do this with BASH scripting. I have set up password less login by adding my public key to authorized_keys file, it works. I am a little... (1 Reply)
Discussion started by: bash_in_my_head
1 Replies

7. Programming

cygwin

hello ... i am new with cygwin ... and i want you to help me. ... First of all, i want to determine the steady state stream function in a 2-D duct using a square mesh by using the finite-difference methodology and i want to simulate it....and i read a lot of information at... (1 Reply)
Discussion started by: mostafamagdy
1 Replies

8. UNIX for Dummies Questions & Answers

Cygwin X

I have managed a successful install of Cygwin (after a few tries), and like any sensible person am ignoring the console in favour of the xconsole. I have this set up how I want - tcsh, all hot-keys (including ^z for suspend) and et cetera, but find it awfully slow. Are there any good... (7 Replies)
Discussion started by: fulgura
7 Replies

9. Programming

code that reads commands from the standard i/p and executes the commands

Hello all, i've written a small piece of code that will read commands from standard input and executes the commands. Its working fine and is execting the commands well. Accepting arguments too. e.g #mkdir <name of the directory> The problem is that its not letting me change the directory i.e... (4 Replies)
Discussion started by: Phrozen Smoke
4 Replies

10. Windows & DOS: Issues & Discussions

Basic Unix Commands for cygwin

Hi. I'm New user for this Forum.Presently i'm working with Cygwin I want to know the basic commands that will be used for Cygwin. Can anyone guide me on this regards Thanks & Regards Sanjay (0 Replies)
Discussion started by: sanjay.karthik
0 Replies
Login or Register to Ask a Question