Sponsored links

Go Back   MP3Car.com > Mp3Car Technical > Software & Software Development > Coders Corner


Reply
 
Share Thread Tools Display Modes
Old 03-21-2009, 06:29 PM   #1
Variable Bitrate
 
lambosprit's Avatar
 
Join Date: Sep 2006
Location: UK
Posts: 447
lambosprit is on a distinguished road
Standalone BlueSoleil wrapper

Due to lots of people asking and the fact I had to do it to get some bits working I have split my mobilephone plugin in two. There is now a RR specific plugin thats still called mobilephone and a new dll that is a wrapper around the BlueSoleil sdk.

I've included a sample VB.net express 2008 project to show how to use it.

It currently has two known problems.

1) For some reason it loses the connection to the phone after about 5 minutes. Dont know why but working on it. If you reconnect its all fine. If you implement an autoconnect function it works fine.
2) The signal and battery strength indicates haven't been implemented yet. Again working on it.

You need to put the BSWrapper dll in the same directory as the program calling it. I didn't need to register it but I had to have the vc redistribution installed if I didn't have vc express installed.

Lastly BlueSoleil version 6.4.236.0 or greater is required

Have fun and any questions just ask.
Attached Files
File Type: rar BSWrapper.rar (18.9 KB, 236 views)
File Type: rar WindowsApplication1.rar (130.0 KB, 280 views)

Last edited by lambosprit; 04-02-2009 at 05:26 PM.
lambosprit is offline   Reply With Quote
Advertisement
 
Advertisement
Sponsored links

Old 03-21-2009, 07:24 PM   #2
Variable Bitrate
 
tempgp's Avatar
 
Join Date: Jun 2007
Posts: 410
tempgp is on a distinguished road
yay sweet
THANKS A LOT!!!!
__________________
Road Camera HD - Backup Camera Plugin + Mobile DVR BlackBox [Completed]
Bluetooth Cell Phone CallerID [Pre-Alpha]
Custom Button Bash Board - Add physical touchable buttons to your CarPC Project
Centrafuse Garmin Mobile PC Skin - GMPC Rebellium Skin
tempgp is offline   Reply With Quote
Old 03-22-2009, 06:29 AM   #3
Variable Bitrate
 
Join Date: Aug 2006
Posts: 257
swift_gti is an unknown quantity at this point
Thanks for your hard work.
Will be checking this out today!
swift_gti is offline   Reply With Quote
Old 03-22-2009, 07:05 AM   #4
Variable Bitrate
 
P3D4T0R's Avatar
 
Join Date: Dec 2006
Location: MA, USA
Posts: 399
P3D4T0R is an unknown quantity at this point
Thanks for your efforts but I cant seem to get the sample to work on my laptop, i get an error: 0x8007000B which it seems from looking around on google that you might need to recompile it for x64, any clue?
__________________
"Mess with the best, die like the rest."
Work Log --> Old Car (Totaled)
Work Log v2 --> New Car (Totaled)
Work Log v3 --> GMC Suburban K2500 (Work in progress)
P3D4T0R is offline   Reply With Quote
Old 03-22-2009, 07:56 AM   #5
Newbie
 
Join Date: Feb 2008
Posts: 29
vtcom is an unknown quantity at this point
it all seems to work ok for me
vtcom is offline   Reply With Quote
Old 03-22-2009, 01:51 PM   #6
Variable Bitrate
 
P3D4T0R's Avatar
 
Join Date: Dec 2006
Location: MA, USA
Posts: 399
P3D4T0R is an unknown quantity at this point
Quote: Originally Posted by vtcom View Post
it all seems to work ok for me

What are you running?
__________________
"Mess with the best, die like the rest."
Work Log --> Old Car (Totaled)
Work Log v2 --> New Car (Totaled)
Work Log v3 --> GMC Suburban K2500 (Work in progress)
P3D4T0R is offline   Reply With Quote
Old 03-23-2009, 07:23 AM   #7
Newbie
 
Join Date: Feb 2008
Posts: 29
vtcom is an unknown quantity at this point
xp sp3 on a ibm t60 laptop
vtcom is offline   Reply With Quote
Old 03-23-2009, 10:37 AM   #8
Terminal flasher
 
Sonicxtacy02's Avatar
 
Join Date: Sep 2004
Location: Woodbridge, VA
Posts: 6,307
Sonicxtacy02 has a spectacular aura aboutSonicxtacy02 has a spectacular aura about
i get the following error :

Unable to load DLL 'BSWrapper.dll': The specified procedure could not be found. (Exception from HRESULT: 0x8007007F)

i have the wrapper file in the release folder as well as the project folder. I attempted to add it as a reference but it didnt do anything. Is there a version of bluesoliel required?
__________________
03 Acura RSX Coupe
Developer of: RRFusion, MovieTimes.NET, (new)RRMail, RRShoutcast, & RRVehicle Maintenance
Currently working on: RRVehicle Maintenance
Sonicxtacy02 is offline   Reply With Quote
Sponsored links
Advertisement
 
Advertisement
Old 03-23-2009, 06:54 PM   #9
Variable Bitrate
 
Join Date: Aug 2006
Posts: 257
swift_gti is an unknown quantity at this point
Just had a chance to play with this latest version, it's working well.. good job!

Only current issues I've noticed are the voice gateway doesn't connect if BT already has a connection to the phone (if you click connect, then connected label changes to 'true' but 'net avail' stays false.. if you disconnect then reconnect it works fine.)

