【Arduino101资讯】CurieBLE库更新,支持中心设备-Arduino中文社区 - Powered by Discuz!

Arduino中文社区

 找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 5542|回复: 9

【Arduino101资讯】CurieBLE库更新,支持中心设备

 关闭 [复制链接]
发表于 2016-12-22 22:01 | 显示全部楼层 |阅读模式
在2016年初,我做的101介绍中,我写了其只支持做BLE外围设备。但最近的代码更新,已经使得其可以做中心设备了。
不过IDE中的1.0.7版本还不能支持,要使用支持中心设备的CurieBLE,需要在github获取库的最新版。

项目地址如下:
https://github.com/01org/corelibs-arduino101


2016年12月22日


具体使用方法见楼下 hmjack2008 的回复
发表于 2016-12-26 22:55 | 显示全部楼层
本帖最后由 hmjack2008 于 2016-12-26 22:59 编辑

这个CurieBLE库 版本号是 2.0.0
https://github.com/01org/corelibs-arduino101/releases/tag/2.0.0

可以使用Boards Manager安装
https://github.com/01org/corelibs-arduino101/releases/download/2.0.0/package_2.0.0-rc4_index.json
ardu101_C20.png

!! BLE firmware version is not in sync with CurieBLE library !!
这是要求BLE 固件库版本与CurieBLE library 匹配,否则上传程序时会出现的错误.

因此还需要更新Arduino 101固件, 对映 CurieBLE库2.0.0的固件 是ble_flashpack_v3
https://github.com/01org/corelibs-arduino101/releases/download/2.0.0/flashpack_ble_v3.tar.bz2

可以使用Tools/Burn Bootloader燒入固件.
若要使用旧版(1.0.7)库文件, 还要还原回旧的Arduino 101固件.
ardu101_F20.png


评分

参与人数 1金币 +10 收起 理由
syl312 + 10 很给力!

查看全部评分

发表于 2016-12-23 09:22 | 显示全部楼层
谢谢分享                    
发表于 2016-12-27 13:05 | 显示全部楼层
更新库后编译里面的例子就不能通过了,我是简单地把库文件替换原来1.0.7目录里的文件,是这种方法不对吗?请问怎么做才是正确的?谢谢!
发表于 2016-12-27 13:10 | 显示全部楼层
hmjack2008 发表于 2016-12-26 22:55
这个CurieBLE库 版本号是 2.0.0
https://github.com/01org/corelibs-arduino101/releases/tag/2.0.0

请问怎么才能出现图中2.0.0的选项呢?另外那个json文件下载了怎么用?怎么打开?谢谢!
发表于 2016-12-27 14:08 | 显示全部楼层
本帖最后由 hmjack2008 于 2016-12-27 14:10 编辑
ntwhq 发表于 2016-12-27 13:10
请问怎么才能出现图中2.0.0的选项呢?另外那个json文件下载了怎么用?怎么打开?谢谢! ...


我原本也是单纯的使用(https://github.com/01org/corelibs-arduino101)更新了 Intel/hardware/arc32/1.0.7 的目录文件.
编译后发现缺少arduino101copy.exe, 又从(https://github.com/01org/intel-arduino-tools) 更新了 Intel/hardware/tools/arduinoload/1.6.9+1.28 的目录文件.
ardu101_M01.png

把上面的 连接网址 填进去即可.
ardu101_M06.png
ardu101_M05.png


评分

参与人数 1贡献 +1 收起 理由
奈何col + 1 赞一个!

查看全部评分

发表于 2016-12-27 14:12 | 显示全部楼层
ntwhq 发表于 2016-12-27 13:10
请问怎么才能出现图中2.0.0的选项呢?另外那个json文件下载了怎么用?怎么打开?谢谢! ...

使用Boards Manager安装后, 会产生一个新的 “Intel-Test”目录, 旧的“Intel”目录依然存在.
ardu101_M02.png
为了区分, 我更改了 Intel/hardware/arc32/2.0.0/目录中的 boards.txt 和 programmers.txt 文件
ardu101_M03.png
ardu101_M07.png
ardu101_M08.png
发表于 2016-12-27 17:30 | 显示全部楼层
十分感谢hmjack2008作了如此详细的回答,我空了试。
发表于 2016-12-28 09:34 | 显示全部楼层

http://www.arduino.cn/thread-22901-1-1.html
这个nordic的app貌似可以蓝牙更新固件,但不知道具体如何用
发表于 2016-12-29 09:43 | 显示全部楼层
本帖最后由 ntwhq 于 2016-12-29 09:46 编辑

更新试验了,使用2.0.0库在win10(64位)下示例编译能通过,win10(32位)下编译出错,提示如下信息,应该是和win10(32位)操作系统不兼容。

Arduino:1.8.0 (Windows 10), 开发板:"Arduino/Genuino 101"

构建选项已变更,全部重新构建
fork/exec C:\Users\whq\AppData\Local\Arduino15\packages\Intel-Test\tools\arduino101load\1.8.0+1.29/arduino101load/arduino101copy.exe: This version of %1 is not compatible with the version of Windows you're running. Check your computer's system information and then contact the software publisher.
为开发板 Arduino/Genuino 101 编译时出错。

在文件 -> 首选项开启
“编译过程中显示详细输出”选项
这份报告会包含更多信息。
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|Archiver|手机版|Arduino中文社区

GMT+8, 2024-9-20 21:39 , Processed in 0.105457 second(s), 28 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表