| Reply | « Previous Thread | Next Thread » |
|
Hi,
I've released a 0.2.2 version of LightBlue, a cross-platform Bluetooth api for Mac OS X, Linux and Python for Series 60. The new version properly fixes the PyS60 3rd Edition builds which were not working in the last version. There is a self-signed sis and also an unsigned freedevcert version available. This release also fixes issues with getting the local device address on 2nd Edition FP1 & FP2 builds. The downloads are available at http://lightblue.sourceforge.net and also the sourceforge page at http://sourceforge.net/projects/lightblue Feel free to email if there are any issues with the new version. |
|
Thank you very much Buzz111
![]() BR Cyke64 pys60 1.4.5,1.9.7,pygame,PyS60 CE on E90 , N810 with Python 2.5.2 and ... last PyS60 1.9.7 with touch ui on 5800 ! pys60 extension modules on http://cyke64.googlepages.com/ |
|
Hey, thanks for checking it works
![]() |
|
Hello,
I'm using LightBlue for a kind of bluetooth scanner. So I call finddevices() continiously. I make sure that it will not be called a second time if the previous scan is still running. But sometimes the finddevices() function does not respond anymore. I would be nice to have a timeout after that the function aborts the BT scan and returns an empty list. Now I have to quit my script an turn off BT and start again if the scan hangs. I also measured the time for a bluetooth scan it varies from 10 to 60 sec. Maybe the timeout could be an optional argument. |
|
Quote:
The 'length' argument is meant to provide a timeout value, but there were some problems getting it working on PyS60. I'll take another look at it. |
|
Quote:
Phone model is Nokia E70. |
|
This is my code. loop is called every second.
Code:
def bt_mainthread(): global bt_busy thread.start_new_thread(bt_scan,()) time.sleep(1) while bt_busy and (bt_scan_time < 120): time.sleep(1) if bt_scan_time > 119: blues.off() time.sleep(5) blues.on() time.sleep(5) bt_busy = False def bt_scan(): global btscan, btquery_list, bt_busy, bt_scan_time bt_busy = True bt_scan_time = 0 try: btscan = lightblue.finddevices() except: btscan = [] btquery_list = [] for i in range(len(btscan)): btquery_list.append(query_bt(btscan[i])) bt_busy = False def loop(): global bt_busy, bt_scan_time if config['BT_SCAN'] > 0 and not bt_busy: bti += 1 if (bti > config['BT_SCAN']*1) and not bt_busy: bti = 0 thread.start_new_thread(bt_mainthread,()) if bt_busy: bt_block += 1 bt_scan_time += 1 |
|
Code:
btscan = lightblue.finddevices() In Pynetmony I switch off BT after 120 seconds and start then a new search, but the old thread is still in memory. PyNetMony |
|
Would it be possible to get the signalstrength in dBm of the found BT devices? And would it be possible to get the TX Power class of the devices (10m or 100m range)?
|
|
I installed lightblue into my 5700 phone without any problem (both ss and dev certificate), but when I run 'import lightblue' under pys60 shell, it raised 'ImportError:No module named lightblue', is there anything wrong? how can I solve this problem?
Thank you. |
|
I got it, sorry.
lightblue-0.3.2-s60-3rdEd_freedevcert.sis + online sign with 13 caps |
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| Rate This Thread | |
| Thread | Thread Starter | Forum | Replies | Last Post |
|---|---|---|---|---|
| [announce] Image Converter for 1st edition | cyke64 | Python | 2 | 2006-12-27 15:51 |
| SDK S60 3rd edition, not working with Visual Studio | shahzadamin | Symbian Tools & SDKs | 5 | 2006-06-16 11:12 |
| 新手求助:VC++6.0&SDK的安装问题 | yinhh001 | Symbian | 7 | 2006-04-20 12:07 |
| 新手提问 | jrliu0757 | Symbian | 7 | 2005-06-13 14:39 |
| While working with the series60 2nd Edition giving problem | sri_nainala | Symbian Networking & Messaging | 1 | 2005-03-02 19:03 |