根据国家政策法规,只有实名认证用户才能在论坛回帖留言,点击去完成实名认证 >>
千寻位置
发表主题
  • 7760阅读
  • 6回复

求STM32接入SDK的流程
[复制链接]

级别: 新手上路
 
只看楼主 倒序阅读 楼主  发表于: 2018-05-09
    我想用STM32控制GSM模块连接千寻,现在我按照提供的差分数据嵌入式SDK开发指南_V1.4.3_1514444510.docx 来进行开发,[size=font-size: 1.167rem,1.167rem]要实现的函数已经实现了、比如qxwz_soc_create、qxwz_soc_connect、qxwz_soc_close等等[size=font-size: 1.167rem,1.167rem]、qxwz_soc_send,但是现在为什么还是接入不千寻获取差分
[size=font-size: 1.167rem,1.167rem] appkey、appsecret、device_ID、device_Type填入的都是按照控制中心里的都正确的(问过客服了……)
下面是串口打印的信息

Init module


AT
OKAT+CPIN?
+CPIN:READY
OK

System Startip:60.205.8.49  ,RemotePort:8001AT+CGATT=1
+CGATT:1
OKAT+CGDCONT=1,"IP","CMMTM"
OKAT+CGACT=1,1
OKAT+CIPSTATUS
+CIPSTATUS: IP CLOSE
OKAT+CIPSTART="TCP","60.205.8.49",8001
CONNECT OK
OK
+CGREG: 1AT+CIPSTATUS
+CIPSTATUS: CONNECT OK
OKTCP CONNECT OK


httprequest.c, qxwz_http_request, Line#73 qxwz **** create socket

httprequest.c, qxwz_http_request, Line#81 qxwz **** begin connect
ip:openapi.qxwz.com  ,RemotePort:8000AT+CGATT=1
+CGATT:1
OKAT+CGDCONT=1,"IP","CMMTM"
OKAT+CGACT=1,1
OKAT+CIPSTATUS
+CIPSTATUS: CONNECT OK
OKAT+CIPSTATUS
+CIPSTATUS: CONNECT OK
OKTCP CONNECT OK


qxwz_socket.c, socket_tick, Line#58 qxwz **** call tick

qxwz_socket.c, socket_tick, Line#66 qxwz **** no data

qxwz_socket.c, socket_tick, Line#58 qxwz **** call tick

qxwz_socket.c, socket_tick, Line#66 qxwz **** no data

qxwz_socket.c, socket_tick, Line#58 qxwz **** call tick

qxwz_socket.c, socket_tick, Line#66 qxwz **** no data

qxwz_socket.c, socket_tick, Line#58 qxwz **** call tick

qxwz_socket.c, socket_tick, Line#66 qxwz **** no data

qxwz_socket.c, socket_tick, Line#58 qxwz **** call tick

qxwz_socket.c, socket_tick, Line#66 qxwz **** no data

qxwz_socket.c, socket_tick, Line#58 qxwz **** call tick

qxwz_socket.c, socket_tick, Line#66 qxwz **** no data

qxwz_socket.c, socket_tick, Line#58 qxwz **** call tick

qxwz_socket.c, socket_tick, Line#66 qxwz **** no data

qxwz_socket.c, socket_tick, Line#58 qxwz **** call tick

qxwz_socket.c, socket_tick, Line#66 qxwz **** no data

qxwz_socket.c, socket_tick, Line#58 qxwz **** call tick

qxwz_socket.c, socket_tick, Line#66 qxwz **** no data

qxwz_socket.c, socket_tick, Line#58 qxwz **** call tick

qxwz_socket.c, socket_tick, Line#66 qxwz **** no data

qxwz_socket.c, socket_tick, Line#58 qxwz **** call tick

qxwz_socket.c, socket_tick, Line#66 qxwz **** no data

qxwz_socket.c, socket_tick, Line#58 qxwz **** call tick

qxwz_socket.c, socket_tick, Line#66 qxwz **** no data

qxwz_socket.c, socket_tick, Line#58 qxwz **** call tick

qxwz_socket.c, socket_tick, Line#66 qxwz **** no data

qxwz_socket.c, socket_tick, Line#58 qxwz **** call tick

qxwz_socket.c, socket_tick, Line#66 qxwz **** no data

qxwz_socket.c, socket_tick, Line#58 qxwz **** call tick

qxwz_socket.c, socket_tick, Line#66 qxwz **** no data

qxwz_socket.c, socket_tick, Line#58 qxwz **** call tick

qxwz_socket.c, socket_tick, Line#66 qxwz **** no data

qxwz_socket.c, socket_tick, Line#58 qxwz **** call tick

qxwz_socket.c, socket_tick, Line#66 qxwz **** no data

qxwz_socket.c, socket_tick, Line#58 qxwz **** call tick

qxwz_socket.c, socket_tick, Line#66 qxwz **** no data

qxwz_socket.c, socket_tick, Line#58 qxwz **** call tick

