Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Gestione Cellulare da linea di comando
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) Forum di discussione italiano
View previous topic :: View next topic  
Author Message
pines
n00b
n00b


Joined: 19 Feb 2006
Posts: 24

PostPosted: Wed May 02, 2007 6:20 pm    Post subject: Gestione Cellulare da linea di comando Reply with quote

Ciao

ho tra le mani un modulo gsm telefonico wavecom, gestibile con i comandi AT tranquillamente.

L'ho provato con Minicom e funzia perfettamente, ma la mia mente contorta :lol: non gli sta bene.

Ho provato a fare un giro in rete ma non ho trovato, o saputo trovare uno script in bash o altro linguaggio che mi poteva gestire con i comandi at, quindi attendere la risposta del modem/telefono.

Ho provato a fare
Code:
echo "ATZ" > /dev/ttyS0

Me lo accetta ma non vedo la risposta del modulo.

Magari basta fare un redirect che scriva su un file la risposta del modulo. 8O

Grazie dell'aiuto
Back to top
View user's profile Send private message
drizztbsd
Retired Dev
Retired Dev


Joined: 21 Nov 2004
Posts: 278
Location: Cesano Maderno

PostPosted: Wed May 02, 2007 7:18 pm    Post subject: Re: Gestione Cellulare da linea di comando Reply with quote

pines wrote:
Ciao

ho tra le mani un modulo gsm telefonico wavecom, gestibile con i comandi AT tranquillamente.

L'ho provato con Minicom e funzia perfettamente, ma la mia mente contorta :lol: non gli sta bene.

Ho provato a fare un giro in rete ma non ho trovato, o saputo trovare uno script in bash o altro linguaggio che mi poteva gestire con i comandi at, quindi attendere la risposta del modem/telefono.

Ho provato a fare
Code:
echo "ATZ" > /dev/ttyS0

Me lo accetta ma non vedo la risposta del modulo.

Magari basta fare un redirect che scriva su un file la risposta del modulo. 8O

Grazie dell'aiuto


