Your Ad Here

Programming

You are currently browsing the articles from Information City matching the category Programming.

Sending SMS using GPRS activated through AT command

I was searching for the exact command to send sms through GPRS rather than normal GSM and I found one article but forgotten where it was from. I tried it but I’m not sure if it works. I use Nokia 6151 with USB data cable connected to the PC. There is a “G” symbols appear on top of the mobile screen but there’s no different in speed of sending sms when I compare it.

I later found out that the transmission bandwidth for GPRS is much bigger than the normal GSM link. It should be faster if the sms is sent through the GPRS link and I suspect that the steps I did was not correct or it might be my telco doesn’t support the feature. Anyway, for those of you who might want to try it, I have the method copied down and below are the excerpt;

First of all, you need a modem that supports GPRS. You also need a provider that supports GPRS (not all providers support GRPS!)
To send an SMS through GPRS, add the following to your modem initialization string:
  AT+CGATT=1;AT+CGSMS=0
The first command enables GPRS (disabled by default); the second command specifies to send SMS over GPRS instead of GSM.
You can now send SMS messages over GSM. However, if the provider does NOT support GPRS, you will receive the following error:
  +CMS ERROR: 47
  or +CMS ERROR: 69
You can switch it back using the following command:
  AT+CGATT=0;AT+CGSMS=1

Written by admin on September 3rd, 2007 with no comments.
Read more articles on Personal and Programming.

VB: Round up decimal value by truncate floating point

So I was searching for a method to get the integer value from a floating number but found a quick workaround towards the problem. Below is what I have come up with:

function convertInt(value as double) as integer
  dim arrayNo
  arrayNo=Split(value,”.”)
  convertInt=arrayNo(0)
end function

I believe the above function code is self explainatory. Anyone have a better way or suggestion?

Written by admin on August 21st, 2007 with no comments.
Read more articles on Personal and Programming.

Your Ad Here

MS SQL Database Replication

I was wondering if replication can be done. This article just shown me the way to do it. It’s not that difficult as what I thought earlier but it’s not practical to what I wants it to archieve. Now I’m putting myself into further headache to overcome the long pending problem. I guess I’ll have just start the very first step to do it and enhance it as time goes by. I still think this way works, plan and act at the same time. Do you agree?

*Edit*

I happened to come across another article, SQL Server 2000 using transactions on distributed servers and Tool to script linked servers in SQL server 2000. I think linked server is the next candidate to solve my problem, hopefully.

Written by admin on August 9th, 2007 with no comments.
Read more articles on Personal and Programming.

« Older articles

No newer articles

 

Your Ad Here