|
|||||||
|
|
|
![]() |
|
|
Strumenti |
|
|
#1 |
|
Member
Iscritto dal: May 2004
Città: Torino
Messaggi: 184
|
GAMMU e Siemens TC35i
Salve a tutti... ho un modem Siemens TC35i e volevo provare ad inviare SMS.
Ho provato cun un software chiamato SMS SERVER ma riesco solo a ricevere e non inviare. Gira e leggi ho trovato GAMMU che dicono sia fenomenale perchè fa di tutto... anche foto in remoto e cose simili.. io vorrei solo mandare SMS! So che uno dei difetti del mio modem è che può mandare solo SMS in formato ASCII (almeno a queste conclusioni ero arrivato con colui che ha creato SMS SERVER) Mi sa che GAMMU non manda di default gli SMS in ASCII ma in PDU mode perchè ci sono strani segni dove mi dice send sms > Vi posto il log con la prova di invio... Codice:
[Gammu - 1.26.1 built 21:46:06 Nov 24 2009 using GCC 4.4]
[Connection - "at9600"]
[Connection index - 0]
[Model type - "at"]
[Device - "/dev/ttyS0"]
[Runing on - Linux, kernel 2.6.32-22-generic (#33-Ubuntu SMP Wed Apr 28 13:28:05 UTC 2010)]
[Module - "A2D|iPAQ|at|M20|S25|MC35|TC35|C35i|S65|S300|5110|5130|5190|5210|6110|6130|6150|6190|6210|6250|6310|6310i|6510|7110|8210|8250|8290|8310|8390|8850|8855|8890|8910|9110|9210"]
Locking device
Serial device: DTR is up, RTS is up, CAR is down, CTS is up
Setting speed to 9600
Escaping SMS mode
Sending simple AT command to wake up some devices
1 "AT"
2 "OK"
Enabling echo
1 "ATE1"
2 "OK"
Trying Motorola mode switch
1 "AT+MODE=2"
2 "ERROR"
Seems not to be supported
Enabling CME errors
1 "AT+CMEE=1"
2 "OK"
1 "AT+CSCS?"
2 "+CSCS: "GSM""
3 "OK"
1 "AT+CGMI"
2 "SIEMENS"
3 "OK"
Manufacturer info received
[Manufacturer: Siemens]
1 "AT+CSCS=?"
2 "+CSCS: ("GSM","UCS2")"
3 "OK"
Chosen GSM as normal charset
Chosen UCS2 as unicode charset
Getting model
1 "AT+CGMM"
2 "TC35i"
3 "OK"
Unknown model, but it should still work
[Model name: `TC35i']
[Model data: `']
[Model data: `unknown']
Checking for OBEX support
1 "AT+CPROT=?"
2 "ERROR"
1 "AT^SQWE?"
2 "^SQWE: 0"
3 "OK"
Parsing ^SQWE: 0 with ^SQWE: @i
Parsed int 0
Phone seems to support Siemens like mode switching, adding OBEX feature.
Getting firmware versions
1 "AT+CGMR"
2 "REVISION 02.07"
3 "OK"
Received firmware version: "REVISION 02.07"
Number version is "2,070000"
[Connected]
Checking used
UDH len 0, UsedBytes 0, FreeText 160, UsedText 0, FreeBytes 140
Adding text
copy 160
copy 5
def length 5 5
Text added
Checking on the end
UDH len 0, UsedBytes 5, FreeText 155, UsedText 5, FreeBytes 135
5 5
Entering GSM_GetSMSC
Getting SMSC
1 "AT+CSCA?"
2 "+CSCA: "+393772602468",145"
3 "OK"
SMSC info received
Parsing +CSCA: "+393772602468",145 with +CSCA: @p, @i
Grabbed string from reply: "+393772602468" (parsed 15 bytes)
Parsed phone string "+393772602468"
Phone string decoded as "+393772602468"
Parsed int 145
Leaving GSM_GetSMSC
Entering GSM_SendSMS
Trying SMS PDU mode
1 "AT+CMGF=0"
2 "OK"
SMS Submit
Recipient number "3287885527"
SMSC number "+393772602468"
SMS class -1
SMS validity ff
TPMR: 00 0
7 bit SMS, length 5, 5
prova
Waiting for modem prompt
1 "AT+CMGS=18"
2 "> "
Sending SMS
Leaving GSM_SendSMS
1 "AT+CMGS=18"
2 "> 079193732706428611000A8123788855720000FF0570F9DB1E06"
3 "ERROR"
Sent SMS on device: "/dev/ttyS0"
[Terminating]
[Closing]
Codice:
[gammu] port=/dev/ttyS0 connection=at9600 name=gammu model=at logfile = gammulog logformat = errors use_locking = yes gammuloc = locfile startinfo = yes gammucoding = UTF8 AIUTOOOOOOOOOO Grazie Rino
__________________
La fantasía, abandonada de la razón, produce monstruos imposibles; unida con ella es madre de las artes y origen de las maravillas. Francisco Goya http://www.akkattp.com |
|
|
|
|
|
#2 |
|
Member
Iscritto dal: May 2004
Città: Torino
Messaggi: 184
|
Ho trovato il comando AT che è sbagliato (dal log) ma non so come modificarlo...
Ad un certo punto c'è Codice:
Trying SMS PDU mode 1 "AT+CMGF=0" 2 "OK" Grazie
__________________
La fantasía, abandonada de la razón, produce monstruos imposibles; unida con ella es madre de las artes y origen de las maravillas. Francisco Goya http://www.akkattp.com |
|
|
|
|
| Strumenti | |
|
|
Tutti gli orari sono GMT +1. Ora sono le: 23:16.



















