This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] CC2564:如何修改 cc2564中的 SDK 以使程序的 BT 模块直接进入配对模式

Guru**** 2584835 points
Other Parts Discussed in Thread: CC2564

请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/wireless-connectivity/bluetooth-group/bluetooth/f/bluetooth-forum/1015468/cc2564-how-to-modify-the-sdk-in-cc2564-to-make-the-bt-module-of-the-program-directly-enter-the-pairing-mode

器件型号:CC2564

我们使用带有 F4和 cc2564的 SDK 来调试 sppdemo。  您需要输入服务器并在串行端口中打开1才能搜索蓝牙。  现在开发该程序、让 cc2564直接输入地址搜索部分。  您可以使用命令 CommandLineInterpreter ("Server\r\n")直接进入服务器模式、但命令 CommandLineInterpreter ("open 1\r\n")未成功执行。 我们应该使用哪个函数来发出命令?或者如何将其设置为直接进入配对过程?

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好!

    在调用 CommandLineInterpreter (“open 1\r\n\r\n”)之前,是否允许 userinterface_Server()运行

    一般而言、您的想法应该有效、因此您需要调试并查看当直接从应用程序调用时可能导致 open 1不起作用的原因。 如果您在调试模式下运行程序、当您尝试运行 open 1时会出现什么错误? OpenServer()函数是否会给您一个错误,或者命令解析器是否会给您一个错误?

    此致、

    Michael