Помощь - Поиск - Пользователи - Календарь
Полная версия этой страницы: hc-05 (hc-04, bc4 bluecore4, bc417)
Форум разработчиков электроники ELECTRONIX.ru > Интерфейсы > Форумы по интерфейсам > Wireless/Optic
neolead
Уважаемые электронщики.
Не далее как пару недель назад приобрёл чип на hc-05 плате.
Разобрался что к чему, в xide переделал прошивку hid-keyboard.
Сделал необходимые обработчики!

НО ТЕПЕРЬ ВОПРОС!!!
с компьютера bt свистком подключаюсь к hid устройству,ввожу pin, профит. Подключается,работает.

А вот с android,iphone проблема. Они видят hid устройство, но при попытке подключиться - пишет не верный pin и не предлагая ввести - отключается.


Что делать???
пробовал и с no_security
и так...
ConnectionSmSetSecurityLevel(0,1,ssp_secl4_l0,TRUE,FALSE,FALSE);
ConnectionSmSetSecurityLevel(0,3,ssp_secl4_l3,TRUE,TRUE,FALSE);
ConnectionSmSetSecurityMode(&theApp->task, sec_mode1_non_secure, hci_enc_mode_pt_to_pt);

Требуется (как я понял) Принудительная legacy авторизация с запросом пина.


Мужчины, помогите словом или делом..
я вконтакте vk.com/neolead
или на janvarry@gmail.com
alx125
С Android надо разбираться...

А что касается iphone, то и не должно работать

hc-05 и "bt свисток" это BT v2 (2.1, EDR). (Хотя бывают "bt свисток" с v3 (HS) и v4 (BLE))
Apple же проводит политику, что с помощью BT v2 их гаджеты смогут соединяться только с их чипами!
Где-то была ссылка, но быстро найти не смог

Для BT Low Energy (BLE) этого ограничения нет. Но уже hc-05 не позволит :-)
neolead
Цитата(alx125 @ Dec 20 2015, 06:12) *
С Android надо разбираться...

А что касается iphone, то и не должно работать

hc-05 и "bt свисток" это BT v2 (2.1, EDR). (Хотя бывают "bt свисток" с v3 (HS) и v4 (BLE))
Apple же проводит политику, что с помощью BT v2 их гаджеты смогут соединяться только с их чипами!
Где-то была ссылка, но быстро найти не смог

Для BT Low Energy (BLE) этого ограничения нет. Но уже hc-05 не позволит :-)


iphone видет всё что нужно в режиме hid,и андроид видет так же.
alx125
Цитата(neolead @ Jan 14 2016, 20:27) *
iphone видет всё что нужно в режиме hid,и андроид видет так же.


Очень хорошо, что видит
rolleyes.gif
Но можно для понимания перевести данный текст:
"..
There is another huge difference between Bluetooth and Bluetooth low energy for iPhone and iPad enthusiasts. Bluetooth access is covered by Apple’s MFi program, which requires anyone creating a Bluetooth device to buy and use a special Apple chip. Apple routinely rejects all apps that use a Bluetooth device except for the original app developed by the vendor for the hardware. Even if you know exactly how to connect to a Bluetooth device and have approval from the device’s creator, Apple will almost certainly reject your Bluetooth app if you submit it to the App Store. On the other hand, the MFi program does not cover Bluetooth low energy devices or apps. Apps that support Bluetooth low energy devices are routinely accepted for distribution on the App Store.
.."

Вдруг пригодится
neolead
Цитата(alx125 @ Jan 15 2016, 02:59) *
Очень хорошо, что видит
rolleyes.gif
Но можно для понимания перевести данный текст:
"..
There is another huge difference between Bluetooth and Bluetooth low energy for iPhone and iPad enthusiasts. Bluetooth access is covered by Apple’s MFi program, which requires anyone creating a Bluetooth device to buy and use a special Apple chip. Apple routinely rejects all apps that use a Bluetooth device except for the original app developed by the vendor for the hardware. Even if you know exactly how to connect to a Bluetooth device and have approval from the device’s creator, Apple will almost certainly reject your Bluetooth app if you submit it to the App Store. On the other hand, the MFi program does not cover Bluetooth low energy devices or apps. Apps that support Bluetooth low energy devices are routinely accepted for distribution on the App Store.
.."

Вдруг пригодится



Ок, активирую hid на bluecore(типа клавиатура на BT чипе, убираю авторизацию) iphone, ipad подключается.
Доктор, ЧЯДНТ?
Для просмотра полной версии этой страницы, пожалуйста, пройдите по ссылке.
Invision Power Board © 2001-2024 Invision Power Services, Inc.