amazon-web-services - Sim 7080 AT 命令通过 MQTTS 连接到 AWS IOT

标签 amazon-web-services ssl iot at-command aws-iot

我在使用 MQTT 和 simcom 7080G 连接到 AWS IOT 时遇到问题。我遵循文件 SIM7080_Series_MQTT(S)_Application_Note_V1.01.pdf link 中的指南.

我按照第 5.2 节 MQTTS 功能进行操作。

我已建立 NB-IOT 网络连接:

AT+CNACT?
+CNACT: 0,1,"10.110.7.XXX"
+CNACT: 1,0,"0.0.0.0"
+CNACT: 2,0,"0.0.0.0"
+CNACT: 3,0,"0.0.0.0"
OK

之后我发送以下命令,除了 AT+SMCONN!! 之外,我都收到了 OK 响应:

AT+CFSINIT
AT+CFSWFILE=3,"ca.crt",0,1168,5000           (-> here I am seding the AmazonRootCa1.pem downloaded from AWS)
AT+CFSWFILE=3,"myclient.crt",0,1204,5000     (-> this is the xxx-certificate.pem.crt file downloaded from AWS)
AT+CFSWFILE=3,"myclient.key",0,1652,5000     (->this is the xxx-private.pem.key file downloaded from AWS)
AT+CFSTERM
 
AT+SMCONF=URL,xxx.iot.eu-central-1.amazonaws.com,8883
AT+SMCONF=KEEPTIME,600
AT+SMCONF="CLIENTID","pico1"
At+CSSLCFG="SSLVERSION",0,3
AT+CSSLCFG="CONVERT",2,"ca.crt"
AT+CSSLCFG="CONVERT",1,"myclient.crt","myclient.key"
AT+SMSSL=1,"ca.crt","myclient.crt"
AT+SMCONN

我做错了什么?我缺少什么吗?

最佳答案

我遇到了与您的情况相同的问题,AT+SMCONN 因错误而失败。 你的T-SIM7080G的固件版本是多少,我的是1951B05SIM7080。

我遵循 https://github.com/botletics/SIM7000-LTE-Shield/issues/58 的指导但仍然无处可去。

“无论 AWS 为您的 IoT Core 端点提供什么 url,您都必须从中删除“-ats”。因此“a1k9ecig9j720o-ats.iot.us-east-1.amazonaws.com”将变为“a1k9ecig9j720o.iot.us-east-1.amazonaws.com” 您需要使用 AWS 在此处的“VeriSign Endpoints (legacy)”下提供的旧根证书。请注意,某些地区显然不支持旧版证书,因此 SIM7000 似乎无法在这些地区工作。”

关于amazon-web-services - Sim 7080 AT 命令通过 MQTTS 连接到 AWS IOT,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/75911583/

相关文章:

amazon-web-services - 使用 AWS IoT 通过 Websocket 使用 MQTT 的连接 header 不正确

azure - HTTPS 到 HTTP Azure IoT 中心

ios - 线程 1 : Signal SIGABRT (Could not cast value of type to 'SignInViewController' to 'AWSCognitoIdentityPasswordAuthentication' )

amazon-web-services - 运行 aws s3 cp --recursive 命令时 AWS CodeBuild 失败

google-chrome - Dailymotion "broke"带有视频缩略图的 HTTPS(Chrome 警告)

java - "no cypher suites in common"java主机和android客户端

php - 亚马逊 S3 : Monitor my bucket's current disk and bandwidth usage using PHP?

amazon-web-services - 使用 Golang 从 Lambda 调用 AppSync Mutation

java - 使用 SSL 时 REST 响应超过 8KB 错误

c# - 如何以编程方式重新启动 Windows 10 IoT 应用程序