Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/arduino/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
带Arduino代码的BLE112_Arduino_Bluetooth Lowenergy_Bluegiga - Fatal编程技术网

带Arduino代码的BLE112

带Arduino代码的BLE112,arduino,bluetooth-lowenergy,bluegiga,Arduino,Bluetooth Lowenergy,Bluegiga,我试图用Arduino读取传感器,然后通过BLE112将信号传输到iPhone设备 我读了很多关于这个设备的书,更新了固件Gatta和hardware.xml文件。有一个库可以使用它,但是我不知道从哪里开始,因为没有足够的注释 我把它和BLUEGUI连接起来了。我可以在iPhone上的BLE应用程序中看到它,其中包含我需要使用的UUID服务。我设法使用API与它进行通信,但使用Arduino,我可以连接到它,但不能与它通信。我不知道如何使用ble112中的TX和RX处理Arduino中的it硬件

我试图用Arduino读取传感器,然后通过BLE112将信号传输到iPhone设备

我读了很多关于这个设备的书,更新了固件Gatta和hardware.xml文件。有一个库可以使用它,但是我不知道从哪里开始,因为没有足够的注释

我把它和BLUEGUI连接起来了。我可以在iPhone上的BLE应用程序中看到它,其中包含我需要使用的UUID服务。我设法使用API与它进行通信,但使用Arduino,我可以连接到它,但不能与它通信。我不知道如何使用ble112中的TX和RX处理Arduino中的it硬件连接RX和TX


有人知道吗?

请看我写的一篇关于通过UART将设备连接到BLE112的博客文章该设备是Arduino:

以下是BLE112需要运行的串行端口代码

event system_endpoint_watermark_rx(endpoint, size)
  if endpoint = system_endpoint_uart1 then
    in_len = size
    call system_endpoint_set_watermarks(system_endpoint_uart1, 0, $ff) # disable RX watermark
    call system_endpoint_rx(system_endpoint_uart1, in_len)(result, in_len, in(0:in_len)) # read data from UART
    call system_endpoint_set_watermarks(system_endpoint_uart1, 10, $ff) # enable RX watermark
    call attributes_write(xgatt_test, 0, in_len, in(0:in_len)) # Write data to GATT
  end if
end
此外,这里还有一个关于RX/TX连接的片段

哦,因为我还没有在网上看到过这个例子,所以我会 还要提到[usart通道=1备用=1…]对应于 根据版本1.26–2012年7月,P0_4 TX和P0_5 RX BLE112数据表


这个问题很模糊。你把模块连接到Arduino上了吗?您是否成功地与模块通信?您打算如何使用BLE广告或BLE连接与iPhone进行通信?是的,我确实使用BLUEGUI连接了它,在iPhone的BLE应用程序中使用了我需要使用的UUID服务,我使用BLUEGUI API成功地与它通信,但对于Arduino,我连接了它,但没有通信,或者我不知道如何处理硬件连接,Arduino中的RX和TX与BLE112中的TX和RX,您可能希望在您的问题中包括所有这些细节。我已经在帮助您制定一个问题,这个问题实际上可以由具有相关经验的人回答-非常感谢