Page 1 of 2 12 LastLast
Results 1 to 10 of 19

Thread: MobilePhone v1.0.0.2 (alpha)

  1. #1
    Newbie Lucifer's Avatar
    Join Date
    Aug 2004
    Location
    Belgium
    Posts
    39

    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.


    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,
    Attached Files Attached Files
    Morex 3688 (Via MII10000 - 512Mb - 2,5HD 30Gb DVD+RW)
    CarTFT Motorized 7" In-dash Touchscreen
    CNX 1260
    Current Status: Skinning !

  2. #2
    Low Bitrate
    Join Date
    Jul 2007
    Posts
    59
    Any chance you would release the source code? I'd love to try and hack at it.

  3. #3
    Constant Bitrate Zoltan's Avatar
    Join Date
    Jun 2004
    Location
    Shreveport, LA
    Posts
    177
    Should your plugin work with CDMA phones, or GSM only?

    --Thanks
    '03 Escape 4WD:
    -iTox mini-itx mobo, Core 2 Duo Mobile 1.66Ghz; 2GB, 80GB 2.5" HD, DS-ATX
    -Transflective 8.4"
    -XM, iG4, OBD-II (BR-3)
    -Rearview camera with auto-switching (modified cheesbox)
    -Slim Slot DVD+RW
    -RR, DFX 4

  4. #4
    Newbie Lucifer's Avatar
    Join Date
    Aug 2004
    Location
    Belgium
    Posts
    39
    No idea what a CDMA phone is, but it works for my GSM. It uses standard AT commands over a COM port to talk to the phone device. If your CDMA phone accepts that, it might work.

    I've put the source up for grabs.

    Question from me: How would i be able to change an image in a skin from code. I would like to put an image control on the skin that displays a photo of the caller. The photos would be in a folder marked as <phonenumber>.jpg
    When a selection is made in the phonenumber list i want to change the image. What would be the best way to do that in the RRExtension code?
    [EDIT] found the solution in this thread http://www.mp3car.com/vbulletin/rr-p...on-plugin.html
    Morex 3688 (Via MII10000 - 512Mb - 2,5HD 30Gb DVD+RW)
    CarTFT Motorized 7" In-dash Touchscreen
    CNX 1260
    Current Status: Skinning !

  5. #5
    Constant Bitrate
    Join Date
    Mar 2008
    Posts
    133
    Iam instal:
    System: WinXP
    Phone: nokia n73
    Soft: bluesoleil 6.0.227

    plugins unzip
    C:\RoadRuner\ATSMS.dll
    C:\RoadRuner\ATSMS.pdb
    C:\RoadRuner\ATSMS.xml
    C:\RoadRuner\MobilePhone.dll
    C:\RoadRuner\MobilePhone.ini
    C:\RoadRuner\MobilePhone.pdb
    C:\RoadRuner\MobilePhone.tlb
    C:\RoadRuner\myscin\MOBILEPHONE.jpg
    C:\RoadRuner\myscin\MOBILEPHONE_DOWN.jpg
    C:\RoadRuner\myscin\MOBILEPHONE_OFF.jpg
    C:\RoadRuner\myscin\MOBILEPHONE_ON.jpg
    C:\RoadRuner\myscin\mobilephone.skin

    create register.bat:
    RegSvr32 /s ATSMS.dll
    RegSvr32 /s MobilePhone.dll

    Main Menu skins create button: command: "LOAD;mobilephone.skin"

    Load mobilephone.skin - good!

    But not that does not work!!!
    RUSSIA - WINER!!!

  6. #6
    Newbie Lucifer's Avatar
    Join Date
    Aug 2004
    Location
    Belgium
    Posts
    39
    Just updated the dll. Something went wrong when synchronizing phonebooks

    I also think you need to register it with "regasm /tlb MobilePhone.dll" not regsvr32.

    I also read in the ATSMS library documentation that it does not support these phones:
    Nokia N70, Nokia 6600
    Morex 3688 (Via MII10000 - 512Mb - 2,5HD 30Gb DVD+RW)
    CarTFT Motorized 7" In-dash Touchscreen
    CNX 1260
    Current Status: Skinning !

  7. #7
    Constant Bitrate
    Join Date
    Mar 2008
    Posts
    133
    nokia n73 Will not work?
    RUSSIA - WINER!!!

  8. #8
    Low Bitrate
    Join Date
    Apr 2006
    Posts
    76
    ok, can i have an idiots guide on how to register the DLL as I tried both the afore mentioned commands in the command window to no avail.
    Cheers

  9. #9
    Low Bitrate
    Join Date
    Apr 2006
    Posts
    76
    Any progress to report Lucifer?

  10. #10
    Maximum Bitrate tempgp's Avatar
    Join Date
    Jun 2007
    Posts
    662
    this showuld work on both GSM and CDMA phones as it based on AT commands... some manufactures may not use AT command anymore, but some still do

    to find out just connect BT ans open hyper terminal or comm port debugger and type: ATD 0000000 if your phone lights up then phoone has original AT library and will work fine on at least 80% of at commands

    PS: ATD means "dial analog number" it will tell the cell phone to dial # but it shoud get error as cell phones use digital connection

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •