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.

[参考译文] RTOS/CC3100BOOST:使用安全服务器在简单链路 CC3100上建立安全连接

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

https://e2e.ti.com/support/wireless-connectivity/wi-fi-group/wifi/f/wi-fi-forum/586359/rtos-cc3100boost-establishing-the-secure-connection-on-simple-link-cc3100-with-secured-server

器件型号:CC3100BOOST
主题中讨论的其他器件:CC3100

工具/软件:TI-RTOS

您好!
我想通过使用 CCCS V6连接到 tm4c1294XL 的 CC3100BP 运行 https。
我在 CCS3100 SDK 中找到了示例、即 SSL、并尝试与本地服务器建立安全连接、主服务器具有以下功能

/*打开安全套接字*/
G_SockID = sl_Socket (sl_AF_iNet、sl_sock_stream、sl_SEC_Socket);
if (g_sockID < 0)

cli_Write ("无法打开套接字\n\r\n);
loop_forever ();

/*将套接字配置为 SSLV3.0 */
RetVal = SL_SetSockOpt (g_SockID、SL_SOL_Socket、SL_SO_SECMETHOD、
method、sizeof (method))(&method、sizeof (method));
if (RetVal < 0)

cli_Write (" failed to configure the socket \n\r");
loop_forever ();

/*使用 RC4 128 SHA *将套接字配置为 RSA
RetVal = sl_SetSockOpt (g_SockID、sl_SOL_Socket、sl_SO_SECURE_MASK、
cipher、sizeof (cipher)(&C);
if (RetVal < 0)

cli_Write (" failed to configure the socket \n\r");
loop_forever ();

/*使用 Google CA 证书配置套接字,以进行服务器验证*/
RetVal = sl_SetSockOpt (g_SockID、sl_SOL_Socket、sl_SO_SECURE_FILES_CA_FILE_NAME、
SL_SSL_CA_CERT、PAL_strlen (SL_SSL_CA_CERT));
if (RetVal < 0)

cli_Write (" failed to configure the socket \n\r");
loop_forever ();

RetVal = sl_SetSockOpt (g_SockID、sl_SOL_Socket、SO_SECURE_DOMAIN_NAME_VERIFICATION
G_Google、PAL_strlen (g_Google));
if (RetVal < 0)

cli_Write (" failed to configure the socket \n\r");
loop_forever ();

//连接到对等设备- Gmail 服务器*/
RetVal = sl_Connect (g_sockID、(SlSockAddr_t *) Addr、AddrSize);
如果(RetVal < 0)

cli_Write ("未能连接 google 服务器\n\r\n);
loop_forever ();

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
在上面突出显示的行中、我没有用于  SO_SECURE_DOMAIN_NAME_VERIFICATION 的定义值、 调用此行的任何位置都会出现以下错误。

DMA 错误代码:1.
DMA 错误!!

您能不能找出问题的原因、我如何解决? 请查找附件以了解更多 detail.e2e.ti.com/.../8875.main.c
请勿建议使用资源中的 RTOS 示例项目、例如、我想以上述方式启用。 例如、如 CC3100 SDK 中建议的那样。

此致、

Raghu DS




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

    此错误源于何处?

    亚伦