--> January 2015 | Delphi Tips Trick

For Newbie

Tuesday 6 January 2015

Sending sms using Delphi + modem wavecom and Twavecom components

Sending sms using Delphi + modem wavecom and Twavecom components



Sending sms using Delphi + modem wavecom and Twavecom components: if using Delphi + comport to send sms is considered complicated since you have to really understand about AT command concept on modem wavecom,… and will be more complicated when the reading process of sms
received then partied or sorted according to dates, messages content, time, operator and so on … so it will be little bit complex when you have to find certain characters as initial number of cellphone, beginning sms, ending sms, and so on…. However by using these twavecom components, you could send and receive sms very easily, including checking credit by code USSD, sending sms flash and so on.

Monday 5 January 2015

no image

Motion detection delphi + ds pack

Motion detection is application that is used as observer system or protection system in a certain room, for example coffer room of a organization, such as bank, in a certain time this room has to be empty without anyone inside, as protection application can be developed using sms delivery facility to those that is related when detected a movement. This application can also be developed by automatic facility video recorder if detecting a movement in video preview that is capture in camera as protection input system.

Ds pack and delphi can be used for develop an application which can be used for motion detector throuh a camera e.g web camera.

Making System autoresponder by delphi + modem wavecom By using delphi + modem wavecom and Twavecom components

Making System autoresponder by delphi + modem wavecom By using delphi + modem wavecom and Twavecom components



Making System autoresponder by delphi + modem wavecom By using delphi + modem wavecom and Twavecom components

Fitur :
Receiving sms using Delphi + modem wavecom and Twavecom components

Receiving sms using Delphi + modem wavecom and Twavecom components



Receiving sms using Delphi + modem wavecom and Twavecom components: reading process or receiving sms then parted or sorted according to dates, message sontent, time, operator etc using comport component on delphi will make sms reading process will be more difficult since you have to find certain characters as initial cell phone number, beginning sms, ending sms and so on … you also have to recognize AT command among AT+CMTI =xx as signal sms received to modem… 

Sms controller (via sms controlling) by using modem serial wavecom fastrack M1306B being interfaced with microcontroller of bascom scripts.

Sms controller (via sms controlling) by using modem serial wavecom fastrack M1306B being interfaced with microcontroller of bascom scripts.



 Sms controller (via sms controlling) by using modem serial wavecom fastrack M1306B being interfaced with microcontroller of bascom scripts.

I have learned sending sms by using modem serial wavecom fastrack M1306B being interfaced with microcontroller of bascom scripts.
 just for fun, since I already learn how to send sms by using modem serial wavecom fastrack M1306B being interfaced with microcontroller of bascom scripts.
. In principle, sms delivery process is conducted by using communication serial, both between pc and modem or could be between modem and microcontroller. Basically, sms sending process is communication with AT command. AT command used to send SMS as below:
At+cmgs = 085743320xxx [enter]
Write the messages will be sent, then press ctrl + z simultaneously (programming code ascii for rl + z is #26). It should appear OK as the sign that sms already sent.
Here is the source code sending sms using bascom:
   Print "AT+CMGS=";   
  Print "085729169629" '---- cellphone numbers : , replaceable
  Waitms 700    '----- wait 700 ms
  Print "DEVICE SHIFT, INDICATION OF THEFT ";    '----- sms content sent
   Print Chr(26) '----- final code for sending sms command
  Wait 1  '----- wait 1 second
Above code will send command
At+cmgs = 085729169629 [enter]
Then, DEVICE MOVE, INDICATION OF THEFT, and character ctrl + Z to modem. It means we command modem to send sms contains DEVICE MOVE, INDICATION OF THEFT to 085729169629
The complete source code as follows:

no image

record video file using video grabber delphi

record video file using video grabber delphi

Saturday 3 January 2015

no image

Automatic restart delphi application


OK, a few tips just for today. There are times in making our application must restart the application itself, without restarting Windows. especially if it is a database application. eg, there is a database application. after performing a database restore, then re-connection is required between applications with the database. to avoid errors that are not expected and unexpected, it is necessary to restart the application. and of course, it would be more cool and fun if he could restart itself. If you find a case like this, then the code that is needed is:
ShellExecute (Handle, 'open', PAnsiChar (ParamStr (0)), ",", SW_SHOW); Application.Terminate; / / or can use "Close" wrote 


Friday 2 January 2015

Receiving sms using Delphi + modem wavecom and Twavecom components

Receiving sms using Delphi + modem wavecom and Twavecom components



Receiving sms using Delphi + modem wavecom and Twavecom components: reading process or receiving sms then parted or sorted according to dates, message sontent, time, operator etc using comport component on delphi will make sms reading process will be more difficult since you have to find certain characters as initial cell phone number, beginning sms, ending sms and so on … you also have to recognize AT command among AT+CMTI =xx as signal sms received to modem… 

no image

EMS Advanced Data Export Component Suite tools export data untuk delphi xls word pdf doc excel EMS Advanced Data Export Component Suite : data export tools for delphi - pdf - doc - xls - word - excel

Advanced Data Export VCL is a component suite for Borland Delphi and C++ Builder that allows you to save your data in the most popular data formats for the future viewing, modification, printing or web publication. You can export data into MS Access, MS Excel, MS Word (RTF), Open XML Format, Open Document Format (ODF), HTML, XML, PDF, TXT, DBF, CSV and more! There will be no need to waste your time on tiresome data conversion – Advanced Data Export will do the task quickly and will give the result in the desired format.

Key Features

Thursday 1 January 2015

no image

Checking on credit/balance using USSD Delphi + modem wavecom and Twavecom components.



Checking on credit/balance using USSD Delphi + modem wavecom and Twavecom components. USSD stands for Unstructured Supplementary Service Data. USSD is a protocol used to communicate from cell phone/ handset user to content provider (or vice versa). It is only provided in telecommunication mobile services of GSM-based and commonly used to request (request/pull) information from operator, particular service subscribing (service provisioning) or even received information from content provider (push). IMHO, USSD is one feature of mobile telecom mostly used besides phone (voice call) and sms (text based message). OK, that’s some description about what USSD is. Sit back and relax, I will give you another example of USSD request.
USSD code access or USSD message in cell phone is digit number initialized by sign  *  and ended by sign  #  . Each parameter is limited by sign  *. USSD message examples usually sent to content provider:
*123#
*123*1*9789732404229650#
     
no image

DBGrid Delphi Tips and Tricks: Giving color to the current record in DBGrid

I will share tips n tricks to customize DBGrid on borland delphi 7. in question is give customize colors on the active record in the DBGrid.

no image

How to rounding fractional numbers in the hundreds to thousands of Delphi


em, this time a few tips on how to round fractional numbers in the hundreds to thousands. for example, Rounded to 192 000 192 333 Rounded to 174 000 174 250 if you have any questions, why too should be rounded? whereas the figure is not a number or a decimal fraction. OK, rounding like this would be necessary for the calculation of financial data with the reach of large numbers. for example, when we talk about the payment of an installment, is not very rare when there are hundreds of dollars installments with fractions? especially if the number reached millions of dollars. :)