09-17-2009
Using puTTy it works but my aim was to automate the process.
So I try:
# Open ttyS2 for reading and writing as FD 5
exec 5<>/dev/ttyS2
# Leave this running in the background
cat <&5 &
# Write a command to FD 5
echo "AT" >&5
and I think that it's a good idea!! But now, there is another problem: when I try to send an SMS through At commands I have to communicate the control character [ctrl+z] ^Z to serial port...and I have some troubles to do this.
echo "\032">&5
echo "^Z" >&5
They don't work probably because I had to set up some features with stty but when I try:
stty -F /dev/ttyS2 isig
I face with this error:
stty: /dev/ttyS3: unable to perform all requested operations
Any idea to send control char??
Thank you!!!
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I'm trying to unmount a file system, but umount says the device is busy. A fuser -c /myfs tells me that nothing on this fs is in use. Any idea?
Oh, and btw, why isn't my signature beeing displayed? Show user's signature is enabled and I have entered one :/ (10 Replies)
Discussion started by: sTorm
10 Replies
2. HP-UX
Anyone have any idea why I cannot umount a directory even though fuser shows no process attached to it?
fuser -cu /data/oracle/GMPSHRDM/export
/data/oracle/GMPSHRDM/export:
umount /data/oracle/GMPSHRDM/export
umount: cannot unmount /data/oracle/GMPSHRDM/export : Device busy
umount:... (2 Replies)
Discussion started by: keelba
2 Replies
3. UNIX for Dummies Questions & Answers
Hi,
I'm trying to do a sharity mount to mount a terastation network drive.
I'm getting a Device or resource busy message after my mount command. Please see output below...
# /usr/local/sharity3/bin/sharity mount smb://labbackup01/bakup_data /mnt/labbackup01
Device or resource busy.... (2 Replies)
Discussion started by: orahi001
2 Replies
4. UNIX Desktop Questions & Answers
Ciao a tutti!!!
il mio problema è questo: sto cercando di inviare dei comandi AT da PC a cellulare utilizzando il bluetooth e cygwin e vorrei visualizzare le risposte nella shell bash. Per farlo apro due terminali utilizzando le seguente istruzioni:
xterm &
Sul primo scrivo
cat /dev/ttyS2
... (0 Replies)
Discussion started by: blianna
0 Replies
5. UNIX and Linux Applications
Ciao a tutti!!!
il mio problema è questo: sto cercando di inviare dei comandi AT da PC a cellulare utilizzando il bluetooth e cygwin e vorrei visualizzare le risposte nella shell bash. Per farlo apro due terminali utilizzando le seguente istruzioni:
xterm &
Sul primo scrivo
cat /dev/ttyS2
... (1 Reply)
Discussion started by: blianna
1 Replies
6. Hardware
hello to everybody
I have Ubuntu Lucid 10.04 installed on my Desktop and I have a PCI serial card in my computer and it has only one serial port.
Actually I want to use this serial port for the serial communication and for that I executed this command :
$ setserial -g /dev/ttyS
and I... (0 Replies)
Discussion started by: piyush011
0 Replies
7. UNIX for Dummies Questions & Answers
Hi Everyone,
I am trying to remove a directory:
$ rm -rf directory_name/
rm: cannot remove `directory_name/filename': Device or resource busy
What does this mean, and why can't I remove these files? I already tried moving into the directory, and removing the files individually, but I... (7 Replies)
Discussion started by: Anna_Z
7 Replies
8. UNIX for Advanced & Expert Users
Is there a trick to mounting swap in n a lvm? I can't get it to work.
# swapon -va
swapon on /dev/mapper/VG-lv_swap
swapon: /dev/mapper/VG-lv_swap: found swap signature: version 1, page-size 4, same byte order
swapon: /dev/mapper/VG-lv_swap: pagesize=4096, swapsize=4294967296,... (1 Reply)
Discussion started by: cokedude
1 Replies
9. SCO
Hi there
After making a backup copy of it sometimes happens that when I want to unmount an NFS indicates the error:umount: /path_mount busy: Device busy (Error 16)
if I run lsoff, I can not find the process that is blocking the application.
I'm using OpenServer 5.0.2c as one NFS server ... (14 Replies)
Discussion started by: flako
14 Replies
10. HP-UX
Hi,
Unable to make tape backup, please help.
/opt/ignite/bin/make_tape_recovery -a /dev/rmt/?mn -I -v -m tar -x inc_entire=vg00
* Creating local directories for configuration files and archive.
======= 04/25/16 16:28:08 IST Started /opt/ignite/bin/make_tape_recovery.
(Mon... (4 Replies)
Discussion started by: anuragr
4 Replies
UFOMA(4) BSD Kernel Interfaces Manual UFOMA(4)
NAME
ufoma -- USB mobile phone support
SYNOPSIS
To compile this driver into the kernel, place the following lines in your kernel configuration file:
device ufoma
device ucom
Alternatively, to load the driver as a module at boot time, place the following line in loader.conf(5):
ufoma_load="YES"
DESCRIPTION
The ufoma driver provides support for USB mobile phone terminals in the subset of the Mobile Computing Promotion Consortium USB Implementa-
tion Guideline, which is adopted by FOMA, the NTT DoCoMo 3G system, terminal. These are partly like CDC ACM model based modems, which are
supported by umodem(4), but the ufoma driver recognizes a specific USB descriptor that describes its role and interface structure, and it
will negotiate its role when the device is open. They support a regular AT command set and the commands can either be multiplexed with the
data stream or handled through separate pipes. In the latter case the AT commands have to be given on a device separate from the data
device.
The device is accessed through the ucom(4) driver which makes it behave like a tty(4).
SYSCTLS
These devices often have a few interface sets and these interfaces have their role, sometimes multiplexed. These roles are identified with
the following sysctl MIBs:
dev.ucom.%d.supportmode
The modes which are supported by the interface.
dev.ucom.%d.currentmode
Current mode of the interface.
dev.ucom.%d.openmode
Mode to transit when the device is open next.
The modes are as follows:
modem Accepts AT commands and go and pass packet communication data.
handsfree
Accepts AT commands but it does not pass data.
obex Accepts OBEX frame which is used to exchange telephone book, etc.
vendor1, vendor2
Vendor specific data may be passed.
deactivated
When an interface is recognized by the system but not used, the interface will be set to this mode.
unlinked
When an interface is not yet negotiated, the interface is in this mode.
HARDWARE
Devices supported by the ufoma driver include:
o SHARP FOMA SH902i
o KYOCERA PHS AH-K3001V (a.k.a Kyopon)
o SANYO Vodafone3G V801SA
SEE ALSO
Specification can be found at:
http://www.nttdocomo.co.jp/corporate/technology/document/foma/index.html
http://www.mcpc-jp.org/doclist.htm
tty(4), ucom(4), umodem(4), usb(4)
HISTORY
The ufoma driver appeared in FreeBSD 7.0, partly derived from the umodem(4) code.
BUGS
Interfaces with multiplexed commands and data and interfaces with commands only are supported.
BSD
November 22, 2006 BSD