|
|
SMS Server Tools 3 Community |
Welcome, Guest. The forum is currently read-only, but will open soon. |
Fri Mar 14, 2025 09:20 |
This topic is locked
Page: 1
Author |
Post |
|
#1 Tue Mar 09, 2010 23:30, 182 months ago.
|
Member
Registered: Aug 2009
Location: Mexico DF, Mexico
|
Operating system name and version: Debian Lenny kernel 2.6.26-2 Version of smsd: 3.1.5, Smsd installed from: sources Name and model of a modem / phone: Sony Ericcsson k610 and s500i Interface: USB
Dears if i put only one modem (GSM1) all are ok
If i put 2 modems, the system repeat the same message from GMS1 and GSM2. 1 of 2 modems cant receive, the sms stays in the phone modem.
look:
file: GSM1.Bfnibc
From: 525517709888 From_TOA: 91 international, ISDN/telephone From_SMSC: 525512235100 Sent: 10-03-09 17:16:10 Received: 10-03-09 17:18:45 Subject: GSM1 Modem: GSM1 IMSI: 334030090491343 Report: no Alphabet: ISO Length: 2
P2
file: GSM2.LEozfc
From: 525517709888 From_TOA: 91 international, ISDN/telephone From_SMSC: 525512235100 Sent: 10-03-09 17:16:10 Received: 10-03-09 17:18:45 Subject: GSM2 Modem: GSM2 IMSI: 334030090491343 Report: no Alphabet: ISO Length: 2
P2
Anyboby know why? Thank in advance.
file smsd.conf
devices = GSM1,GSM2 loglevel = 7 spool = /var/spool/sms/outgoing failed = /var/spool/sms/failed incoming = /var/spool/sms/incoming sent = /var/spool/sms/sent mypath = /usr/bin logfile = /var/log/smsd.log delaytime = 10 errorsleeptime = 10 blocktime = 3600
[GSM1] init= AT+CPMS="ME" device = /dev/ttyACM0 incoming = yes mode = new baudrate = 19200 cs_convert = yes report = no
[GSM2] init= AT+CPMS="ME" device = /dev/ttyACM1 incoming = yes mode = new baudrate = 19200 cs_convert = yes report = no
|
|
#2 Wed Mar 10, 2010 11:13, 182 months ago.
|
Administrator
Registered: May 2009
Location: Jyväskylä, Finland
|
This is something I have never seen before... Your setup looks correct. Probably your ports are pointing to the same device, which however should not be possible. You could verify this using a communication mode: Stop the smsd if it's running. Start it with smsd -C GSM1. Follow the instructions on screen. Type ATE1 (and Enter) until you can see OK and what you are typing. Get a product serial number: AT+CGSN. Store it. Stop with Ctrl-C and do the same with smsd -C GSM2. Serial numbers should be different. Are they? From the message files it can be seen that the time of receiving is exactly the same (within one second). This may be a coincidence, but in any case two modem processed cannot work correctly if they are using the same device. Are you probably using a "cloned" SIM card, which means that both modems have the same originating number when sending SMS? This may cause that both modems also receive the same SMS. I'm just wondering, because both SIM cards have the same IMSI (which is stored on a SIM card and 334... means Mexico). Quote 1 of 2 modems cant receive, the sms stays in the phone modem.
If your ttyACM0 and ttyACM1 are not pointing to the same device, can you show a piece of a log with loglevel = 7, containing this kind of issue?
|
|
#3 Wed Mar 10, 2010 11:24, 182 months ago.
|
Administrator
Registered: May 2009
Location: Jyväskylä, Finland
|
After thinking little bit more... Could it be possible that you are using your wvdialconf based detection and it gives the same port for both devices? P.S. Have you seen this topic: Autoconfigure GSM devices (cristian_rougier) ? There a member kyuleo is asking if you have used wvdialconf successfully and if you can help him.
|
|
#4 Wed Mar 10, 2010 14:06, 182 months ago.
|
Member
Registered: Aug 2009
Location: Mexico DF, Mexico
Topic owner
|
Hi, Keke! Thank you very much for your answer. you are in rigth way
How can i solve this? Thank in advance!!
Cristian
look:
blue2phone:~# smsd -C GSM1 Communicating with GSM1. ( Press Ctrl-C to abort. ) ( If you need to send Ctrl-Z, change the suspend character first, like stty susp \^N ) Default device is /dev/ttyACM0 Press Enter to start or type an another device name.
Opening device /dev/ttyACM0 Ready.
OK ATE1 OK AT+CGSN 356833016640546
OK
blue2phone:~# smsd -C GSM2 Communicating with GSM2. ( Press Ctrl-C to abort. ) ( If you need to send Ctrl-Z, change the suspend character first, like stty susp \^N ) Default device is /dev/ttyACM1 Press Enter to start or type an another device name.
Opening device /dev/ttyACM1 Ready.
OK ATE1 OK AT+CGSN 356833016640546
OK blue2phone:~#
|
|
#5 Wed Mar 10, 2010 14:17, 182 months ago.
|
Administrator
Registered: May 2009
Location: Jyväskylä, Finland
|
This was supposed to be impossible ...  You could disconnect both USB cables, and then connect the first modem. Wait about 10 seconds and look what dmesg says. Then connect the second modem and again, after 10 seconds see the output of dmesg. There should be two different devices assigned. What is the output from dmesg, and what says ls -ltr /dev/ttyACM* ?
|
|
#6 Wed Mar 10, 2010 14:56, 182 months ago.
|
Administrator
Registered: May 2009
Location: Jyväskylä, Finland
|
Actually, a kernel may provide more than one port for a device. After connecting the first device, check with ls what ports it got. Probably the port for second modem is /dev/ttyACM2 or ACM3.
|
|
#7 Wed Mar 10, 2010 15:12, 182 months ago.
|
Member
Registered: Aug 2009
Location: Mexico DF, Mexico
Topic owner
|
Thank you very much for your answer Look : [ 219.692327] usb 1-1: new full speed USB device using ohci_hcd and address 2 [ 224.893438] usb 1-1: device descriptor read/all, error -110 [ 225.068709] usb 1-1: new full speed USB device using ohci_hcd and address 3 [ 225.288678] usb 1-1: configuration #3 chosen from 1 choice [ 225.335640] usb 1-1: New USB device found, idVendor=0fce, idProduct=d046 [ 225.335666] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 225.335677] usb 1-1: Product: Sony Ericsson K610 [ 225.335685] usb 1-1: Manufacturer: Sony Ericsson [ 225.335693] usb 1-1: SerialNumber: 3517100196671290 [ 226.947251] cdc_acm 1-1:3.1: ttyACM0: USB ACM device [ 226.957730] cdc_acm 1-1:3.3: ttyACM1: USB ACM device [ 226.969113] usbcore: registered new interface driver cdc_acm [ 226.969140] cdc_acm: v0.26:USB Abstract Control Model driver for USB modems and ISDN adapters [ 227.120338] usb0: register 'cdc_ether' at usb-0000:00:01.2-1, CDC Ethernet Device, 02:80:37:0a:03:00 [ 227.120462] usbcore: registered new interface driver cdc_ether [ 375.757223] usb 1-2: new full speed USB device using ohci_hcd and address 4 [ 375.990474] usb 1-2: configuration #3 chosen from 1 choice [ 376.010298] cdc_acm 1-2:3.1: ttyACM2: USB ACM device [ 376.027913] cdc_acm 1-2:3.3: ttyACM3: USB ACM device [ 376.060756] usb1: register 'cdc_ether' at usb-0000:00:01.2-2, CDC Ethernet Device, 02:80:37:0c:03:00 [ 376.069957] usb 1-2: New USB device found, idVendor=0fce, idProduct=d088 [ 376.069983] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 376.069993] usb 1-2: Product: Sony Ericsson S500 [ 376.070001] usb 1-2: Manufacturer: Sony Ericsson [ 376.070009] usb 1-2: SerialNumber: 3568330166405460 And: blue2phone:~# ls -ltr /dev/ttyACM* crw-rw---- 1 root dialout 166, 0 mar 10 09:05 /dev/ttyACM0 crw-rw---- 1 root dialout 166, 1 mar 10 09:05 /dev/ttyACM1 crw-rw---- 1 root dialout 166, 2 mar 10 09:07 /dev/ttyACM2 crw-rw---- 1 root dialout 166, 3 mar 10 09:07 /dev/ttyACM3 blue2phone:~# And the final entire dmesg Thank in advance Cristian « Last edit by keke on Wed Mar 10, 2010 15:47, 182 months ago. »
|
|
#8 Wed Mar 10, 2010 15:52, 182 months ago.
|
Administrator
Registered: May 2009
Location: Jyväskylä, Finland
|
Both serial numbers are different than what is was using CGSN command.
However, GSM1 should work with /dev/ttyACM0 and GSM2 with /dev/ttyACM2 (or vice versa). Have you verified this?
|
|
#9 Wed Mar 10, 2010 19:15, 182 months ago.
|
Member
Registered: Aug 2009
Location: Mexico DF, Mexico
Topic owner
|
Thank you for your answer, yes this are working now,
Thank you for your effort. Solved
|
|
#10 Wed Mar 10, 2010 19:22, 182 months ago.
|
Administrator
Registered: May 2009
Location: Jyväskylä, Finland
|
Thanks. How about this, have you checked it: keke wrote P.S. Have you seen this topic: Autoconfigure GSM devices (cristian_rougier) ? There a member kyuleo is asking if you have used wvdialconf successfully and if you can help him.
Do yo think that you have a script (for one modem usage) which can help kyuleo or other users?
|
This topic is locked
Page: 1
Time in this board is UTC.
|
|
|
 |
|
 |
|