Here is the end of a conversation I have been having with Hologram. I get to a certain point in the Send TCP example and I just get gibberish from the serial port.
Hologram:
Hmmm, So the command it errored out on is when it attempting to create the TCP channel, no actual data / command is sent yet. The response, I am guessing, is gibberish likely due to either a baud rate switch or some electrical issue. What power supply are you using, I would suggest using the 5V usb input on the Redboard UNO plugged in to a 2A wall plug. Its possible the modem is browning out when it is trying to send data (that TCP connect command is the first time the modem is actually trying to send where it will use peak power).
If you have an oscilloscope you can connect it to the power input at see if it sags. I would also recommend sending the modem a few “AT” commands and looking for the “OK” after to see if the modem is still communicating after that connection request.
You can also try other endpoints, checkout https://www.u-blox.com/sites/default/fi … 01820).pdf section 10 for some examples.
ME:
Thank you for your help BTW!
I played with power supplies and even connected a 5v switching regulator so I don’t think it’s power. All power sources do the same thing.
Just going through some of the examples in the link above and typing into the Sara R4 using a serial passthrough program:
Creating a socket works:
AT+USOCR=6
+USOCR: 0
OK
Any socket connect command causes jibberish back on the serial:
AT+USOCO=0,"3.210.32.221",7
⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮{⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮W⸮ŷ⸮⸮⸮⸮⸮⸮⸮;⸮⸮⸮⸮⸮⸮⸮⸮⸮߯⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮
+CME ERROR: Operation not allowed
....long time goes by.....
+UUSOCL: 0
or
+USOCO=0,"cloudsocket.hologram.io",9999
Command: +USOCO=0,"cloudsocket.hologram.io",9999
Response: ⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮o⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮
4
⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮
....long time goes by.....
+CME ERROR: Operation not allowed
+UUSOCL: 0
⸮⸮⸮
Looking at HTTP examples, I noticed that I get an error after any command such as:
AT+UDNSRN=0,"ftp.u-blox.com"
ERROR