Also for some reason 'hangup' doesn't appear to be working for me, I can dial, answer, get callerid and see incoming calls, but hangup doesn't actually seem to do anything - even though in a call it returns 0 whereas out of call it returns 770..

Great job so far.
swift_gti is offline   Reply With Quote
Old 03-23-2009, 07:01 PM   #10
Variable Bitrate
 
Join Date: Aug 2006
Posts: 257
swift_gti is an unknown quantity at this point
Quote: Originally Posted by Sonicxtacy02 View Post
i get the following error :

Unable to load DLL 'BSWrapper.dll': The specified procedure could not be found. (Exception from HRESULT: 0x8007007F)

i have the wrapper file in the release folder as well as the project folder. I attempted to add it as a reference but it didnt do anything. Is there a version of bluesoliel required?

If you are running the project from within Visual Studio you need to put the dll inside the debug folder not the release one.
Even if you didn't have BS installed I wouldn't have expected you to get that error so I shouldn't think that will be your problem.
Having said that you may get wierd issues if you are running a very old version as I'm fairly sure the HFP service was only implemented fairly recently.

You can get a 15 day trial of the latest version here; http://www.bluesoleil.com/download/d...asp?resoure=43

It may be a good idea if people post which version of the stack they are using when reporting if this is working or not, then we can get an idea of what works.

I've tested it myself with 6.4.245 and 6.4.249 and both work fine.
swift_gti is offline   Reply With Quote
Old 03-24-2009, 05:35 PM   #11
Variable Bitrate
 
lambosprit's Avatar
 
Join Date: Sep 2006
Location: UK
Posts: 447
lambosprit is on a distinguished road
The net_avail is a problem I know of. Its down to the bluesoleil software itsself. It only reports on network availability when the phone is first connected. If you restart the app without disconnecting then bluesoleil doesn't rereport the network status. Its whats causing me the most head aches in converting my mobilephone plugin.

Sonicxtacy02. you can check where its looking for the dll by adding a message box to output the path setting.

add this line

msgbox Environment.GetEnvironmentVariable("path") after the path is set.

the reason to do this is that you cannot set a variable path to a dll but if the dll is in the local path then its found. so I set the path to include where the application is runnin from which is why the dll need to be in the same directory. If you know a better or different way I would be interested.
lambosprit is offline   Reply With Quote
Old 03-25-2009, 09:47 AM   #12
Variable Bitrate
 
lambosprit's Avatar
 
Join Date: Sep 2006
Location: UK
Posts: 447
lambosprit is on a distinguished road
Had a think about the netavail problem.

What does everyone think of automatically disconnectig and reconnecting if the phone is already connected when the app first starts up? The downside for me is you have to accept the audio connection on the phone (but that might just be my phone).
lambosprit is offline   Reply With Quote
Old 03-25-2009, 11:31 AM   #13
Variable Bitrate
 
tempgp's Avatar
 
Join Date: Jun 2007
Posts: 410
tempgp is on a distinguished road
Quote:
downside for me is you have to accept the audio connection on the phone

In your phone settings go to paired phone and select that pair as autorized, paired, permament, automatic - different makes call that diferently but as result of that option phone will auto connect w/ your comp w/o confirmation message
__________________
Road Camera HD - Backup Camera Plugin + Mobile DVR BlackBox [Completed]
Bluetooth Cell Phone CallerID [Pre-Alpha]
Custom Button Bash Board - Add physical touchable buttons to your CarPC Project
Centrafuse Garmin Mobile PC Skin - GMPC Rebellium Skin
tempgp is offline   Reply With Quote
Old 03-25-2009, 06:16 PM   #14
Variable Bitrate
 
lambosprit's Avatar
 
Join Date: Sep 2006
Location: UK
Posts: 447
lambosprit is on a distinguished road
thanks for that tempgp.works a treat
lambosprit is offline   Reply With Quote
Old 03-25-2009, 06:18 PM   #15
Variable Bitrate
 
tempgp's Avatar
 
Join Date: Jun 2007
Posts: 410
tempgp is on a distinguished road
you got it buddy ;-)
__________________
Road Camera HD - Backup Camera Plugin + Mobile DVR BlackBox [Completed]
Bluetooth Cell Phone CallerID [Pre-Alpha]
Custom Button Bash Board - Add physical touchable buttons to your CarPC Project
Centrafuse Garmin Mobile PC Skin - GMPC Rebellium Skin
tempgp is offline   Reply With Quote
Sponsored links
Advertisement
 
Advertisement
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Embedding BlueSoleil - I give up rodweb Road Runner 2 09-20-2008 06:13 PM
BlueSoleil 6.2.227.11 Full for Centrafuse Zo6om Centrafuse 1 09-08-2008 08:54 AM
Bluesoleil not licensed halller Centrafuse 3 05-06-2008 08:54 PM
Shuttle to ship standalone XPC motherboards? Defiler General Hardware Discussion 0 06-05-2007 07:42 AM
BlueSoleil - Bluetooth Wireless Software for Windows!+ BlueSoleil Mobile Partner kyrenia Wireless Communications 0 04-06-2005 12:39 PM



All times are GMT -5. The time now is 09:10 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.2
Copyright © 1999 - 2008 Mp3Car.com Inc.Ad Management by RedTyger
Message Board Statistics