qxwz_socket.c, socket_tick, Line#66 qxwz **** no data

qxwz_socket.c, socket_tick, Line#58 qxwz **** call tick

qxwz_socket.c, socket_tick, Line#66 qxwz **** no data

qxwz_socket.c, socket_tick, Line#58 qxwz **** call tick

qxwz_socket.c, socket_tick, Line#66 qxwz **** no data

qxwz_socket.c, socket_tick, Line#58 qxwz **** call tick

qxwz_socket.c, socket_tick, Line#66 qxwz **** no data

qxwz_socket.c, socket_tick, Line#58 qxwz **** call tick

qxwz_socket.c, socket_tick, Line#66 qxwz **** no data

qxwz_socket.c, socket_tick, Line#58 qxwz **** call tick

qxwz_socket.c, socket_tick, Line#66 qxwz **** no data

qxwz_socket.c, socket_tick, Line#58 qxwz **** call tick

qxwz_socket.c, socket_tick, Line#66 qxwz **** no data

qxwz_socket.c, socket_tick, Line#58 qxwz **** call tick

qxwz_socket.c, socket_tick, Line#66 qxwz **** no data

qxwz_socket.c, socket_tick, Line#58 qxwz **** call tick

qxwz_socket.c, socket_tick, Line#66 qxwz **** no data

qxwz_socket.c, socket_tick, Line#58 qxwz **** call tick

qxwz_socket.c, socket_tick, Line#66 qxwz **** no data

qxwz_socket.c, socket_tick, Line#58 qxwz **** call tick

qxwz_socket.c, socket_tick, Line#66 qxwz **** no data

qxwz_socket.c, socket_tick, Line#58 qxwz **** call tick

qxwz_socket.c, socket_tick, Line#66 qxwz **** no data

qxwz_socket.c, socket_tick, Line#58 qxwz **** call tick

qxwz_socket.c, socket_tick, Line#66 qxwz **** no data

qxwz_socket.c, socket_tick, Line#58 qxwz **** call tick

qxwz_socket.c, socket_tick, Line#66 qxwz **** no data

qxwz_socket.c, socket_tick, Line#58 qxwz **** call tick

qxwz_socket.c, socket_tick, Line#66 qxwz **** no data

qxwz_socket.c, socket_tick, Line#58 qxwz **** call tick

qxwz_socket.c, socket_tick, Line#66 qxwz **** no data

qxwz_socket.c, socket_tick, Line#58 qxwz **** call tick

qxwz_socket.c, socket_tick, Line#66 qxwz **** no data

qxwz_socket.c, socket_tick, Line#58 qxwz **** call tick

qxwz_socket.c, socket_tick, Line#66 qxwz **** no data

qxwz_socket.c, socket_tick, Line#58 qxwz **** call tick

qxwz_socket.c, socket_tick, Line#66 qxwz **** no data

qxwz_socket.c, socket_tick, Line#58 qxwz **** call tick

qxwz_socket.c, socket_tick, Line#66 qxwz **** no data

qxwz_socket.c, socket_tick, Line#58 qxwz **** call tick

qxwz_socket.c, socket_tick, Line#66 qxwz **** no data

qxwz_socket.c, socket_tick, Line#58 qxwz **** call tick

qxwz_socket.c, socket_tick, Line#66 qxwz **** no data

qxwz_socket.c, socket_tick, Line#58 qxwz **** call tick

qxwz_socket.c, socket_tick, Line#66 qxwz **** no data
AT+CIPCLOSE
+CME ERROR:50Off Server OK
qxwz_socket.c, socket_tick, Line#58 qxwz **** call tick

qxwz_socket.c, socket_tick, Line#66 qxwz **** no data

qxwz_socket.c, socket_tick, Line#58 qxwz **** call tick

qxwz_socket.c, socket_tick, Line#66 qxwz **** no data

qxwz_socket.c, socket_tick, Line#58 qxwz **** call tick

qxwz_socket.c, socket_tick, Line#66 qxwz **** no data

qxwz_socket.c, socket_tick, Line#58 qxwz **** call tick

qxwz_socket.c, socket_tick, Line#66 qxwz **** no data

Init moduleAT
OKAT+CPIN?
+CPIN:READY
OK

appkey=564458deviceID=666deviceType=ICEexpire_time=0


System StartAT+HTTPINIT
OKAT+HTTPPARA="URL","http://rtk.ntrip.qxwz.com/"
OKAT+CGDCONT=1,"IP","CMMTM"
OKAT+CGACT=1,1
OKAT+CIPSTATUS
+CIPSTATUS: IP CLOSE
OKAT+CIPSTART="TCP","60.205.8.49",8001
CONNECT OK
OK
+CGREG: 1AT+HTTPSEND=1
SEND OKAT+HTTPSTATUS?
+HTTPSTATUS:

OK
+CGREG: 1AT+HTTPHEAD?
+HTTPHEAD:

OKAT+HTTPREAD?
+HTTPREAD:0

