Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2010-04

Anyone done any work with SMS (text messaging)?

15 messages · 6 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Wildfire

Rather than reinvent the wheel I was wondering if anyone has an SMS component which can send text messages to multiple recipients and periodically poll the modem/cell phone for incoming messages?

I send messages out to ~15 people for Dundee United football (soccer) updates and rather than type the messages into the SMS app supplied by my ISP I created a front end which creates the message in a text box which is then copied and pasted into my current SMS app...

eg Rather than type

"GOAL: UNITED

Daly

Motherwell 0 - 1 UNITED"

I just click the Goal button next to Daly's name.

Anyway I'd like to go a step further, instead of having a copy button which copies the text to the clipboard I'd ideally like a send button which sends the texts itself.

Can anybody help or have pointers?

Reply by email

Graeme Geldenhuys
to Wildfire

Yes I do in our products, but the SMS service provider we work through uses a HTTP protocol, so we don't have the need for some specialized component. We simply use HTTP POST when sending our SMS messages, and read back a status.

Regards, - Graeme - _______________________________________________ fpGUI - a cross-platform Free Pascal GUI toolkit http://opensoft.homeip.net/fpgui/

Reply by email

ik
to Wildfire: Rather than reinvent the wheel I was wondering if anyone has an SMS component which can…

If you own (or wish to own) a cellular modem, then I think http://www.kannel.org/index.shtml will provide you a solution.

If you wish to use an existing SMS systems, then you have a lot of online services that provide it based on specific countries, that you can communicate using REST.

Ido
http://ik.homelinux.org/

Wildfire wrote 33 lines
Rather than reinvent the wheel I was wondering if anyone has an SMS component which can send text messages to multiple recipients and periodically poll the modem/cell phone for incoming messages? I send messages out to ~15 people for Dundee United football (soccer) updates and rather than type the messages into the SMS app supplied by my ISP I created a front end which creates the message in a text box which is then copied and pasted into my current SMS app... eg Rather than type "GOAL: UNITED Daly Motherwell 0 - 1 UNITED" I just click the Goal button next to Daly's name. Anyway I'd like to go a step further, instead of having a copy button which copies the text to the clipboard I'd ideally like a send button which sends the texts itself. Can anybody help or have pointers? -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20100424/affdf671/attachment.html>

Reply by email

Wildfire
to ik

Thanks for the replies guys,

Ido, I already have a cellular modem and service and unfortunately Graeme I'll be using AT commands to send/poll SMS's not HTTP :(

It's not important but I'm lazy at heart and even a couple of clicks saved is good for me ;)

I may write my own during the close season but if anyone can give advice it would be much appreciated.

The main reason I ask is due to Lazarus' Multi Platform capabilities, the app supplied by my ISP only runs on Windows OS' and I don't fancy lugging my laptop around the games nor using a cellphone (even with predictive text) to enter the messages. -------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20100424/4ba14acd/attachment.html>

Reply by email

Lukas Gradl
to Wildfire: Rather than reinvent the wheel I was wondering if anyone has an SMS component which can…
Wildfire wrote 24 lines
Rather than reinvent the wheel I was wondering if anyone has an SMS component which can send text messages to multiple recipients and periodically poll the modem/cell phone for incoming messages? I send messages out to ~15 people for Dundee United football (soccer) updates and rather than type the messages into the SMS app supplied by my ISP I created a front end which creates the message in a text box which is then copied and pasted into my current SMS app... eg Rather than type "GOAL: UNITED Daly Motherwell 0 - 1 UNITED" I just click the Goal button next to Daly's name. Anyway I'd like to go a step further, instead of having a copy button which copies the text to the clipboard I'd ideally like a send button which sends the texts itself. Can anybody help or have pointers?

On which platform do you want to use SMS? Using Linux I can recommend gnokii-smsd. I use it with the mysql-extension right out of the debian repositories.

So I can have one SMS-Server with an old Nokia 6210 connected via RS232 which handles all the SMS-sending and recieving for the whole net...

regards
Lukas

-------------------------- software security networks Lukas Gradl <fpc#ssn.at> Eduard-Bodem-Gasse 5 A - 6020 Innsbruck Tel: +43-512-214040-0 Fax: +43-512-214040-21 --------------------------

Reply by email

Wildfire
to Lukas Gradl
On which platform do you want to use SMS? Using Linux I can recommend gnokii-smsd. I use it with the mysql-extension right out of the debian repositories.

Hi Lukas,

Haven't decided on the portable platform yet (For when I'm attending games) but it'll probably be linux based.

