Raspberry Pi 3 B 型蓝牙和 Uart (Rx/Tx)
Raspberry Pi 3 Model B Bluetooth and Uart (Rx/Tx)
各位,我正在尝试使用蓝牙从 Rx/Tx 串行(分别为 Gpio 16 和 15)读取一些数据和 read/write 使用 Android Things dev preview 3,但似乎不起作用。
查看https://developer.android.com/things/hardware/raspberrypi.html、配置UART模式部分,看来我必须在蓝牙和Uart之间做出选择(Rx/Tx)。 (如有错误请指正)
有什么方法可以同时在 Uart 上 read/write 和在蓝牙上 read/write 吗?提前谢谢你。
The Raspberry Pi has a single full-speed UART (UART0) that is multiplexed between various board functions. You may need to modify the boot configuration of the system to enable the functions you need for your application. The following modes are supported:
Bluetooth Mode: Bluetooth functions are enabled. Pins BCM14 and BCM15 expose the serial debug console.
Note: Bluetooth mode is enabled on the board by default.
Application Mode: Bluetooth functions are disabled. Pins BCM14 and BCM15 expose UART0 via Peripheral I/O.
正确。
UART0 是接口,您一次只能将它用于蓝牙或其他 UART 功能。
https://developer.android.com/things/sdk/pio/uart.html
AndroidThings 也会通过 USB 控制器公开 UART,因此从技术上讲,您可以通过这种方式使用另一个 UART 设备,类似这样...
各位,我正在尝试使用蓝牙从 Rx/Tx 串行(分别为 Gpio 16 和 15)读取一些数据和 read/write 使用 Android Things dev preview 3,但似乎不起作用。
查看https://developer.android.com/things/hardware/raspberrypi.html、配置UART模式部分,看来我必须在蓝牙和Uart之间做出选择(Rx/Tx)。 (如有错误请指正)
有什么方法可以同时在 Uart 上 read/write 和在蓝牙上 read/write 吗?提前谢谢你。
The Raspberry Pi has a single full-speed UART (UART0) that is multiplexed between various board functions. You may need to modify the boot configuration of the system to enable the functions you need for your application. The following modes are supported:
Bluetooth Mode: Bluetooth functions are enabled. Pins BCM14 and BCM15 expose the serial debug console. Note: Bluetooth mode is enabled on the board by default.
Application Mode: Bluetooth functions are disabled. Pins BCM14 and BCM15 expose UART0 via Peripheral I/O.
正确。
UART0 是接口,您一次只能将它用于蓝牙或其他 UART 功能。
https://developer.android.com/things/sdk/pio/uart.html
AndroidThings 也会通过 USB 控制器公开 UART,因此从技术上讲,您可以通过这种方式使用另一个 UART 设备,类似这样...