linuxOS_AP05/external/rkwifibt/realtek/demo/hfp/REDME.txt
2025-06-02 13:59:07 +08:00

26 lines
805 B
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

1.下发AT+BLDNd到 hci0,标准API如下
/**
* Send AT command message.
*
* @param fd Opened socket file descriptor.
like this:
const char *ba_interface = "hci0"; developer should use bluealsa_open to get the fd
ba_fd = bluealsa_open(ba_interface));
* @param bdaddr_t addr MAC address of the Bluetooth device,
MAC addr like this:D8:1D:72:1C:26:DC
* @param command NULL-terminated command string
AT command such as:
"ATA,AT+CHUP/ATD/AT+BLDN"
* @return Upon success this function returns 0. Otherwise, -1 is returned. */
int bluealsa_send_rfcomm_command(int fd, bdaddr_t addr, const char *command)
2. 应用包含ctl-client.h bluetooth.h ctl-proto.h 避免有些结构体找不到这些文件是从BLUEZ和blualsa截取出来直接使用