![networking – AT+USOST ERROR Response networking – AT+USOST ERROR Response](https://techtoguide.com/wp-content/uploads/2023/10/Why-wont-my-servo-and-ultrasonic-sensor-work-together.png)
[ad_1]
I’ve a Arduino MKR GSM 1400 which I wish to use to ship knowledge to a CoAP endpoint. The mobile module is a minimum of partly operational. It is ready to question DNS requests and get the right IP Tackle. Additionally the Clock command works and the time is correct. So what confuses me is why the sending of UDP Information is just not working then?? If it is ready to course of DNS Querys it already is sending and receiving UDP packets in a means. Extra particularly i get an error on the essential AT+USOST
command. Right here is the total log of my program:
// begin of this system
AT
OK
AT+IPR=921600
OK
AT
OK
AT+UPSV=3
OK
AT+CPIN?
ERROR
AT+CPIN?
+CPIN: READY
OK
AT+CMGF=1
OK
AT+UDCONF=1,1
OK
AT+CTZU=1
OK
AT+UDTMFD=1,2
OK
AT+CREG?
+CREG: 0,0
OK
// A number of +CREG: 0,0 Responses omitted
+UMWI: 0,1
+UMWI: 0,2
+UMWI: 0,3
+UMWI: 0,4
AT+CREG?
+CREG: 0,5
OK
AT+UCALLSTAT=1
OK
AT+CGATT=1
OK
AT+UPSD=0,1,"hologram"
OK
AT+UPSD=0,6,3
OK
AT+UPSD=0,2,""
OK
AT+UPSD=0,3,""
OK
AT+UPSD=0,7,"0.0.0.0"
OK
AT+UPSDA=0,3
OK
AT+UPSND=0,8
+UPSND: 0,8,1
OK
GPRS-Connection successsull!
AT+UDNSRN=0,"my.coap.api"
+UDNSRN: "1.1.1.1"
OK
// subsequent line is from my program, not a AT command debug log
my.coap.api IP: 1.1.1.1
// fall asleep after preliminary setup
AT+USOCR=17
+USOCR: 0
OK
AT+USOLI=0,5683
OK
AT
OK
AT+IPR=921600
OK
AT
OK
AT+UPSV=3
OK
AT+CCLK?
+CCLK: "23/11/01,07:10:52+04"
OK
GSM Time:1698819052
AT+UBANDSEL?
+UBANDSEL: 900,1800
OK
// subsequent 2 strains from my program
present band: EGSM_DCS_MODE
Attempting to attach
+UMWI: 0,1
+UMWI: 0,2
+UMWI: 0,3
+UMWI: 0,4
AT
OK
AT+IPR=921600
OK
AT
OK
AT
OK
AT+UPSV=3
OK
AT+CPIN?
+CPIN: READY
OK
AT+CMGF=1
OK
AT+UDCONF=1,1
OK
AT+CTZU=1
OK
AT+UDTMFD=1,2
OK
AT+CREG?
+CREG: 0,0
OK
+UMWI: 0,1
+UMWI: 0,2
+UMWI: 0,3
+UMWI: 0,4
// creg 0,0 omitted
OK
AT+CREG?
+CREG: 0,5
OK
AT+UCALLSTAT=1
OK
AT+CGATT=1
OK
AT+UPSD=0,1,"hologram"
OK
AT+UPSD=0,6,3
OK
AT+UPSD=0,2,""
OK
AT+UPSD=0,3,""
OK
AT+UPSD=0,7,"0.0.0.0"
OK
AT+UPSDA=0,3
OK
AT+UPSND=0,8
+UPSND: 0,8,1
OK
GPRS-Connection successfull
AT+USOST=0,"1.1.1.1",5683,65,"4003F42D3D0039332E3138342E3231362E3334856D736D6E74FF04000000010000A4410000804204000000010000A4410000804204000000010000A44100008042"
ERROR
coap message despatched
How can I get both:
- extra correct error responses
- detect if an error occured and retry once more
If in case you have any concepts on the way to debug this drawback additional please let me know
The libraries from platform.io I take advantage of:
arduino-libraries/MKRGSM@^1.5.0
hirotakaster/CoAP easy library@^1.3.25
adafruit/RTClib@^2.1.1
arduino-libraries/RTCZero@^1.6.0
Edit: I attempted including AT+CEER
after the packet has been despatched. Obtained no detailed error reporting 🙁
[ad_2]