PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio â†’ WINDEV 2024 â†’ sms  send use USB Doungle
sms send use USB Doungle
Iniciado por guest, 25,sep. 2015 10:39 - 24 respuestas
Publicado el 25,septiembre 2015 - 10:39
how to send text message in windev use USB Dougle
Publicado el 25,septiembre 2015 - 11:19
Hello Vijay

First, you need to use the functions Hello() and ThankYou()

Then you need to explain your question in details. My crystal ball is broken and my crystal ball seller is out of stock

Best regards
Publicado el 25,septiembre 2015 - 11:30
i am try to send sms in mobile

the send sms in windev17 create application to write a code for connect usb doungle and in usb doungle insert sim card to send sms

like that way2sms, type application but desktop app. and use usb doungle(sim card inserteble)
Publicado el 25,septiembre 2015 - 11:38
In some cases the usb dongle works like a modem, if it's your case just use google to see the syntax of the AT commands to send sms.

If it's not the case check the documentation of your usb dongle to see if it's possible.

Most telecom operators provide services (and you can find several others like bulksms for example) for this kind of things, in this cases you don't need the usb dongle they provide the api description.
Publicado el 25,septiembre 2015 - 12:01
but sir,
not use internet,,

use only usb modem (Doungle) and sim card,

And CReate Software to send sms use USB Modem
Publicado el 25,septiembre 2015 - 12:33
In this case if you have one usb modem with sim card you can use AT commands to send sms.
Publicado el 25,septiembre 2015 - 15:19
but sir,,

i am not know AT Command use in windev17


please sir,

help me
Publicado el 25,septiembre 2015 - 17:41
If your usb modem creates one logical comm port it's easy, just use that port (com2,com3,...)
with the sopen/swrite/sread functions to send the AT commands.

http://doc.windev.com/en-US/…
Publicado el 25,septiembre 2015 - 17:57
Hello Vijay

try search this forum , someone had posted the code before
Publicado el 26,septiembre 2015 - 10:55
IR1 = sOpen(3, 2000, 2000)
IF IR1 <> 0 THEN
// Configure IR1
// The COM2 port is opened
sMessage is string
sMessage="test message"
// Send a message to the output buffer of COM2
sWrite(2, sMessage)
// Wait for the end of the write operation
LOOP
IF sInExitQueue(2) = 0 THEN BREAK
END
ELSE
Error("Error while opening ")
END


but not know (write mobile number to send sms)
Publicado el 26,septiembre 2015 - 12:06
i am not know to write mobile number and text message to send this mobile number sms

which function use to send sms
Publicado el 27,septiembre 2015 - 01:08
Hi Vijay

I suppose you mean that you don't know the number of the comm port you should write to?
IF that is the case then have a look at:
http://27130.foren.mysnip.de/read.php…

best regards
Ola
Publicado el 28,septiembre 2015 - 10:08
DOTNET WMI example

in not sWrite and sRead Function

but not connect GSM USB MODEM in this example
Publicado el 28,septiembre 2015 - 12:20
Hi, you may need to try this:

http://www.logiccodesoft.com/lcgsmsms.aspx

or some other activex library to be able to fully control your modem.

Regards

issah
Publicado el 28,septiembre 2015 - 12:44
AT+CMGF=1
OK
AT+CMGS="+31628870634"
> This is the text message.?
+CMGS: 198
OK

this is AT Command ,

i am try to this At Command but not work
my code:-
IR1 is boolean

IR1 = sOpen(3, 2000, 2000)
IF IR1 <> 0 THEN
// Configure IR1
// The COM2 port is opened
sMessage is string
sMessage="test message"
// Send a message to the output buffer of COM2
sWrite(3,7825102012+CR+sMessage)
// Wait for the end of the write operation

ELSE
Error("Error while opening IR1")
END
Publicado el 28,septiembre 2015 - 12:54
according to Google you also need a CTRL-Z character at the end
http://www.diafaan.com/sms-tutorials/gsm-modem-tutorial/at-cmgs-text-mode
AT+CMGS= = ASCII character 13 = ASCII character 26
Publicado el 28,septiembre 2015 - 12:56
Mmmh messed up by the forum formatter
Second attempt:

AT+CMGS=[number][CR][message][CTRL-Z] [CR] = ASCII character 13 [CTRL-Z] = ASCII character
Publicado el 28,septiembre 2015 - 14:46
sWrite(3,AT+CMGS=88666630207+CR+"JSM"+CTRL-Z)

but show error above underline code
Publicado el 28,septiembre 2015 - 14:54
sWrite(3,"AT+CMGS=88666630207"+CR+"JSM"+Charact(26))
Publicado el 28,septiembre 2015 - 15:40
IR1 is boolean

IR1 = sOpen("COM4", 2000, 2000)
IF IR1 <> 0 THEN
sWrite("COM4","AT+CMGS=088666630207"+CR+"JSM"+Charact(26))
END
----------------
IR1 is boolean

IR1 = sOpen(4, 2000, 2000)
IF IR1 <> 0 THEN
sWrite("4,"AT+CMGS=088666630207"+CR+"JSM"+Charact(26))
END


but not come sms in this (8866630207) mobile number
what is misstak in code
Publicado el 28,septiembre 2015 - 16:25
You need to use sread to check the modem response, without the modem response we can't help you.
Publicado el 28,septiembre 2015 - 16:33
Vijay,
1. is your modem in text-mode? You can do that using AT+CMGF=1
2. you have to check your calls on the return values. Did sWrite return true or false?
3. you have to check the return message of your modem using sRead() after sWrite()
4. did you set the baudrate, stopbits, etc. of the comport?
etc

Basicly you must check the result of every action you do on the serial port. This will give you the information to find the missing link in your code.

Apart from that: I would use a freeware tool like Hyperterminal or some other serial-tool and type all the AT-commands by hand first. Then you are sure your modem is working as expected.
Publicado el 30,septiembre 2015 - 13:41
port is open but not send sms

------Port find-----
List is string
sList = USBListDevice(sBeginning)
IF sList <> "" THEN
sDevice is string
FOR EACH STRING sDevice OF sList SEPARATED BY CR
Trace(USBProperty(sDevice, USBPropertyLocation))
Explore(sDevice)
END
END
------------send sms----------------------
IR1 is boolean

IR1 = sOpen(003, 2000, 2000)
IF IR1 <> 0 THEN
sWrite(003,"AT+CMGS=088666630207"+CR+"JSM"+Charact(26))
END
Publicado el 30,septiembre 2015 - 16:22
Vijay just posting pieces of code isn't enough for us to try to help you, you have to read the previous posts (like the one from Arie) and try the solutions proposed and post the results.
Publicado el 06,octubre 2015 - 06:28
check to gsm modem but result FALSE value:-

Try this code:-

IF sWrite(3,"AT+CMGF=1")=True THEN
Info("ok")
ELSE
Info("test")
END

please give solution