-
Notifications
You must be signed in to change notification settings - Fork 452
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bleno server not reacting when win 8 device(client) connects #66
Comments
@velart this is the first time I've heard of someone try from win 8 ... Could you please run with debug on and create a Github Gist for the output:
This way I can see what commands the windows device is sending. Btw, have you tried using an iOS as a peripheral and connecting to it with Windows? |
@sandeepmistry, thank you for your response.
https://gist.github.com/Velart/38ae15a9747aba9475aa I tried to use iOS device as peripheral but Windows don |
@velart the 2nd debug log is very useful! In summary, windows 8 tries to negotiate an MTU of 3300 bytes (0x0d02) and bleno accepts even though the max MTU I've pushed a change to limit the MTU between 23 - 256 bytes (13c2807). Please try the latest from Github, and report back ...
Break down of 2nd debug log:
|
Thank you! It worked like a charm! |
@velart cool! The notebook name is determined from the hostname, to "discover" it, Windows would need to connect to the peripheral and read the 0x2a00 characteristic: https://github.com/sandeepmistry/bleno/blob/master/lib/linux/l2cap-ble.js#L146 Can this issue be closed? It looks like it's a Windows issue after I fixed the MTU range in bleno ... |
Yes, issue can be closed. Thank you for your help. |
Please, publish your patch on official npm server because I use your library in project which installs all dependencies via package.json |
@velart 0.1.8 is published! |
Hi! I
m using bleno to create bluetooth LE server. It
s working well when I connect to server using iOS, Android or Linux devices: all characteristics are seen and free to read or write. On the other hand when im trying to connect from win 8 device, connection process itself goes smoothly but i cant see any characteristics like they appear in this post:http://sviluppomobile.blogspot.ru/2014/02/ble-for-windows-81-part-i.html
Plus callbacks:
bleno.on('accept', function(clientAddress) {
console.log('on -> accept, client: ' + clientAddress);
bleno.updateRssi();
});
bleno.on('disconnect', function(clientAddress) {
console.log('on -> disconnect, client: ' + clientAddress);
});
doesn`t react like they do when im connecting using other devices.
Please help me to identify the problem and establish working ble connection with win 8. If u need I can add my code.
P.S. Sorry for my bad english.
The text was updated successfully, but these errors were encountered: