the php_serial class sets the com port line by line. Windows seems to not be able to get the correct settings this way. Whenever I set the data bit to 8 the parity bits goes back to even. All these have to be done in one command line. So we have to modify the php_serial class to run the command in a single line and it solves the problem, for now.. :)
[Read More...]
You are here: » Home » All posts
Sending command to GSM Modem using php
I have a project on integrating sms module into Joomla interface. I found a php_serial class that enables sending command through serial port by using php. I have tested it through hyperterminal and it works perfectly well, but when I tested it with GSM Modem, the AT command seems to be not working. Anyone has an idea of how to use the php_serial to send AT command to GSM Modem? If you have any clue on how to send AT command using php_serial, please inform me :) Thanks
Here's my code
include "php_serial.class.php";
// Let's start the class
$serial = new phpSerial;
$serial->deviceSet("COM1");
$serial->confBaudRate(115200);
$serial->confCharacterLength(8);
$serial->confParity("none");
$serial->confStopBits(1);
$serial->confFlowControl("xonxoff");
$serial->deviceOpen();
$serial->sendMessage("at+cmgs=\"+6583569765\"\r");
$serial->sendMessage("hello".chr(26));
$serial->deviceClose();
?>
[Read More...]
Here's my code
include "php_serial.class.php";
// Let's start the class
$serial = new phpSerial;
$serial->deviceSet("COM1");
$serial->confBaudRate(115200);
$serial->confCharacterLength(8);
$serial->confParity("none");
$serial->confStopBits(1);
$serial->confFlowControl("xonxoff");
$serial->deviceOpen();
$serial->sendMessage("at+cmgs=\"+6583569765\"\r");
$serial->sendMessage("hello".chr(26));
$serial->deviceClose();
?>
Free Template 2 - Joomlabasic Biz
I have finally completed 2nd template. I think there's still a lot to be tweaked to get this template look more professional. Any suggestions would be appreciated.
You can get the template --> here

[Read More...]
You can get the template --> here

Free Template 2 Layout
I am working on the 2nd template, expected to be finished by this weekends. This template will have 4 modules, here's the outline.
Got to get started :_)
[Read More...]

Template conversion from html to Joomla
Life in school has been pretty busy this week, loaded with class test and lab test, putting my best effort and struggling to pass every single test... But nightmare is just over (for a while), 3 weeks holiday is around the corner, hehe.
I am interested in converting an existing html template to Joomla template, hoping to complete it during holiday. I will pick a suitable html template and put it up here. As usual, I will share with everyone once it's completed :)
will update on the progress as soon as possible.
[Read More...]
I am interested in converting an existing html template to Joomla template, hoping to complete it during holiday. I will pick a suitable html template and put it up here. As usual, I will share with everyone once it's completed :)
will update on the progress as soon as possible.
Free Joomla Template - 1module Template
I just completed my first 1module Joomla 1.0x template
There seems to be a lot of improvements that can be made, need some comments on it :)
Here's the template pic

You can get the template file here --> 1module
This is a free template, you can modify it in any way including the footer link, author and stuffs
If you like the template let me know, I will create and upload Joomla template regularly
[Read More...]
There seems to be a lot of improvements that can be made, need some comments on it :)
Here's the template pic

You can get the template file here --> 1module
This is a free template, you can modify it in any way including the footer link, author and stuffs
If you like the template let me know, I will create and upload Joomla template regularly
Joomlabasic One Module Cloud Template

I will attach a download link here once it's completed, any comment on how to improve on it is always welcome.
Subscribe to:
Posts (Atom)