hello, it seems that Mr Thanasis forget to add line break for CDMA modem,
the cdma modem can't be used because the separator of reading the message

At the function org.smslib.modem.modemGateway.readMessagesTEXT() cannot
decode the output of msgList that provided from
ATHandler_Wavecom_SunTraveller and ATHandler_Wavecom_SunTraveller, please
take a look for this

+CMGR: 0,"REC READ","4444",,"10/06/18,12:16:32",0,2,1,"4444",149esia PAKET
> GRATIS memberikan Anda Gratis 50 Menit Talktime ke sesama esia lokal setiap
> bulan, selama 6 bulan. Bonus anda akan mulai aktif bulan depan
> +CMGR: 1,"REC READ","9009",,"10/06/18,12:16:48",0,2,0,"9009",146Nikmati
> tarif terbaik SMS Esia,Rp 1/karakter ke SEMUA OPERATOR se-Indonesia.Gunakan
> selalu Esia untuk jalin komunikasi dgn rekan dan kerabat Anda.
> +CMGR: 2,"REC READ","9009",,"10/06/18,12:16:48",0,2,0,"9009",156Pelanggan
> Yth,Utk mengetahui sisa TalkTime Anda,kirim sms ke 555 ketik: TALKTIME.Utk
> top up,ketik: TOPUP<spasi>kode voucher yang tersembunyi di voucher Anda
> +CMGR: 3,"REC READ","555",,"10/06/18,12:13:35",0,2,1,"555",136Selamat
> datang di layanan Bakrie Telecom.Segera daftarkan data
> Anda,SMS:DAFTAR*NAMA*ALAMAT,ke 4444 atau telp ke 4444.Bila tdk mendaftar,
> +CMGR: 4,"REC READ","555",,"10/06/18,12:13:35",0,2,1,"555",76telp belum dpt
> digunakanSaldo Talktime : Rp. 10000.Masa aktif s/d: 18/07/10.
> +CMGR: 5,"REC READ","6060",,"10/06/18,12:16:48",0,2,0,"6060",82Nikmati
> layanan Esia Gogo jika Anda bepergian ke luar kota.Info lengkap hub *6060.OK
>


and this will make smslib to think there is only one message in the inbound
message.

my ugly solution is to patch at number 432 with adding "if
(tmpLine.startsWith("+CMGR")) break;"
i believe this is ugly solution of this, please suggest good and clean that
wont affected other modem.

the second patch was the "OK" at the end of message that collected by
msgList from class ATHandler_Wavecom_SunTraveller and
ATHandler_Wavecom_WISMOQCDMA, please remove line 112 at
ATHandler_Wavecom_WISMOQCDMA and line 111 from class
ATHandler_Wavecom_SunTraveller. This will clean OK at the end of msgList.

Thanks.
-- 
-----------------------------------------
Hendra Cengala
Keep Moving Forward

-- 
You received this message because you are subscribed to the Google Groups 
"SMSLib User Group" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/smslib?hl=en.

Reply via email to