Se dopo
Code:
echo "ATZ" > /dev/ttyS0
metti
Code:
cat < /dev/ttyS0
lo legge?
_________________
Gentoo/Alt lead
Gentoo/*BSD and Gentoo/FreeBSD deputy lead
Paludis contributor
Back to top
View user's profile Send private message
pines
n00b
n00b


Joined: 19 Feb 2006
Posts: 24

PostPosted: Wed May 02, 2007 7:50 pm    Post subject: Reply with quote

Grazie per aver risposto.

Se prova a dare in successione
Code:
 echo "ATZ" > /dev/ttyS0
cat < /dev/ttyS0


mi rimane in attesa senza il prompt.

Da premettere che mi collego con il serverino in SSH.

Ho provato a chiamare il modulo con una telefonata e mi compare la scritta ring.
Sembra che il comando è giusto ma come faccio a monitorarlo sempre?
Back to top
View user's profile Send private message
masterbrian
Guru
Guru


Joined: 13 Feb 2004
Posts: 461

PostPosted: Thu May 03, 2007 7:29 am    Post subject: Reply with quote

Ciao,

Hai impostato la seriale prima di fare cat con setserial?
_________________
[img:f6b0c3bcba]http://www.danasoft.com/sig/MasterBrian.jpg[/img:f6b0c3bcba]
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 31470
Location: here

PostPosted: Thu May 03, 2007 7:38 am    Post subject: Reply with quote

pines wrote:
Sembra che il comando è giusto ma come faccio a monitorarlo sempre?

Ti crei un servizio che sta sempre in ascolto sulla seriale e ogni evento gli fai fare qualcosa (tipo scrivere qualcosa con xosd).
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
GabrieleB
Guru
Guru


Joined: 22 Jul 2003
Posts: 317

PostPosted: Thu May 03, 2007 7:44 am    Post subject: Reply with quote

prova a vedere se gnokii (non e' solo per telefono nokia) fa gia' al caso tuo senza diventare matto a scrivere script ...
Code:
app-mobilephone/gnokii
      Latest version available: 0.6.14-r2
      Latest version installed: [ Not Installed ]
      Size of files: 1,510 kB
      Homepage:      http://www.gnokii.org/
      Description:   user space driver and tools for use with mobile phones
      License:       GPL-2

_________________
Keyboard error. Press F1 to continue.
Back to top
View user's profile Send private message
randomaze
Bodhisattva
Bodhisattva


Joined: 21 Oct 2003
Posts: 9985

PostPosted: Thu May 03, 2007 8:20 am    Post subject: Reply with quote

Moved from Forum italiano (Italian) to Forum di discussione italiano.
_________________
Ciao da me!
Back to top
View user's profile Send private message
djinnZ
Advocate
Advocate


Joined: 02 Nov 2006
Posts: 4831
Location: somewhere in L.O.S.

PostPosted: Thu May 03, 2007 1:44 pm    Post subject: Reply with quote

come già discusso qui echo "..." > ttyS? e cat < ttyS? è un'eccezione che funzionino. Quando il device viene chiuso la linea viene sempre ripristinata. O usi un dialer o ti scrivi un programma apposito.
_________________
scita et risus abundant in ore stultorum sed etiam semper severi insani sunt:wink:
mala tempora currunt...mater stultorum semper pregna est :evil:
Murpy'sLaw:If anything can go wrong, it will - O'Toole's Corollary:Murphy was an optimist :wink:
Back to top
View user's profile Send private message
pines
n00b
n00b


Joined: 19 Feb 2006
Posts: 24

PostPosted: Thu May 03, 2007 8:54 pm    Post subject: Reply with quote

Grazie delle risposte.

@masterbrian no non la ho impostata , non so come si fa ad impostare :lol:

@GabrieleB gnokii sono andato sul sito, lo debbo provare.

@djinnZ il link è interessante debbo provare pyserial e com.c, anche se non sono tanto ferrato in py e c. :wink:

Provo tutto e vi terro aggiornati.


OT
e 3 giorni che l'adsl funzia di pomeriggio e la sera verso le 22 si blocca :twisted: telezzozz
/OT
Back to top
View user's profile Send private message
grentis
Guru
Guru


Joined: 20 Jul 2004
Posts: 321

PostPosted: Fri May 04, 2007 8:56 pm    Post subject: Reply with quote

fedeliallalinea wrote:
...


oooo chi si vede :D
Back to top
View user's profile Send private message
djinnZ
Advocate
Advocate


Joined: 02 Nov 2006
Posts: 4831
Location: somewhere in L.O.S.

PostPosted: Sat May 05, 2007 12:42 pm    Post subject: Reply with quote

pines wrote:
debbo provare pyserial e com.c, anche se non sono tanto ferrato in py e c.


Puoi anche pensare di usare un dialer te lo ripeto, l'unica cosa necessaria è che il device (file) resti aperto, prova anche
Code:
programma <ttyS? >ttyS?
usando printf.

Altrimenti se qualcuno più ferrato nell'hardware ha voglia di vedere come disabilitare il reset di una linea seriale...
_________________
scita et risus abundant in ore stultorum sed etiam semper severi insani sunt:wink:
mala tempora currunt...mater stultorum semper pregna est :evil:
Murpy'sLaw:If anything can go wrong, it will - O'Toole's Corollary:Murphy was an optimist :wink:
Back to top
View user's profile Send private message
pines
n00b
n00b


Joined: 19 Feb 2006
Posts: 24

PostPosted: Sun May 20, 2007 4:19 pm    Post subject: Reply with quote

Ho trovato questo Wiki in francese, utilizza lo stesso modulo che ho.
http://www.queret.net/wiki/index.php/Linux/How-to/WaveCom

Anche se è in francese è abbastanza intuitivo.

Ora provo i programmini in perl e vi fo sapere.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) Forum di discussione italiano All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum