It is currently Wed Jul 06, 2011 8:18 pm

All times are UTC - 8 hours




 Page 1 of 1 [ 9 posts ] 
Author Message
 Post subject: unable to run compileandload.py on mac
PostPosted: Mon Feb 28, 2011 9:26 am 

Joined: Mon Feb 28, 2011 9:15 am
Posts: 2
Location: Philadelphia, PA
I have downloaded pulse_sdk104.zip and tried to follow the instructions to get my phone started and have hit the following snags:

1) you ship *.pyc files with your sdk so that caused my first failure since I run a not-stock python on my Mac - fixed by removing *.pyc but...
2) you only ship tools/bt_python/__init__.pyc so once that was cleared to solve issue 1 for me, the bt_python module was broken

Once I cleared up the above it worked, well almost. You should add to the web page a small note to convert the bluetooth device address from dash sep's to colon seps. The Mac dialog shows them as xx-xx-xx-xx-xx but the bt_comm code seems to require xx:xx:xx:xx:xx - small nit for sure but it caused me a couple head-scratching moments until I looked at the example again.

thanks!


Offline
 Profile  
 
 Post subject: Re: unable to run compileandload.py on mac
PostPosted: Mon Feb 28, 2011 11:58 am 

Joined: Mon Feb 21, 2011 10:21 am
Posts: 10
Location: Pittsburgh
Hi there,

Got my watch today on the mail. I'm also having trouble getting the watch to actually work at all. I've left the watch charging for a while, and it displays the bluetooth information. I've plugged it to my laptop (Macbook running 10.6.6) and downloaded the SDK. I've read the guide where you have to start the L2CAPServer and then compile the python script to get it going.When trying to run L2CAPServer, all I get is this:

Quote:
Created InpulseBtConnection
avetanaBluetooth version 1.3.18a
Local name df
Local address 00-25-00-5c-1a-8b
Device class 0
Valid until 20.12.2007
License check error 0 License expired 20.12.2007

Exception while accessing bluetooth: javax.bluetooth.BluetoothStateException: License expired 20.12.2007

inPulse L2CAPServer Started v1.0.1
Waiting for a connection...
stopped running


I'm assuming there is some sort of a problem with avetanaBluetooth stack, but I'm unsure.

Please advise?



_________________
Denzil

Web: denzilferreira.com | @denzilferreira
Offline
 Profile  
 
 Post subject: Re: unable to run compileandload.py on mac
PostPosted: Mon Feb 28, 2011 12:07 pm 

Joined: Mon Feb 28, 2011 9:15 am
Posts: 2
Location: Philadelphia, PA
dferreira wrote:
Hi there,

Got my watch today on the mail. I'm also having trouble getting the watch to actually work at all. I've left the watch charging for a while, and it displays the bluetooth information. I've plugged it to my laptop (Macbook running 10.6.6) and downloaded the SDK. I've read the guide where you have to start the L2CAPServer and then compile the python script to get it going.When trying to run L2CAPServer, all I get is this:

Quote:
Created InpulseBtConnection
avetanaBluetooth version 1.3.18a
Local name df
Local address 00-25-00-5c-1a-8b
Device class 0
Valid until 20.12.2007
License check error 0 License expired 20.12.2007

Exception while accessing bluetooth: javax.bluetooth.BluetoothStateException: License expired 20.12.2007

inPulse L2CAPServer Started v1.0.1
Waiting for a connection...
stopped running


I'm assuming there is some sort of a problem with avetanaBluetooth stack, but I'm unsure.

Please advise?


Are you using the very latest SDK version? This forum post seems to point to a recent problem/fix: viewtopic.php?f=6&t=50


Offline
 Profile  
 
 Post subject: Re: unable to run compileandload.py on mac
PostPosted: Mon Feb 28, 2011 12:10 pm 

Joined: Mon Feb 21, 2011 10:21 am
Posts: 10
Location: Pittsburgh
Yes, I'm using the latest version of the SDK 1.0.4.



_________________
Denzil

Web: denzilferreira.com | @denzilferreira
Offline
 Profile  
 
 Post subject: Re: unable to run compileandload.py on mac
