NetXMS Support Forum

English Support => General Support => Topic started by: praim on January 25, 2016, 09:43:30 PM

Title: SMS error
Post by: praim on January 25, 2016, 09:43:30 PM
Hello i have netxms 2.0.1 on debian 8.2 jessie x64. I have problem with config USB modem. I have huawei K3765 on /dev/ttyUSB2
But i cannot send SMS. In log (debiglevel = 5) only see

SMS: send to {+420xxxxxxxxx}: {test}
[25-Jan-2016 20:33:31.663] [DEBUG] SMS: ReadToOK: readToMark returned -1
[25-Jan-2016 20:33:33.766] [DEBUG] SMS: ReadToOK: readToMark returned -1
[25-Jan-2016 20:33:33.766] [DEBUG] Failed to send SMS (will retry)
[25-Jan-2016 20:33:33.766] [DEBUG] SMS: send to {+420xxxxxxxxx}: {test}
[25-Jan-2016 20:33:36.388] [DEBUG] SMS: ReadToOK: readToMark returned -1
[25-Jan-2016 20:33:38.491] [DEBUG] SMS: ReadToOK: readToMark returned -1
[25-Jan-2016 20:33:38.491] [DEBUG] Failed to send SMS (will not retry)
[25-Jan-2016 20:33:38.491] [DEBUG] Failed to send SMS (complete failure)
[25-Jan-2016 20:33:38.491] [DEBUG] EVENT SYS_SMS_FAILURE [30] (ID:30 F:0x0001 S:1 TAG:"") FROM : Unable to send SMS to phone +420xxxxxxxxx


SMSDriver = /usr/lib/x86_64-linux-gnu/libnxsms_generic.so
SMSDrvConf = /dev/ttyUSB2,9600,8,N,1,T

In the previous version (i think it was 1.2.x) i didnt have problem with this configuration. Thanks for your help
Title: Re: SMS error
Post by: Victor Kirhenshtein on January 25, 2016, 10:01:39 PM
Hi,

do you remember what exact version you were using before? From the log it seems that driver cannot receive anything from serial port, and there were no changes in driver code since 1.2.12.

Best regards,
Victor
Title: Re: SMS error
Post by: praim on January 25, 2016, 11:16:57 PM
It was version 1.2.17.
Title: Re: SMS error
Post by: praim on February 02, 2016, 11:13:35 PM
UP
Title: Re: SMS error
Post by: Alex Kirhenshtein on February 09, 2016, 09:57:36 AM
Verify it with screen (or minicom, etc.):

screen /dev/ttyUSB2 9600

Type "AT" and press Enter – you should get "OK".

(close screen – press Ctrl-A, then "K")
Title: Re: SMS error
Post by: praim on February 27, 2016, 03:12:07 PM
i try minicom and it wrote me OK