Thread: .net Bluetooth Mobilephone Plugin

  1. #1141
    Newbie
    Join Date
    Jul 2009
    Posts
    6
    @Lambosprit

    Thatīs not what i want to hear....

    [REDIRECT]There is a label called mobilephone_batterystrength which returns a percentage based on the max value set in the ini and the returned number from the phone.[/REDIRECT]

    I just want to know how can i view the value of "....the returned number from the phone."
    Or how can i view the value of "mobilphone_batterystrngth" that i can manage the "....ImageCount=XX" in the ini.

    I found a little prog "tapir-g monitor", that shows the battery and signal strength.
    And so i found some infos about phones, that i can use the standard AT-commands for many phones.

    i.e. "AT+CSQ" is for signalstrength (inverse in percent), "AT+CBC" is for batterystrength(X,YY: X=0-Battery: X=1-charge).
    The "YY" is the batterystrength.
    And there i found out that my sony ericsson K770i have for battery a fullrange from 0-100.
    The Nokia phones have 20,40,60,80,100.

    Also the battery-icons of the skin are 5. MOBILEPHONE_BATTERY_1 (empty) ....... MOBILEPHONE_BATTERY_5 (full)
    I thought that when my phone is full (100) and must display the (..._BATTERY_5) also 5, then the "BatteryImageCount=" must be 20.
    But it dont work.....

    I think when someone can write a .net-dll or a VB who sends these AT-commands to the phone and the result divided by 5 (cause the battery and signal-gif,png of a skin are 5) will lot people thanks that works the signal and battery in the skin.....

    The last days i tried to learn visual basic to write a .net for managing battery and signal strength.
    But this s**t .net is so difficult for me, iīm absolut not a programmer.....

    I hope i learn it fast to solve the problem....

  2. #1142
    Low Bitrate mnwcsult's Avatar
    Join Date
    Mar 2007
    Location
    Maryland, USA
    Posts
    90

    DFX5 signal and battery strength indicators

    Hi I was looking through the mobilephone_readme.txt file and read about the Special Indicators "mobilephone_batterystrength" and "mobilephone_signalstrength". My question is how do you make use of them in the DFX5 mobilephone.skin?

    Here is an excerpt from the DFX5 mobilephone.skin

    L,167,472,138,32,#DFX1R#,#DFX1G#,#DFX1B#,20,#DFXFo nt#,"=Add","center"
    L,17,472,138,32,#DFX1R#,#DFX1G#,#DFX1B#,20,#DFXFon t#,"=Delete","center"
    L,246,-1,81,17,#DFX1R#,#DFX1G#,#DFX1B#,15,#DFXFont#,"=Sig nal:","RIGHT"
    L,9,-1,91,17,#DFX1R#,#DFX1G#,#DFX1B#,15,#DFXFont#,"=Bat tery:","RIGHT"
    L,508,0,126,17,#DFX1R#,#DFX1G#,#DFX1B#,15,#DFXFont #,"mobilephone_connected","LEFT"
    L,15,36,138,32,#DFX1R#,#DFX1G#,#DFX1B#,20,#DFXFont #,"=Contacts","center"
    L,509,164,77,45,#DFX1R#,#DFX1G#,#DFX1B#,30,#DFXFon t#,"=1","center"

    What do I actually change, assuming that I am replacing =Signal: and =Battery:

    I also spent a lot of time trying figure out where the images being referred to actually reside and lo and behold found them in the folder "C:\Program Files\RideRunner\Skins\BMW E36" that are part of the mobilephone.NET install.

    I copied them to ..\Skins\DFX5\Indicators folder.

    Afterwords I went back to the "C:\Program Files\RideRunner\plugins\Mobilephone.NET" folder to modify the mobilephone.ini file section

    [PHONESTATUS]
    # How often is battery and signal updated in milli seconds.
    #Also checks for connection or not and whether ringing to auto answer.
    Update=10000
    BatteryWarningLevel=10
    BatteryImageCount=6 <-- originally 5
    BatteryImageExt=gif <-- originally jpg
    SignalImageCount=6 <-- originally 5
    SignalImageExt=gif <-- originally jpg
    #Path to image files for battery and signal strengh
    ImagePath=C:\Program Files\RideRunner\Skins\DFX5\Indicators

    Fascinating said the Vulcan, it is amazing the revelations that glean from the mere act of reading.

    That all I got, if someone would chime in on the use of the special indicators I would greatly appreciate it.


  3. #1143
    Constant Bitrate Jon-G's Avatar
    Join Date
    Jun 2005
    Location
    Chesterfield, UK
    Posts
    153
    Quote Originally Posted by lambosprit View Post
    Not a bug, just no way to do it. I've tried for ages to create an event for when the call is ended by the other party and haven't found an answer I'm afraid.
    @ lambospirit.

    I was playing with the plugin again today and noticed that If I leave the incall screen up (i.e not clicking the hangup button to fire the exit commend) once the incoming call is ended by the other party, after a few seconds you unmute the radio again. This got me thinking that you must have some code in there that is triggering this event, so could you not tie in the hide skin with this event trigger?

    Just to thicken the plot a little, I have added the code to the pickup and hangup buttons to unmute and mute the mic attached to my soundcard, so if you were to end the screen programatically, we would need some way of muting the mic again for ppl who are using it in this configuration. Just had a look through the list of skin commands that come with the skin editor and there doesnt seem to be a onClose event per skin that I could just put the mic mute in there...

  4. #1144
    Newbie
    Join Date
    Jul 2009
    Posts
    6
    @ Lambosprit

    I have experimental somethings today and i have found a little bug.
    I just wanted to test something with the "RR Example Plugin (VB.NET)", i started VB 2008, and then i minimize it to start RR.
    After testing i restart RR again, and while the VB 2008 runs behind my cpu-power goes up, and RR dont send the "hang-up"-command to the phone. I saw it cause my "Bluetooth"-icon was green (connected to phone) after RR closes.
    And after RR restarts he shows the "battery-indicator".

    So i thought something goes wrong. Then i experiment with the "RR-Skinner-Tool".

    My test at the end was:
    In the MobilePhone.ini under "[PHONESTATUS]" i let the "ImagePath=" empty

    My ini shows this.....

    [PHONESTATUS]
    .....
    .....
    .....
    ImagePath=


    Also i start "RR-Skinner-tool" clicked on "Variable" wrote "MOBILEPHONE_BATTERYSTRENGTH" in the field and clicked on "Get Contents".

    The result was:

    \\MOBILEPHONE_BATTERY_*.gif

    The 2 "\\".
    When i test to write "ImagePath=C:" then the result in Skinner-Tool is "C:\\MOBILEPHONE_BATTERY_*.gif ".
    Thats whats going wrong....
    And thats in all skins i tested, also its not a bug from the skin......

    Can u fix it??

  5. #1145
    Maximum Bitrate
    Auto Apps:loading...
    lambosprit's Avatar
    Join Date
    Sep 2006
    Location
    UK
    Posts
    786
    Quote Originally Posted by LopoTRI View Post
    I just want to know how can i view the value of "....the returned number from the phone."
    thats what I was telling you. Look for the mobilephone_batterystrength in the rr debug file and you'll see a value on the end. If your phone is charged fully you'll see the max value to set.
    And so i found some infos about phones, that i can use the standard AT-commands for many phones.

    i.e. "AT+CSQ" is for signalstrength (inverse in percent), "AT+CBC" is for batterystrength(X,YY: X=0-Battery: X=1-charge).
    The "YY" is the batterystrength.
    And there i found out that my sony ericsson K770i have for battery a fullrange from 0-100.
    The Nokia phones have 20,40,60,80,100.
    well you could try using the atsm part of the plugin.

  6. #1146
    Constant Bitrate Jon-G's Avatar
    Join Date
    Jun 2005
    Location
    Chesterfield, UK
    Posts
    153
    Hey lambo, any ideas on my post?

  7. #1147
    Maximum Bitrate
    Auto Apps:loading...
    lambosprit's Avatar
    Join Date
    Sep 2006
    Location
    UK
    Posts
    786
    Quote Originally Posted by mnwcsult View Post
    Hi I was looking through the mobilephone_readme.txt file and read about the Special Indicators "mobilephone_batterystrength" and "mobilephone_signalstrength". My question is how do you make use of them in the DFX5 mobilephone.skin?
    the answer is to use an indicator. This is the line we use in the bmw e36 skin I07,733,33,47,34,"FILE;$mobilephone_batterystrengt h$"
    BUT you'll have to amend it to work in dfx5 by changing the position details of the indicator so it somes in the right place on the skin.

    ---------- Post added at 12:26 AM ---------- Previous post was at 12:24 AM ----------

    Quote Originally Posted by Jon-G View Post
    @ lambospirit.

    I was playing with the plugin again today and noticed that If I leave the incall screen up (i.e not clicking the hangup button to fire the exit commend) once the incoming call is ended by the other party, after a few seconds you unmute the radio again.
    strange. it shouldn't do that. I'll see why its doing it and think if I can use this "feature" for an event.

  8. #1148
    Newbie
    Join Date
    Nov 2010
    Posts
    1
    Hi,

    I'm trying to install the plugin for few hours but it just doesnt work..
    i configure the ini file for my device, reinstall the plugin and register the dll , but still nothing works.

    i run the stanalone mobilephone.net application and its works perfectly.

    this is part of my rr debug.txt content:


    3/18/2011 10:47:46 PM: Enter Exec: False, menu.skin, "ONBTNPRESS||LOAD;mobilephone.skin;", False
    3/18/2011 10:47:46 PM: Que Exec: True, menu.skin, "ONBTNPRESS||LOAD;mobilephone.skin;", False
    3/18/2011 10:47:46 PM: Que Exec: True, menu.skin, "LOAD;mobilephone.skin;", False
    3/18/2011 10:47:46 PM: Executing: LOAD;mobilephone.skin;
    3/18/2011 10:47:47 PM: Enter Exec: True, mobilephone.skin, , False
    3/18/2011 10:47:47 PM: Que Exec: True, mobilephone.skin, "ONSCREENCHANGE", False
    3/18/2011 10:47:47 PM: Leave Exec: False, mobilephone.skin, ONSCREENCHANGE, False
    3/18/2011 10:47:49 PM: Enter Exec: False, mobilephone.skin, "ONBTNPRESS||mobilephone_1", False
    3/18/2011 10:47:49 PM: Que Exec: True, mobilephone.skin, "ONBTNPRESS||mobilephone_1", False
    3/18/2011 10:47:49 PM: Que Exec: True, mobilephone.skin, "mobilephone_1", False
    3/18/2011 10:47:49 PM: Executing: mobilephone_1
    3/18/2011 10:47:49 PM: Command not executed: mobilephone_1


    please advice ,cause in going crazy..

  9. #1149
    Newbie
    Join Date
    Jul 2009
    Posts
    6
    @Lambosprit

    First, Do you read my post from "03-17-2011 08:07 AM" ??

    Can u tell me when i connect with "Blue" why it shows me under "Label" in the "Skinner-Tool" when i "Get Content" for "MOBILEPHONE_SIGNALSTRENGTH" or "MOBILEPHONE_BATTERYSTRENGTH" the Chr(129) and NOT a value 1-5??

    But sometimes when i restart RR, and RR dont sent the "ByeBye" command (my Bluetooth stays green- connected) then the "Label" in "Skinner-Tool" shows a value 1-5 and then in the phone-skin he shows the Battery and Signal.
    But this cames from 10-15 restarts 1 time.


    I have tested with "ATSM", RR shows the Labels, reads my phonebook (with "Blue" i dont see my phonebook, only when i make entries in MOBILEPHONE_PC.txt), but the first bug is RR dont send "MOBILEPHONE_HANGUP" command when i click the "red-phone", the call i made continues.
    And my phone is connected normal, not "hands-free"-mode how it connects with "blue", so i can only hear and speak with the phone and not with RR.

  10. #1150
    Low Bitrate Spikemonkey's Avatar
    Join Date
    Aug 2009
    Location
    Virginia
    Posts
    111
    Hello, all! been a while for me, as when I updated my previous phone, an HTC Hero, to Android 2.1 it broke my ability to use this lovely plug-in. I recently aquired an HTC Desire with Android 2.2 and I have my car phone back again! Anyway, I would like to update to the latest version; however, I am having the same problem as post #1131. Also, is there any way to raise the volume of the person you are speaking to independent of the rest of the audio? I have to really crank my main volume to hear the person, but the rest of my sound is too loud when I get done. Thanks!
    You are never done installing a CarPC.

Similar Threads

  1. nGhost 2.0.0 Final is out!
    By tripzero in forum LinuxICE
    Replies: 53
    Last Post: 07-16-2009, 10:16 PM
  2. Bluetooth problems their solutions
    By Clintebb in forum Bluetooth Hardware
    Replies: 9
    Last Post: 12-26-2007, 09:03 AM
  3. Hello World plugin
    By paulpv in forum CF Plugins
    Replies: 5
    Last Post: 06-08-2006, 11:07 PM
  4. How do I use the Base plugin sources ?
    By guino in forum RR FAQ
    Replies: 1
    Last Post: 04-24-2006, 04:43 PM

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
  •