OKCLOSED
OK
httprequest.c, qxwz_http_request, Line#73 qxwz **** create socket

httprequest.c, qxwz_http_request, Line#81 qxwz **** begin connect
AT+HTTPINIT
OK
+CGREG: 1AT+HTTPPARA="URL","http://rtk.ntrip.qxwz.com/"
OKAT+CGDCONT=1,"IP","CMMTM"
OKAT+CGACT=1,1
OKAT+CIPSTATUS
+CIPSTATUS: IP CLOSE
OKAT+CIPSTART="TCP","openapi.qxwz.com",8000
CONNECT OK
OK
+CGREG: 1AT+HTTPSEND=1
SEND OK+RECEIVE,387:HTTP/1.1 301 Moved PermanentlyServer: nginx/1.12.2Date: Wed, 09 May 2018 07:09:00 GMTContent-Type: text/htmlContent-Length: 185Connection: keep-aliveLocation: https://rtk.ntrip.qxwz.com/
<html><head><title>301 Moved Permanently</title></head><body bgcolor="white"><center><h1>301 Moved Permanently</h1></center><hr><center>nginx/1.12.2</center></body></html>

OKAT+HTTPSTATUS?
+HTTPSTATUS:HTTP/1.1 301 Moved Permanently
OK
+CGREG: 1AT+HTTPHEAD?
+HTTPHEAD:Server: nginx/1.12.2Date: Wed, 09 May 2018 07:09:00 GMTContent-Type: text/htmlContent-Length: 185Connection: keep-aliveLocation: https://rtk.ntrip.qxwz.com/
OKAT+HTTPREAD?
+HTTPREAD:185<html><head><title>301 Moved Permanently</title></head><body bgcolor="white"><center><h1>301 Moved Permanently</h1></center><hr><center>nginx/1.12.2</center></body></html>

OK
qxwz_socket.c, socket_tick, Line#58 qxwz **** call tick

qxwz_socket.c, socket_tick, Line#66 qxwz **** no data

qxwz_socket.c, socket_tick, Line#58 qxwz **** call tick

qxwz_socket.c, socket_tick, Line#66 qxwz **** no data

qxwz_socket.c, socket_tick, Line#58 qxwz **** call tick

qxwz_socket.c, socket_tick, Line#66 qxwz **** no data

qxwz_socket.c, socket_tick, Line#58 qxwz **** call tick

qxwz_socket.c, socket_tick, Line#66 qxwz **** no data

qxwz_socket.c, socket_tick, Line#58 qxwz **** call tick

qxwz_socket.c, socket_tick, Line#66 qxwz **** no data

qxwz_socket.c, socket_tick, Line#58 qxwz **** call tick

qxwz_socket.c, socket_tick, Line#66 qxwz **** no data

级别: admin
只看该作者 沙发  发表于: 2018-05-09
已转开发跟进。
级别: 新手上路
只看该作者 板凳  发表于: 2018-05-14
linking...
..\OBJ\USART.axf: Error: L6218E: Undefined symbol qxwz_soc_close (referred from ntrip.o).
..\OBJ\USART.axf: Error: L6218E: Undefined symbol qxwz_soc_create (referred from ntrip.o).
..\OBJ\USART.axf: Error: L6218E: Undefined symbol qxwz_soc_send (referred from ntrip.o).
..\OBJ\USART.axf: Error: L6218E: Undefined symbol qxwz_soc_connect (referred from qxwz_socket.o).
Not enough information to list image symbols.


我把lib加入工程中 ,调用了一个GGA发送函数,就这样报错了 ,不知道是为什么 ,请教楼主。
级别: 新手上路
只看该作者 地板  发表于: 2018-05-14
解决了
级别: 侠客
只看该作者 4楼 发表于: 2018-07-02
回 admin 的帖子
admin:已转开发跟进。 (2018-05-09 16:58)  img: images/back.gif

你好,请问楼主的问题是在STM32那个系列上用的呢?在STM32F1系列能不能正常的使用嵌入式的SDK呢?我是指不运行Linux系统的条件下
级别: 侠客
只看该作者 5楼 发表于: 2018-07-02
回 qxwz23318551 的帖子
qxwz23318551:解决了
 (2018-05-14 15:20)  img: images/back.gif

你好,请问你是在STM32那个系列上用的呢?在STM32F1系列能不能正常的使用嵌入式的SDK呢?我是指不运行Linux系统的条件下
级别: 精灵王
只看该作者 6楼 发表于: 2018-07-09
回 qxwzzzqct8zb 的帖子
qxwzzzqct8zb:你好,请问你是在STM32那个系列上用的呢?在STM32F1系列能不能正常的使用嵌入式的SDK呢?我是指不运行Linux系统的条件下 (2018-07-02 11:29)  img: images/back.gif

应该木有问题,这个好像是M3的
具体到时候可以给我们个具体型号看看配置,这样严谨些
快速回复
限100 字节
如果您提交过一次失败了,可以用”恢复数据”来恢复帖子内容
 
上一个 下一个