Hello, I’m trying to follow the official documentation https://content.u-blox.com/sites/defaul … 042016.pdf when registering for AWS.
I’m using an m1 MacBook air and coolterm to connect this is my configuration.
Hello, I’m trying to follow the official documentation https://content.u-blox.com/sites/defaul … 042016.pdf when registering for AWS.
We are facing the same issue.
We will look into this issue soon and see what the problem is. I am not sure off the top of my head as the product should work as instructed via documentation.
Try performing a factory reset https://content.u-blox.com/sites/defaul … 042016.pdf (page 18) and see if that helps - any luck?
The factory reset apparently did work.
Also instead of using CoolTerm I started using Pyserial for reproducibility:
import serial
import time
# Replace with your COM port
COM_PORT = '/dev/cu.usbserial-110'
BAUD_RATE = 115200
def send_command(ser, command):
ser.write((command + '\r\n').encode())
time.sleep(1)
while ser.in_waiting:
response = ser.readline().decode().strip()
print(response)
return response
def main():
# Connect to the board
ser = serial.Serial(COM_PORT, BAUD_RATE, timeout=1)
print('Connected to the board')
# Wait for the welcome message
while not send_command(ser, 'AT'):
time.sleep(1)
# Configure the board
# Replace with your actual commands
response = send_command(ser, 'AT+FACTORY_RESET')
print("Response from the board: ", response)
# Close the connection
ser.close()
if __name__ == '__main__':
main()
Response:
❯ python3.11 reset.py
Connected to the board
OK
OK
Response from the board: OK
But before and after the reset with this script:
import serial
import time
# Replace with your COM port
COM_PORT = '/dev/cu.usbserial-110'
BAUD_RATE = 115200
def send_command(ser, command):
ser.write((command + '\r\n').encode())
time.sleep(1)
while ser.in_waiting:
response = ser.readline().decode().strip()
print(response)
return response
def main():
# Connect to the board
ser = serial.Serial(COM_PORT, BAUD_RATE, timeout=1)
print('Connected to the board')
# Wait for the welcome message
while not send_command(ser, 'AT'):
time.sleep(1)
# Configure the board
# Replace with your actual commands
response = send_command(ser, 'AT+CONF EndPoint=xxxxxx-ats.iot.us-east-1.amazonaws.com')
print("Response from the board: ", response)
# Close the connection
ser.close()
if __name__ == '__main__':
main()
I get this error:
❯ python3.11 configure.py
Connected to the board
OK
ERR11 UNKNOWN KEY
Response from the board: ERR11 UNKNOWN KEY
Which is the same I was getting before.
Ok, now that the board is at least responding when hooked up, the error for an unknown key is usually a typo either in the key itself or the code that uses it - try using the AWS key elsewhere, or performing some other sandbox-style test…are the keys functional otherwise?
Yes, I was able to move forward. The documentation is wrong; the error here(https://docs.aws.amazon.com/iot-express … lpg-table2) says:
5.1.1.5 ERR11 UNKNOWN KEY
If the parameter name (key) is not found in Table 2 - Configuration dictionary persistent keys or Table 3 - Configuration dictionary non-persistent keys , then the module returns 'ERR11 UNKNOWN KEY'.
And on the table, the key is Endpoint on the docs is EndPoint.
Ok so I don’t know if the documentation is up to date I was able to advance when doing AT+CONF Endpoint=
But now that I try to get the cert as per the doc I only get:
AT+CONF? Certificate
OK
But no cert text am I missing something?
Having same issue, except:
What could be wrong?