0

Bluefruit EZ-Key - 12 Input Bluetooth HID, button Lag
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Bluefruit EZ-Key - 12 Input Bluetooth HID, button Lag

by kpa62 on Sat Apr 26, 2014 3:01 am

I've dropped about 120.00 on these boards and I'm getting worried. I've wired one up and when I play a emulator like Super Mario there is a slight lag in changing directions. it's making the game unplayable. Is there a firmware update or way to calibrate for a 1 to 1 button pressed?
kpa62
 
Posts: 20
Joined: Thu Apr 24, 2014 1:08 am

Re: Bluefruit EZ-Key - 12 Input Bluetooth HID, button Lag

by adafruit_support_rick on Sat Apr 26, 2014 9:03 am

This is bluetooth. There will always be a slight delay while the information is transmitted.
How much of a lag are you seeing?

adafruit_support_rick
 
Posts: 35095
Joined: Tue Mar 15, 2011 11:42 am
Location: Buffalo, NY

Re: Bluefruit EZ-Key - 12 Input Bluetooth HID, button Lag

by kpa62 on Sat Apr 26, 2014 11:47 pm

The lag is a delayed input depending on buttons pushed it's not normal. I use Bluetooth wiimotes in these controllers prior, there is zero lag like the ada fruit, the issue appears to be a bottle neck of inputs. press 1 key maybe 2 you seem to be fine, try holding a key down, pressing another to jump, another to run, and maybe one for a in game action and the input gets lagged by almost half a second or more, meaning when you try to jump you are off or the press didn't register fast enough and your dead. I can understand the lag over Bluetooth. but if there is suppose to be that much lag, then this chip should not be marketed for a SNES build, which is exactly what I did.
kpa62
 
Posts: 20
Joined: Thu Apr 24, 2014 1:08 am

Re: Bluefruit EZ-Key - 12 Input Bluetooth HID, button Lag

by adafruit_support_rick on Sun Apr 27, 2014 2:27 am

OK - that's not normal lag. I'll check into it.

adafruit_support_rick
 
Posts: 35095
Joined: Tue Mar 15, 2011 11:42 am
Location: Buffalo, NY

Re: Bluefruit EZ-Key - 12 Input Bluetooth HID, button Lag

by kpa62 on Sun Apr 27, 2014 2:54 am

thank you.
kpa62
 
Posts: 20
Joined: Thu Apr 24, 2014 1:08 am

Re: Bluefruit EZ-Key - 12 Input Bluetooth HID, button Lag

by kpa62 on Sun Apr 27, 2014 4:44 am

I've done a lot of testing, lagging I'm experiencing only seems to be with android, the quick response I get on the pc, I can't seem to get out of android. I've tried different emulators, they all seem to be lagging when inputs are sped up. my devices are agalaxy s5 , nexus 7 and ipad mini retina, the ipad mini . I have not been able to get a emu to see yet.
kpa62
 
Posts: 20
Joined: Thu Apr 24, 2014 1:08 am

Re: Bluefruit EZ-Key - 12 Input Bluetooth HID, button Lag

by adafruit_support_rick on Sun Apr 27, 2014 6:14 am

Well, I guess I'm glad to head it's not an EZ-Link problem. I don't know what to tell you about the androids, though. Sorry.

adafruit_support_rick
 
Posts: 35095
Joined: Tue Mar 15, 2011 11:42 am
Location: Buffalo, NY

Re: Bluefruit EZ-Key - 12 Input Bluetooth HID, button Lag

by adafruit2 on Mon Apr 28, 2014 12:47 pm

