Windows 10 / Desktop Support - PREKNOWN Not working

23 views
Skip to first unread message

Chris Keilitz

unread,
Dec 29, 2018, 11:05:09 AM12/29/18
to bluecove-developers
I'm just getting started and apologize upfront for my ignorance.  I'm building a Java desktop app on Windows and want to connect to a bluetooth scale. I'm using bluecove-2.11.jar and the Java-SE-1.8 (jdk1.8.0_112) 64-Bit.  I cannot seem to get the retrieveDevices devices call with DiscoveryAgent.PREKNOWN to work.  

The local device works fine, pulls back the device info.
localDevice = LocalDevice.getLocalDevice(); // works fine...pulls back the local device info.


The PREKNOWN call returns null, while the CACHED pulls back a few old devices.

remoteDevices = discoveryAgent.retrieveDevices(DiscoveryAgent.PREKNOWN);

remoteDevices = discoveryAgent.retrieveDevices(DiscoveryAgent.CACHED);

I'm sure I'm missing something fundamental...hoping one of you can help.  

evans ryanada

unread,
Dec 29, 2018, 12:58:31 PM12/29/18
to bluecove-...@googlegroups.com
hello what are aspiring to achieve

--
--
You received this message because you are subscribed to the Google
Groups "bluecove-developers" group.
For more options, visit this group at
http://groups.google.com/group/bluecove-developers
---
You received this message because you are subscribed to the Google Groups "bluecove-developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bluecove-develo...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Chris Keilitz

unread,
Dec 29, 2018, 8:22:16 PM12/29/18
to bluecove-developers
I'm adding on to an existing...established Java app.  I'd like the ability to read weight values from a lower cost Bluetooth (kitchen style) scale, as well as perform a tare command (zero out the weight).  Right now the application is leveraging a USB/serial interface to an expensive scale/balance.

To unsubscribe from this group and stop receiving emails from it, send an email to bluecove-developers+unsub...@googlegroups.com.

evans ryanada

unread,
Jan 1, 2019, 10:25:03 AM1/1/19
to bluecove-...@googlegroups.com
Sorry for late response i have been i tired up in rural areas of kenya where internet access is limited.

I tried to figure out how i can help and i thought it would be noble you try bluecove snapshot.2.1.1.jar

Kindly can we chat on WhatsApp +254706384625
On Sun, 30 Dec 2018 04:22 Chris Keilitz, <kei...@gmail.com> wrote:
I'm adding on to an existing...established Java app.  I'd like the ability to read weight values from a lower cost Bluetooth (kitchen style) scale, as well as perform a tare command (zero out the weight).  Right now the application is leveraging a USB/serial interface to an expensive scale/balance.
Morning


On Saturday, December 29,a 2018 at 12:58:31 PM UTC-5, evans ryanada wrote:
hello what are aspiring to achieve

On Sat, 29 Dec 2018 19:05 Chris Keilitz, <kei...@gmail.com> wrote:
I'm just getting started and apologize upfront for my ignorance.  I'm building a Java desktop app on Windows and want to connect to a bluetooth scale. I'm using bluecove-2.11.jar and the Java-SE-1.8 (jdk1.8.0_112) 64-Bit.  I cannot seem to get the retrieveDevices devices call with DiscoveryAgent.PREKNOWN to work.  

The local device works fine, pulls back the device info.
localDevice = LocalDevice.getLocalDevice(); // works fine...pulls back the local device info.


The PREKNOWN call returns null, while the CACHED pulls back a few old devices.

remoteDevices = discoveryAgent.retrieveDevices(DiscoveryAgent.PREKNOWN);

remoteDevices = discoveryAgent.retrieveDevices(DiscoveryAgent.CACHED);

I'm sure I'm missing something fundamental...hoping one of you can help.  

--
--
You received this message because you are subscribed to the Google
Groups "bluecove-developers" group.
For more options, visit this group at
http://groups.google.com/group/bluecove-developers
---
You received this message because you are subscribed to the Google Groups "bluecove-developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bluecove-develo...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
--
You received this message because you are subscribed to the Google
Groups "bluecove-developers" group.
For more options, visit this group at
http://groups.google.com/group/bluecove-developers
---
You received this message because you are subscribed to the Google Groups "bluecove-developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bluecove-develo...@googlegroups.com.

Chris Keilitz

unread,
Jan 14, 2019, 1:18:17 PM1/14/19
to bluecove-...@googlegroups.com
I've been desperately seeking a Bluetooth Java library that works with Windows 10 on a fairly current version of Java e.g., v8+.  I've used the BlueCove library version 2.1.1-SNAPSHOT on winsock, but it's last update was more than 10 years ago and remote discovery doesn't work. It finds the full local device info, but doesn't find anything for remote devices (see dump below).  I new to Bluetooth, so I could be doing something wrong, but I've tried literally dozens of examples available on the web and all respond in the same way.

My question is, do you know of any current, supported Bluetooth Java library that works on Microsoft Windows, for a Java desktop application?  if so, have you tested the Java / desktop app recently in terms of its ability to discover remote devices?

BlueCove version 2.1.1-SNAPSHOT on winsock
OPERATING SYSTEM: Windows 10
JAVA VERSION: 1.8.0_112
JAVA CLASSPATH: C:\Users\Public\workspace\Scale\bin;C:\Users\Public\workspace\Scale\lib\bluecove-2.1.1.jar
LOCAL BLUETOOTH DEVICE:
Address = 3423871D3F38
FriendlyName = DESKTOP-PC
bluetooth.api.version = 1.1.1
bluetooth.master.switch = false
bluetooth.sd.attr.retrievable.max = 256
bluetooth.connected.devices.max = 7
bluetooth.l2cap.receiveMTU.max = 0
bluetooth.sd.trans.max = 7
bluetooth.connected.inquiry.scan = true
bluetooth.connected.page.scan = true
bluetooth.connected.inquiry = true
Remote device (PREKNOWN) is not retrievable.
Remote device (CACHED):
Device Name:  |  Bluetooth Address: 38B1DBBC8878
BlueCove stack shutdown completed

evans ryanada

unread,
Jan 14, 2019, 4:27:44 PM1/14/19
to bluecove-...@googlegroups.com
i will send you Bluetooth spp java desktop working app
Reply all
Reply to author
Forward
0 new messages