The fixed platform (at home/non attendance) is XP

FWIW, I'm currently using a Huawei E1550 dongle to send SMS's but that will probably change to a mifi (Wireless Cellular Modem) adaptor when going portable.

Ideally I'd like to keep the source lazarus based for easy maintenance between the two platforms.

Reply by email

Michael Schnell
to Wildfire: Rather than reinvent the wheel I was wondering if anyone has an SMS component which can…

Do you intent to (1) using attach a wireless modem via (1a) a (RS232-) serial interface or (1b) USB to the sending computer or do you intent to (2) use some site in the Internet that is accessed via (1a) E-Mail or (2b) HTTP.

(1a): we did something like that but not with a PC and Pascal but with a homebrew embedded controller and C-Software
(1b): might be difficult with Linux as the suppliers of such devices sometimes only provide Windows drivers
(2a): quite easy using a library that provides an SMPT client. I did something like that with INDY, but other TCP/IP libraries should work as well
(2b): INDY or some other TCP/IP library providing a HTTP client. You will need to do some "creative" software to decode the HTML content and generate the HTML requests. We once did some a library that decodes HTML into a decently structured information and might help with finding necessary sections in same. (This software is in some Alpha state.). Generally: as the HTML pages this kind of sites provide is due to unexpected changes this is not a very reliable method.

-Michael

Reply by email

Wildfire
to Michael Schnell

----- Original Message -----

Earlier message 16 lines
From: "Michael Schnell" To: "Lazarus mailing list" Sent: Tuesday, April 27, 2010 10:47 AM Subject: Re: [Lazarus] Anyone done any work with SMS (text messaging)? > On 04/27/2010 10:50 AM, Wildfire wrote: >> I'll be using a USB attached modem to send the SMS's direct. > Ant this does work in Linux ? The Modem (3g mobile/celluar broadband) has extended AT commands to handle SMS's unfortunately the software my provider issues only runs in Windows. Hence my question. There's only 4 games left this season anyway so I'll probably throw something together in time for next seasons kick off.

Reply by email

Michael Schnell
to Wildfire
Wildfire wrote
The Modem (3g mobile/celluar broadband) has extended AT commands to handle SMS's

You said it's an USB device. "AT-Commands" seems to indicate that you access it as a serial port. Does it come with an USB device driver that looks like a serial port to the user land software ?

unfortunately the software my provider issues only runs in Windows. Hence my question.

What do you mean by Software ? Userland software or device driver, closed source or open source ?

-Michael

Reply by email

Wildfire

Sorry Michael I replied direct to yourself rather than the list.

Earlier message 28 lines
----- Original Message ----- From: "Wildfire" To: "Michael Schnell" Sent: Wednesday, April 28, 2010 11:33 AM Subject: Re: [Lazarus] Anyone done any work with SMS (text messaging)? >> You said it's an USB device. "AT-Commands" seems to indicate that you >> access it as a serial port. Does it come with an USB device driver that >> looks like a serial port to the user land software ? > > Yep, with windows currently the modem appears on Virtual Com port 15 & 16. > 3rd party drivers are available for linux, though I haven't tried them > yet. > > Using Hyperterminal I can send SMS's using the AT commands. > >> What do you mean by Software ? Userland software or device driver, >> closed source or open source ? > > Both closed source,. the manufacturer doesn't provide drivers for Linux > but some are available. The providers (Userland software) is windows only. > It is this I wan't to replicate. > > The AT command set for handling SMS can be found in the link below if it's > of interest to you. > > http://www.cellular.co.za/sms_at_commands.htm

Reply by email

Michael Schnell
Wildfire wrote
The AT command set for handling SMS can be found in the link below if it's of interest to you. http://www.cellular.co.za/sms_at_commands.htm

As the first thing to so is make it accessible on the Linux box at all, the "third party drivers for Linux" need to be tested, so that you can communicate with the device using minicom or whatever terminal program.

-Michael

Reply by email

Wildfire
As the first thing to so is make it accessible on the Linux box at all, the "third party drivers for Linux" need to be tested, so that you can communicate with the device using minicom or whatever terminal program.

Thanks,

I hadn't thought of that, I'd assumed that there would be a serial interface with Linux as well. I'll check it out before I continue.

Reply by email

Justin Smyth
to Wildfire

Can we get a snapshot built with mantis bug 16361 & 16321 fixed ? - both are RTL bugs on x64

16321 fixes sendmessage with payload between applications on x64( it fails under x64)
16361 fixes process32Next & process32First which fail under x64.

Cheers

Justin Smyth

Reply by email