we know that android can work with the ez-key at fairly high speeds as in this tutorial (DDR sucks if its laggy!)
https://learn.adafruit.com/diy-wireless ... uit-ez-key
but also it isnt multiple-keys at once
but it sounds like its not the EZ-Key tho - could it be something else on the android is running to slow it down? maybe upgrade to 4.4? maybe try mapping the keys to other keycodes (who knows, might help!) not sure what else to suggest :(

Please let us know if you do/dont find a solution!

adafruit2
Site Admin
 
Posts: 18661
Joined: Fri Mar 11, 2005 7:36 pm

Re: Bluefruit EZ-Key - 12 Input Bluetooth HID, button Lag

by kpa62 on Mon Apr 28, 2014 5:53 pm

Here's the solution, I been building Bluetooth controllers for years with wiimotes, i've learned a lot from hacking apart wiimotes including about signal and lag. I have also spent a set amount of years with Android. Heres what my digging into the problem found. I run Android Kit Kat on Both Devices. 2 Facts for new comers. 1 Wiimotes on android won't work past 4.1 due to changes in Bluetooth Stacks, they still haven't fixed it in Android 4.4 kit kat. In Android 4.4 they also created a New bug, Bluetooth was Tuned as well as Wifi, Wifi now blats out a 5ghz band causing issues in some Bluetooth keyboards. This chip unfortunately is a victum as well. How to solve it? turn off Wifi and the problem goes away. I'm still testing but performance has seemed to returned.
kpa62
 
Posts: 20
Joined: Thu Apr 24, 2014 1:08 am

Re: Bluefruit EZ-Key - 12 Input Bluetooth HID, button Lag

by adafruit2 on Mon Apr 28, 2014 9:21 pm

Thanks for the update! I've updated the EZ-Key faq

adafruit2
Site Admin
 
Posts: 18661
Joined: Fri Mar 11, 2005 7:36 pm

Re: Bluefruit EZ-Key - 12 Input Bluetooth HID, button Lag

by inof8or on Wed Apr 30, 2014 2:53 pm

Thats why my wii-motes stopped working! Haha, thats all I was using them for. Had some bouts of lag with my DDR set up and doing songs in challenge mode are a bit tough (though it was probably me being a bit rusty with DDR). Good to know turning wifi off will improve results.

inof8or
 
Posts: 29
Joined: Fri Jan 10, 2014 3:43 pm

Re: Bluefruit EZ-Key - 12 Input Bluetooth HID, button Lag

by kpa62 on Thu May 01, 2014 3:14 am

I'm still doing some testing, looks like nexus is doing ok but s5 and touch wiz still laggy. You can however use a bt/joystick gold app and a CSR Bluetooth dongle with OTG and bring wiimotes back to life on android. As for blue fruit, It hates touchwiz, wiimotes were the same. it seems Android with no overlays pure google and wifi off are the way to go.
kpa62
 
Posts: 20
Joined: Thu Apr 24, 2014 1:08 am

Re: Bluefruit EZ-Key - 12 Input Bluetooth HID, button Lag

by Amtias on Thu Jan 29, 2015 3:34 pm

Seems not working on me :(
I did some testing on my Nexus 5 (5.0.1) and Motorola's Moto G (4.4.2). On both of them I start to turning off the WiFi and the turning on the BT, and it works with no lag. But only for 10 seconds or so... After that, don't know why but the controller goes laggy again. Then I turn off and on the BT and the controller and works for another 10 secs.

I am very frustrated...

Amtias
 
Posts: 8
Joined: Mon Jan 12, 2015 9:52 am

Re: Bluefruit EZ-Key - 12 Input Bluetooth HID, button Lag

by inof8or on Fri Feb 13, 2015 10:05 am

I don't know if there is an easy solution to this, a few months ago I tried to make a game controler like Noe and Pedro recently had on 3D handouts. Unfortunaly the lag was way to great to be usable on my nexus 7 and galaxy s4. Works great on my Linux machine so this is definately more of an Android problem then a problem with the EZ-Key itself.

If that is truely the case there is very little Adafruit can do. Even if someone fixes the Android bluetooth stack the update still need to pushed out to all these devices.

Has anyone had good expeiriences with EZ-Keys + android devices? Under what conditions?
I did have it working with the DDR pad and the Nexus 7, but there have a few system updates since I last used it.
game pad + DS/GBA emulator has not been effective enough to consider as working.

inof8or
 
Posts: 29
Joined: Fri Jan 10, 2014 3:43 pm

Please be positive and constructive with your questions and comments.