My love machine 8210 accompanied me for several years, I always wanted to find a software backup on the software backup, read the procedures written by others, and itchy. So, go to NOKIA's website to find PC Connectivity SDK 3.0, and use this SDK to develop, you can implement my request. Ok, there is not much nonsense, and I will enter the theme.
First of all, confirm that you have a Nokia phone, but also to be connected to a computer (you can pass the data cable, infrared, Bluetooth); secondly, download SDK, if you want to download it on Nokia.com, you need to register users, The mobile development sector in 9CBS is downloaded (http://www.9cbs.Net/mobile/nokia/ncsp.aspx?id=10200) can be free of registration.
After installing the program you downloaded, after restarting the machine, it will find that the system tray area has more small icons, it is right, he is "Nokia Connection Manager", which is responsible for data communication between computer and mobile phones. Open my 8210 infrared interface, place it next to the computer's infrared adapter, if the connection is successful, double-click the small icon, see the following interface, my 8210 has been detected by the program.
When the machine is started in the future, "NOKIA Connection Manager" will start automatically. Select "Run" in the Start menu, type "Msconfig", select the "Start" page in the pop-up window, cancel the hook before "NCLTRAY", can avoid automatically run. "NCLTRAY" can be manually started in the control panel. Start using the following methods in your own procedure:
Winexec ("Control.exe Nclconf.cpl", SW_NORMAL);
Or use: rundll32: rundll32 shell32.dll, control_rundll nclconf.cpl
You can also get a complete installation path from the registry:
HKEY_LOCAL_MACHINE / SOFTWARE / Microsoft / Windows / CurrentVersion / App Paths / NClconf.exe
Now open the "Start Menu", enter "Nokia PC Connectivity SDK
3.0
"
New entries, you will see the development documentation in two PDF formats. They will become the only reference information in the future development process (at least I only see this, although there is a column of PC Connectivity SDK in the Nokia Forum, it is very disappointing). Select "Nokia PC Connectivity SDK 3.0 - Component Library Reference", first check 1.2 and 1.3 sections (on page 9, click on the entry in the directory to automatically jump to this page), the excerpt is as follows:
1.2 prerequisites
To Be Able To Use Nokia PC Connectivity SDK you NEED:
• DLR-3P Connection Cable (Available Separately)
• Irda Connection
• Compatible Bluetooth Connection
• DKU-2 USB Connection Cable (Available Separately)
• DKU-5 USB Connection Cable (Available Separately)
• DKU-6 USB Connection Cable (Available Separately) 1.3 Supported Phones
NOKIA PC Connectivity SDK 3.0 Supports The Following Phones:
Phone
Type
NOKIA 3320
NPC-1
NOKIA 3360
NPW-1
NOKIA 6210
NPE-3
NOKIA 6250
NHM-3
NOKIA 6310
NPE-4
NOKIA 6310i
NPL-1
NOKIA 6340
NPM-2
NOKIA 6360
NPW-2
NOKIA 6370
NHP-2
NOKIA 6385
NHP-2
NOKIA 6510
NPM-9
NOKIA 6590
NSM-9
NOKIA 6610
NHL-4U
NOKIA 6650
NHM-1
NOKIA 7110
NSE-5
NOKIA 7160
NSW-5
NOKIA 7190
NSB-5
NOKIA 7210
NHL-4
NOKIA 8210
NSM-3
NOKIA 8290
NSB-7
NOKIA 8310
NHM-7
NOKIA 8390
NSB-8
NOKIA 8810
NSE-6
NOKIA 8850
NSM-2
NOKIA 8890
NSB-6
NOKIA 8910
NHM-4
Look at whether your device is there? Let's review Section 3 "Language Support", this is a must-read section, to write code, correctly install the class library is the foundation. The reference manual mainly takes VC, VB (VS6.0) and Delphi (4.0) as an example, and simply explains some precautions for COM development in three tools. I use Delphi7.0, perhaps the content update in SDK 3.0, when installing the class library in Delphi7.0, the content of the class library is different from the picture in SDK 3.0 Reference, there are many content.
Picture of SDK 3.0 Reference
The effect I installed
By default, all class library icons are placed in the ActiveX panel. For better management and use, I installed them under new panels named "Nokia". Ok, let's write a few lines of code as an example of Delphi.
Start Delphi, create a new application. Place a TphoneInfo_suite3 control on the form and name PIS3, this control is used to collect basic information of your mobile phone, nature is the same as collecting CPUs and operating system information; placing a TMEMO and TSTATUSBAR, named MphoneInfo and Statusbar, respectively. Then add the following code:
VAR
PVAL: WIDESTRING;
DevStatus: devnotifyopt;
Begin
// Get device connection information
Pis3.Get_DeviceStatus (Devstatus);
// Empty Memo
MphoneInfo.clear;
// The link status of the device is unknown, attacked, removed, respectively, respectively.
// disconnected
Case DevStatus of
Unknown: status bar.panels.Items [0] .text: = 'status: unknown';
Attached: Begin
Statusbar.Panels.Items [0] .TEXT: = 'status: attached';
// Get the software version number
Pis3.defaultInterface.get_swversion (pVAL); MphoneInfo.lines.add ('SWVersion:' PVAL);
// Get the hardware version number
Pis3.defaultInterface.get_hwversion (pval);
MphoneInfo.lines.add ('HWVersion:' PVAL);
// Get product type
Pis3.defaultInterface.get_ProductType (PVAL);
MphoneInfo.lines.add ('ProductType:' PVAL);
// Get product coding
Pis3.defaultInterface.get_ProductCode (PVAL);
MphoneInfo.lines.add ('ProductCode:' PVAL);
END;
Removed: statusbar.panels.Items [0] .text: = 'status: removed';
Disconnected: status bar.panels.Items [0] .text: = 'status: disconnected';
END;
END;
Run this code, if your phone is properly connected, you will be able to see the relevant information.
The following two codes achieve the functionality of sending short messages and acquisition calls:
// Send a short message, place a TSMS_SUITEADAPTER named SMSSend on the form
// Place a TMEMO named MSMSText to enter SMS content
// Place a TEDIT named EphonNumber to enter the receiver number
VAR
PSMS: IshortMessage;
WSSMSText: widester;
Begin
SMSsend.createshortmsg (PSMS);
PSMS.SET_USERDATATEXT (MSMSText.Lines.Text);
PSMS.SET_OTHERENDADDRESS (EPHONENUMBER.TEXT);
SMSsend.send (PSMS);
END;
/ / Get the phone book information, place a TphoneBooksuite3 on the form, named PhoneBooksuite
// A TMEMO is named MphoneBookInfo to store the received phone information
VAR
PVAL: WIDESTRING;
ICONTACT;
Ptotal, Pfull, Pfree, I: Integer;
Begin
// Memory_Default is to access the default memory, if your currently set phone call this memory is a SIM card,
// and all the phone numbers are stored on the phone, or there is phone information in the SIM card and the phone, then
// To access two memories separately to get all information.
PhonebookSuite.getMemoryCaps (Memory_Default, Ptotal, Pfull, Pfree);
Mphonebookinfo.clear;
// Get the current memory total space
Mphonebookinfo.line..add ('Total:' INTOSTR (PTOTAL));
// Get the current memory has been used
Mphonebookinfo.lines.add ('Full:' INTOSTR (PFULL);
// Get the remaining space of the current memory
Mphonebookinfo.lines.add ('Free:' INTOSTR (PFREE);
Mphonebookinfo.lines.add ('================================================================== 1 To Pfull Do
Begin
// Net business card information from the current memory
PhonebookSuite.getContact (Memory_Default, I, INFO);
// Resolution of the number from the business card information obtained
INFO.GET_NUMBER (PVAL);
Mphonebookinfo.line..add (pval);
/ / Analyze the name from the business card
INFO.GET_NAME (PVAL);
Mphonebookinfo.line..add (pval);
Mphonebookinfo.lines.add ('-------------');
END;
END;
The picture below is the effect:
Several simple examples, merely illustrate the introductory method, and there are many features that are available in the above controls. More information is to review the manual of the SDK, which is generally detailed, the interface model, the type and usage of the interface model, and the appropriate code, but it is unfortunately all examples. They are all VB code. When using other languages, you need to do some to explore yourself.
Author: monkeyking EMail: monkeyking@cstc.net.cn