| 1 |
*** 1. I get the error |
| 2 |
/usr/local/bin/gsmsmsd [ERROR]: cannot route status report message to TE |
| 3 |
|
| 4 |
Some phones/modems cannot route all kinds of SMS to the TE |
| 5 |
(computer). Please try |
| 6 |
|
| 7 |
gsmsmsd no_stat |
| 8 |
|
| 9 |
This is documented in the gsmsmsd manual page. |
| 10 |
|
| 11 |
|
| 12 |
*** 2. Siemens M20T expects an initial PIN. |
| 13 |
|
| 14 |
For the Siemens M20T an initial PIN must be send once (probably when |
| 15 |
it is switched on or the computer is powered on). This PIN is used for |
| 16 |
all subsequent invocations of gsmlib-based programs. The trick is to |
| 17 |
issue the following program (eg. in the rc-scripts of the operating system): |
| 18 |
|
| 19 |
gsmctl -I "+cpin=<MY PIN>" |
| 20 |
|
| 21 |
|
| 22 |
*** 3. Sending SMS with or retrieving SMS from my Ericsson SH888 does |
| 23 |
not work. |
| 24 |
|
| 25 |
Set the environment variable GSMLIB_SH888_FIX: |
| 26 |
|
| 27 |
export GSMLIB_SH888_FIX=1 (bash) |
| 28 |
setenv GSMLIB_SH888_FIX 1 (tcsh) |
| 29 |
|
| 30 |
If it works now, I need your model number. You could just enter |
| 31 |
"AT+CGMM" in a terminal program and send me the results. Alternatively |
| 32 |
set the environment variable GSMLIB_DEBUG=2 and me the dump. |
| 33 |
|
| 34 |
*** 4. I get the error "ME/TA error 'Unidentified subscriber' (code |
| 35 |
28)" when trying to send SMS using gsmsendsms or gsmsmsd. |
| 36 |
|
| 37 |
The SMS service centre address (SCA, the phone number of the centre that is |
| 38 |
accepting SMS for delivery) is not set correctly in your phone. There |
| 39 |
are three ways to correct this: |
| 40 |
|
| 41 |
1. set the default SCA (example is for Germany T-D1): |
| 42 |
|
| 43 |
gsmctl -o setsca "+491710760000" |
| 44 |
|
| 45 |
2. Use the menus of your phone to set the SMS SCA. |
| 46 |
|
| 47 |
3. Use the option "--sca 1234567" for the gsmsmsd, gsmsmsstore, and |
| 48 |
gsmsendsms programs. This tries to set the SCA in the SMS itself (does |
| 49 |
not change default SCA) and might not work with all phones. |
| 50 |
|
| 51 |
*** 5. gsmlib works unreliably with my phone. |
| 52 |
|
| 53 |
Try another baudrate, even higher baudrates sometimes work better then |
| 54 |
lower ones. |
| 55 |
|
| 56 |
*** 6. On Win32 accessing the COM device fails. |
| 57 |
|
| 58 |
Use COMx: (x is the number of the COM device) instead of the UNIX |
| 59 |
device name. If this doesn't work use "\\.\COMx:". |
| 60 |
|
| 61 |
*** 7. Windows 2000 Does Not Support Mapping Virtual COM Ports to |
| 62 |
Infrared Ports. |
| 63 |
|
| 64 |
Windows 2000 users should follow the instructions in |
| 65 |
support.microsoft.com article Q252795 in order to connect with their |
| 66 |
mobile. |
| 67 |
|
| 68 |
*** 8. gcc-compiled shared C++ libraries do not work properly on some |
| 69 |
commercial UNIX systems and with older version of gcc. |
| 70 |
|
| 71 |
The symptoms may be that the program dumps core on exceptions (AIX) or that |
| 72 |
global constructors are not called (Solaris). |
| 73 |
|
| 74 |
Try to compile gsmlib with |
| 75 |
|
| 76 |
./configure --disable-shared --enable-static |
| 77 |
|
| 78 |
if you encounter strange problems. |
| 79 |
|
| 80 |
*** 9. How to support unicode? |
| 81 |
|
| 82 |
You need 6 steps: |
| 83 |
|
| 84 |
1. set datacodingschema to DCS_SIXTEEN_BIT_ALPHABET |
| 85 |
|
| 86 |
2. set your locale correctly, for example, my locale, china. |
| 87 |
setlocale(LC_ALL, "chs"); |
| 88 |
|
| 89 |
3. translate MBCS(multiple byte character set) string to unicode string. |
| 90 |
wchar_t wstr[ 1000 ]; |
| 91 |
memset(wstr, 0, 2000); |
| 92 |
mbstowcs(wstr, data.c_str(), data.length()); |
| 93 |
|
| 94 |
4. get unicode string length. |
| 95 |
int wcs_len = wcslen(wstr); |
| 96 |
|
| 97 |
5. change unicode string to net order. |
| 98 |
for (int i = 0; i < wcs_len; i++) |
| 99 |
wstr[ i ] = htons(wstr[ i ]); |
| 100 |
|
| 101 |
6. put unicode string into pdu. |