On Mon, 16 Apr 2018, MS wrote:

I will try it and let you know about the problems/results.

I am curious to see your tutorial at the end. :)


One more thing though, how do I know which USB port is which cuaXX?

Just plug the modem in a USB Port and see dmesg. You can also see
"man ucom".

It may happen that there appear many cuaUX. Try "cu -l" to each
and give the command "AT", the modem should answer with "OK".
If not, go out with "~." and try other.

By the way, you need from Provider:

(1) APN. You give it to the modem with AT+CGDCONT=1,"IP","APNofProvider"
(2) User and Pass. May be there are no auth, then there is nothing to
    do. Otherwise user in the options file, user and pass in the chap
    or pap secret files.
(3) Telefone Number. You give it to the modem with ATDT. At best in chat
    script.

The connect script may look like:

REPORT CONNECT
ABORT BUSY
ABORT 'NO CARRIER'
ABORT ERROR
ABORT 'NO DIALTONE'
ABORT 'NO ANSWER'
'' at
OK atz
OK 'atdt*99#'
CONNECT

And the disconnect script:

ABORT 'NO CARRIER'
ABORT ERROR
ABORT 'NO DIALTONE'
ABORT 'NO ANSWER'
'' '\K'
'' '+++ATH'

In any case read chat to see how they are constructed, perhaps
you should better add some "SAY" statements to the above scripts to
better follow what happens.

And of course, you can also see "/var/log/messages" when testing.

Rodrigo

Reply via email to