PostPosted: Mon Feb 28, 2011 1:36 pm 
User avatar

Joined: Tue Feb 15, 2011 1:00 am
Posts: 60
You seem to have avetanaBluetooth version 1.3.18a installed on your computer.

L2CAPServer tries to use BlueCove (with is included with L2CAPServer and is free).

I imagine that if you remove avetanaBluetooth (which seems to have expired anyway), it will work.

I'll look into why L2CAPServer tried to use avetanaBluetooth instead of BlueCove.

Thanks for the report.


Offline
 Profile  
 
 Post subject: Re: unable to run compileandload.py on mac
PostPosted: Mon Feb 28, 2011 2:34 pm 

Joined: Mon Feb 21, 2011 10:21 am
Posts: 10
Location: Pittsburgh
It's really strange... I've looked everywhere and I can't find any reference to Avetana anywhere on my computer. Is there a parameter I can use on the L2CAPServer to specify the bluetooth stack?

Thanks!



_________________
Denzil

Web: denzilferreira.com | @denzilferreira
Offline
 Profile  
 
 Post subject: Re: unable to run compileandload.py on mac
PostPosted: Mon Feb 28, 2011 2:59 pm 

Joined: Mon Feb 21, 2011 10:21 am
Posts: 10
Location: Pittsburgh
I was digging more into this... here is the output if I run it on my system using -d64 (forcing 64bits):

Quote:
Created InpulseBtConnection
Could not load own library /var/folders/He/He9nkdWyE+Gv0HxrHk7JRU+++TI/-Tmp-/abt56215/libavetanaBT.jnilib. Will try from ld.library.path
Exception in thread "main" java.lang.UnsatisfiedLinkError: no avetanaBT in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1754)
at java.lang.Runtime.loadLibrary0(Runtime.java:823)
at java.lang.System.loadLibrary(System.java:1045)
at de.avetana.bluetooth.util.LibLoader.loadLib(LibLoader.java:150)
at de.avetana.bluetooth.util.LibLoader.loadBTLib(LibLoader.java:48)
at de.avetana.bluetooth.stack.AvetanaBTStack.<init>(AvetanaBTStack.java:58)
at de.avetana.bluetooth.stack.AvetanaBTStack.<init>(AvetanaBTStack.java:52)
at de.avetana.bluetooth.stack.BluetoothStack.getBluetoothStack(BluetoothStack.java:94)
at javax.bluetooth.LocalDevice.<init>(LocalDevice.java:59)
at javax.bluetooth.LocalDevice.getLocalDevice(LocalDevice.java:72)
at com.InpulseBtConnection.<init>(InpulseBtConnection.java:14)
at com.main.main(main.java:6)


What this tells me is that L2CAPServer is indeed dependent on Avetana Bluetooth stack...



_________________
Denzil

Web: denzilferreira.com | @denzilferreira
Offline
 Profile  
 
 Post subject: Re: unable to run compileandload.py on mac
PostPosted: Mon Feb 28, 2011 3:13 pm 
User avatar

Joined: Tue Feb 15, 2011 1:00 am
Posts: 60
You need to run it with -d32 (as specified in the guide), forcing 32 bits as BlueCove hasn't been compiled for 64 bit.

If you contact [email protected] I'd be happy to send you the source if you'd like to mess around with it.

I would try removing that other bluetooth stack and running it with -d32 first though.


Offline
 Profile  
 
 Post subject: Re: unable to run compileandload.py on mac
PostPosted: Mon Feb 28, 2011 3:45 pm 

Joined: Mon Feb 21, 2011 10:21 am
Posts: 10
Location: Pittsburgh
Thanks Jon for sending the source.

After importing the project into Eclipse, I managed to locate where Java was loading Avetana bluetooth library. Just in case someone else has the same problem, just go to /System/Library/Java/Extensions and look for AvetanaBluetooth.jar file or libavetanaBT.jar and remove it. You should have only bluecoveXXX.jar library and you should be good to go.



_________________
Denzil

Web: denzilferreira.com | @denzilferreira
Offline
 Profile  
 
Display posts from previous:  Sort by  
 Page 1 of 1 [ 9 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: