Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Flatly)
  • No Skin
Collapse
Brand Logo

NetXMS Forum

  1. Home
  2. Support
  3. SMS config

SMS config

Scheduled Pinned Locked Moved Support
14 Posts 2 Posters 100.5k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P
    P
    praim
    wrote on last edited by
    #1

    Hello at first, sorry for my english language.
    I have proxmox server and on that I have debian wheezy with netxms stable (1.2.17) but i can't send sms. I set up huawei modem (huawei k3765) on debian with no problem. My setting in netxms
    SMSdriver = generis.sms restart = yes
    SMSDrvConf = /dev/ttyUSB2 restart = yes

    When I sent sms, it show me that SMS has been send but into my phone doesn't receive it.
    Thank you for help

    1 Reply Last reply
    0
    • A
      A
      Alex Kirhenshtein
      wrote on last edited by
      #2
      1. verify driver name, it should be "generic.sms"
      2. Check driver configration:SMSDrvConfig=/dev/ttyUSB2,9600,8,N,1,T

      Fields in SMSDrvConfig are:
      1 - device name
      2 - speed
      3 - data bits
      4 - parity: n/o/e (none/odd/even)
      5 - stop bits: 1/2
      6 - sending mode, T / P (text / PDU. Some modems support only text, some works only with PDU. Unicode can be send only in PDU mode)

      1. Increase debug level of the server to 5 and look for "SMS: " in the log.
      1 Reply Last reply
      0
      • P
        P
        praim
        wrote on last edited by
        #3

        Thank you for answer 😉 Now i look into log file and i see:"unable to load module "generic.sms" : generic.sms: cannot open shared object file: no such file or directory

        And how can i change debug level? I find, that i have to write into netxmsd.conf DebugLevel = 5 but in  the log, i can't se anything with sms.

        1 Reply Last reply
        0
        • A
          A
          Alex Kirhenshtein
          wrote on last edited by
          #4

          Driver was not loaded, hence no debug messages.

          Try to set SMSDriver to full file name with path, then restart server.
          Sample setup:

          AirAlk:core(develop) $ find /opt/netxms -name \*generic\*
          /opt/netxms/lib/libnxsms_generic.1.dylib
          /opt/netxms/lib/libnxsms_generic.2.dylib
          /opt/netxms/lib/libnxsms_generic.dylib
          AirAlk:core(develop) $ ls -al /opt/netxms/lib/libnxsms_generic.dylib
          lrwxr-xr-x  1 alk  wheel  24 Jul 26 12:14 /opt/netxms/lib/libnxsms_generic.dylib -> libnxsms_generic.2.dylib
          AirAlk:core(develop) $ nxdbmgr get SMSDriver
          NetXMS Database Manager Version 2.0-RC1 Build 8032
          
          /opt/netxms/lib/libnxsms_generic.dylib
          

          P.S. You can also change debug level in runtime. Go to Tools -> Server Console and type "debug X", where "X" is desired debug level.

          1 Reply Last reply
          0
          • P
            P
            praim
            wrote on last edited by
            #5

            /opt/netxms doesn't exist. But when I try to find in root director, can't find somenthing like "libnxsms_generic"

            1 Reply Last reply
            0
            • A
              A
              Alex Kirhenshtein
              wrote on last edited by
              #6

              /opt/netxms is just an example from my system.
              Try find / -name libnxsms_generic\*

              1 Reply Last reply
              0
              • P
                P
                praim
                wrote on last edited by
                #7

                Thank you, so i find /usr/lib/libnxsms_generic.so when I take this in SMSDriver, I can see in the log "failed to open port" Is it problem with /dev/ttyUSB2?

                Thank you

                1 Reply Last reply
                0
                • A
                  A
                  Alex Kirhenshtein
                  wrote on last edited by
                  #8

                  Yes, server can't open /dev/ttyUSB2 for some reason.

                  You can check port using "screen" command (if you have it installed):screen /dev/ttyUSB2 9600
                  Press enter couple of times, try to enter "AT" and press enter – you should get reply from modem.

                  1 Reply Last reply
                  0
                  • P
                    P
                    praim
                    wrote on last edited by
                    #9

                    Ok here is screen command


                    screen.PNG

                    1 Reply Last reply
                    0
                    • A
                      A
                      Alex Kirhenshtein
                      wrote on last edited by
                      #10

                      I'm pretty much sure that you use wrong port. Most USB modems provide multiple ports – one for communications, one for diagnostic messages, and one or two for other purposes. Looks like you are using diagnostic port. Try other /dev/ttyUSB* ports with screen – it should respond to "ATI" command with modem information (vendor, model, etc.)

                      1 Reply Last reply
                      0
                      • P
                        P
                        praim
                        wrote on last edited by
                        #11

                        yes, this modem have 3 ports. But now i start server and use ttyUSB2 and sms was send. I don't now how, but problem is solved :). Thank you very much for your help. And when i post in "screen" command "ATI" it show me model, imei etc.

                        So thank you.

                        1 Reply Last reply
                        0
                        • P
                          P
                          praim
                          wrote on last edited by
                          #12

                          so error again, but in log is:" ReadToOK: read to mark returned -1"

                          1 Reply Last reply
                          0
                          • A
                            A
                            Alex Kirhenshtein
                            wrote on last edited by
                            #13

                            That's not an error, just diagnostics. Try to send one more message to verify that it works.

                            1 Reply Last reply
                            0
                            • P
                              P
                              praim
                              wrote on last edited by
                              #14

                              it sent only one sms. When i try to send next, in log is


                              sms.PNG

                              1 Reply Last reply
                              0

                              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                              With your input, this post could be even better 💗

                              Register Login
                              Reply
                              • Reply as topic
                              Log in to reply
                              • Oldest to Newest
                              • Newest to Oldest
                              • Most Votes


                              • Login

                              • Don't have an account? Register

                              • Login or register to search.
                              Powered by NodeBB Contributors
                              • First post
                                Last post
                              0
                              • Categories
                              • Recent
                              • Tags
                              • Popular
                              • Users
                              • Groups