2 Attachment(s)
MobilePhone v1.0.0.2 (alpha)
I'm building a phone control in VB.NET to meet my custom needs in phone control as a RRExtension (no standalone app) based on the ATSMS library. I though I would share this, but I can't promise any support on this (I'm only able to test it with my Sony Ericsson Z520i, which has limited support on phonebook management)
What it does:
Using a virual com port, connects to your bluetooth phone over serial communication.
http://www.mp3car.com/vbulletin/imag...aa0d06f60e.jpg
Updated for version 1.0.0.2
ini file settings
[CONNECTION]
AutoConnect=True (connect when skin is loaded)
Port=COM7
BaudRate=9600
DataBit=8
StopBit=1
FlowControl=None
[PHONESTATUS]
Update=10000 (update battery and signal every 10s)
BatteryWarningLevel=10 (not yet used)
BatteryImageCount=5
BatteryImageExt=jpg
SignalImageCount=5
SignalImageExt=jpg
ImagePath=C:\Program Files\Road Runner\skins\BMV2\
[PHONEBOOK]
SyncDelay=1000 (when a phonecall is terminated the RC,MC and DC txt files are updated, this specifies the delay in seconds between the hangup and the sync call)
Path= (path to where the phonebook files should be stored)
InternationalPrefix=0032
NationalPrefix=0
ShortCode=+32
PhotoPath=C:\Program Files\Road Runner\skins\BMV2\mobilephone\
PhotoExt=jpg
Adds the following to a skin
Skin commands:
mobilephone_connect (switch between connect and disconnect)
mobilephone_0 (0 button pressed)
mobilephone_1 (1 button pressed)
mobilephone_2
mobilephone_3
mobilephone_4
mobilephone_5
mobilephone_6
mobilephone_7
mobilephone_8
mobilephone_9
mobilephone_#
mobilephone_*
mobilephone_del
mobilephone_dial (begin a call with the number in dialbox)
mobilephone_pickup (begin a call or answer incomming call)
mobilephone_hangup (terminate current call)
mobilephone_smssend (send a new sms message, not yet implemented)
mobilephone_smsread (read the incomming sms, not yet implemented)
mobilephone_pb_first_entry (goto first entry)
mobilephone_pb_previous_page (goto previos page, not yet implemented)
mobilephone_pb_previous_entry (goto previous entry)
mobilephone_pb_next_entry (goto next entry)
mobilephone_pb_next_page (goto next page, not yet implemented)
mobilephone_pb_last_entry (goto last entry)
mobilephone_add_entry (not yet implemented, add entry to current phonebook .txt file, maybe also sync with phone)
mobilephone_delete_entry (not yet implemented, delete entry from current phonebook .txt file, maybe also sync with phone)
mobilephone_edit_entry (add typed in phonenumber to PC phonebook not yet implemented)
mobilephone_sync (loads the ME,SM,RC,DC,MC phonebooks from phone into their respective MobilePhone_xx.txt file)
mobilephone_pc (loads the MobilePhone_PC.txt file into the custom list)
mobilephone_me (loads the MobilePhone_ME.txt file into the custom list)
mobilephone_sm (loads the MobilePhone_SM.txt file into the custom list)
mobilephone_rc (loads the MobilePhone_RC.txt file into the custom list)
mobilephone_dc (loads the MobilePhone_DC.txt file into the custom list)
mobilephone_mc (loads the MobilePhone_MC.txt file into the custom list)
Skin Indicators:
mobilephone_connected (TRUE/FALSE)
mobilephone_batterycharging (TRUE/FALSE)
mobilephone_incommingcall (TRUE/FALSE)
mobilephone_messagereceived (TRUE/FALSE)
mobilephone_synchronizing (TRUE/FALSE)
mobilephone_communicating (TRUE/FALSE)
special indicators
"FILE;$mobilephone_photopath$" (shows the photo of the caller)
"FILE;$mobilephone_batterystrength$" (shows the battery bar)
"FILE;$mobilephone_signalstrength$" (shows the signal bar)
Skin Labels:
mobilephone_dialbox (input field)
mobilephone_manufacturer
mobilephone_model
mobilephone_revision
mobilephone_batterycharging (TRUE/FALSE)
mobilephone_communicating (TRUE/FALSE when communication with phone is in progress)
mobilephone_batterystrength (0-100%)
mobilephone_signalstrength (0-100%)
mobilephone_smsc
mobilephone_connected (TRUE/FALSE if phone is connected)
mobilephone_imsi
mobilephone_network (Network operator name)
mobilephone_ownnumber
Installation
Unpack rar in rr root. There should be a MobilePhone.dll, MobilePhone.tlb and MobilePhone.ini file
Copy skin example in your skin folder, you can load it from an other screen by using the LOAD command.
The dll should be registered using regasm /tlb for RR to recognized it.
The ATSMS.dll should be in same directory as MobilePhone.dll (no need to register this one i think)
[EDIT]
Source project:
This project uses the opensource ATSMS library. The sources of ATSMS can also be downloaded from sourceforge. In the project the ATSMS library is located in the lib folder. When you build the project make sure the output directory is set to your RR root folder, that way it will register the dll automatically.
On my TODO list for the comming days are:
- editable phonebook management
- sms support (which is already supported in ATSMS library, I just need to hook it up with some command buttons.)
[B]Long term[/]
- Support other phones... ATSMS library works with standard AT commands, so I think most of the phones would work. so if someone wants to test it and it works, we could make a supported phones list.
Supported Phones
- Sony Ericsson Z520i
Not Supported Phones
According to ATSMS library these phones are not supported
Nokia N70
Nokia 6600
Cheers,