Keywords: Mode: All keywords (AND) |
Mon Feb 25, 2019 08:58
|
simark1979: Thank you!
That`s what I need.
Sorry for disturbance
|
Sun Feb 24, 2019 19:15
|
simark1979: Hello,
There is the big problem with serial port modems.
Because of only one program can occupy the serial port.
For example, I need sms server running while my GUI need additional info about sim/net/operator/signal and other information.
So there is no any decision eccept of running multiplexing (if kernel&modem allow this feature).
I think will be good idea to add some tcp server inside of you smstools, wich can be used for comunication with modem.
The other (maybe simple) way: add to your config at commands wich your smstool will send every X seconds and cache the replies.
Atfer this, cached replies can be provided to any clients.
Thank you!
|
Thu May 04, 2017 05:05
|
simark1979: My idea is to make some global setting wich will restart modem process every X minutes
In my case for some strange reason after some time modem still reply it's process, but incoming sms stops handling.
So now I have cronjob wich restarts smsServer ones a day.
This guarantee me that device will restore it's functionality if fail
It really helps
Or maybe you could offer another approach?
|
Thu May 04, 2017 04:46
|
simark1979: Thank you too :)
This is great feature in my case
So will try in the evening
Thank you again, Keke
|
Sat Apr 29, 2017 14:23
|
simark1979: Operating system name and version: linux embdeded 3.10.17
Version of smsd: 3.1.20
Smsd installed from: sources
Name and model of a modem / phone: modem bgs2
Interface: serial
Hello,
My question is:
Sometime people insert sim card after device already started
in this case modem process terminated by main process:
2017-04-29 17:07:36,2, bgs2r2: PIN handling: expected READY or OK, modem answered +CME ERROR: 10 (SIM not inserted), SIM not inserted
2017-04-29 17:07:36,2, bgs2r2: Modem handler 0 terminated abnormally. PID: 6246, was started 17-04-29 17:07:36, up 0 min.
2017-04-29 17:07:37,2, smsd: Modem handler 0 (bgs2r2) terminated while mainprocess is still running. Exited, status 1.
And if card inserted on a fly, sms server doesn`t work
So, is possible to make modem process waiting sim card while started?
Now I use alarm_hundler to restart smsd after 30sec, but I dont like this approach (what if sim card never inserted....)
|
Fri Apr 28, 2017 17:42
|
simark1979: It seems to me bug fixed
If any news, will inform!
Thank you!
|
Fri Apr 28, 2017 08:41
|
simark1979: It still working buggy, but I can`t understand the difference....
Also it seems to that replies to uusd come back later.....but not sure.....
So let me send to you the full log file and log DB table whith records
Please send to my email letter, will include files in reply.....
It`s to big to post here.....
|
Thu Apr 27, 2017 20:30
|
simark1979: My version is 3.1.20 las one....
When 3.1.21 will be released?
Thank you for quick reply)
|
Thu Apr 27, 2017 17:24
|
simark1979: 2017-04-27 20:19:54,7, bgs2r2: -> AT+CUSD=1,"*100#"
2017-04-27 20:19:54,7, bgs2r2: Command is sent, waiting for the answer. (15)
2017-04-27 20:19:57,7, bgs2r2: <- OK +CUSD: 2,"04110430043B0430043D0441003A003100330036002C003900370440002C041B0438043C04380442003A00
2017-04-27 20:19:57,3, bgs2r2: Unexpected input: 30002C0030003104400020",72
2017-04-27 20:19:57,7, bgs2r2: -> AT+CSCS?
2017-04-27 20:19:57,7, bgs2r2: Command is sent, waiting for the answer. (5)
2017-04-27 20:19:57,7, bgs2r2: <- +CSCS: "GSM" OK
2017-04-27 20:19:57,7, bgs2r2: Running eventhandler: /usr/bin/smsd_ussdHandler USSD /tmp/smsd.6kOHm0 bgs2r2 GSM "AT+CUSD=1,\"*100#\""
2017-04-27 20:19:57,7, bgs2r2: Done: eventhandler, execution time 0 sec., status: 0 (0)
2017-04-27 20:19:57,5, bgs2r2: CMD: AT+CUSD=1,"*100#": OK +CUSD: 2,"04110430043B0430043D0441003A003100330036002C003900370440002C041B0438043C04380442003A00
2017-04-27 20:19:57,6, bgs2r2: Checking device for incoming SMS
2017-04-27 20:19:57,6, bgs2r2: Checking if modem is ready
2017-04-27 20:19:57,7, bgs2r2: -> AT
........................................................
........................................................
|
Thu Apr 27, 2017 09:17
|
simark1979: This is result with ussd_convert = 1
Sometimes instead decoded tex I can see numeric tail.....
/tmp/smsd.Hq905g: OK +CUSD: 2,"БаланÑ:76,37Ñ€,Лимит:0,01Ñ€ "
/tmp/smsd.eX5K1R: OK +CUSD: 2,"БаланÑ:76,37Ñ€,Лимит:0,01Ñ€ "
/tmp/smsd.nObNdC: OK +CUSD: 2,"БаланÑ:76,37Ñ€,Лимит:0,01Ñ€ "
/tmp/smsd.aj21Qo: OK +CUSD: 2,"БаланÑ:76,37Ñ€,Лимит:0,01Ñ€ "
/tmp/smsd.3h2pmh: OK +CUSD: 2,"БаланÑ:76,37Ñ€,Лимит:0,01Ñ€ "
/tmp/smsd.Jh8RYu: OK +CUSD: 2,"БаланÑ:76,37Ñ€,Лимит:0,01Ñ€ "
/tmp/smsd.Bk3yMr: OK +CUSD: 2,"0421043F0430044104380431043E0020043704300020043E04310440043004490435043D0438043500210020041C044B0020043D0430043F0440043004320438043C0020043E04420432043504420020043D04300020041204300448
/tmp/smsd.iWXdsE: OK +CUSD: 2,"0421043F0430044104380431043E0020043704300020043E04310440043004490435043D04380435002100
/tmp/smsd.uPs3uI: OK +CUSD: 2,"0421043F0430044104380431043E0020043704300020043E04310440043004490435043D0438043500210020041C044B0020043D0430043F0440043004320438043C0020043E04420432043504420020043D04300020041204300448
/tmp/smsd.1V9YNv: OK +CUSD: 2,"0421043F0430044104380431043E0020043704300020043E04310440043004490435043D04380435002100
|
Sat Sep 15, 2012 05:20
|
simark1979: SOLVED
To get replies from modem even no Network, cancel network check in smsd.conf file (use check_network=2 or check_network=0)
|
Mon May 21, 2012 11:33
|
simark1979: Linux Embedded:
Version of smsd: 3.1.14.:
Smsd installed from: sources
mc52i cinterion:
Interface: serial
Hello,
I`m making GUI wich has "net operator name", "signal antenna", sim-card detection
Does anybody what approach to use to get that info every second, for instance?
I tryied to use "regular_run_cmdfile", but the problem that it work while modem registred in network. If modem not registered, no any reply to AT-commands appears, so I can`t exactly understand what`s happening.
|