-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Firmware update #7
Comments
Hi @pdbayes, this is not the correct way to carry out the OTW update. Please refer to Section 3.6.3 for making these connections. Please post some logs here for the issues that you are facing with sending messages to AWS IoT Core. |
Thanks for responding, I have been going mad with this |
OK. Thanks. I understand the Arduino sketch is just a starter example. But I will need the software serial running to communicate won't I? |
Yes, you will need to use a terminal application configured with the settings from Section 3.7 in order to test if AT commands are working. The otw.py script uses the pySerial module to communicate with ExpressLink, so you need not configure anything for that. |
Should this work with an Arduino Uno? It only has one UART. Software serial just seems to duplicate pins 1 and 0 which are the same uart the dev board is using |
Yes, you can use ExpressLink with an Arduino Uno. |
I am trying that and I get no response from AT commands |
Are you trying to use the Arduino Uno as a pass-through serial interface? Do the AT commands work for you when you try with a USB-TTL dongle and connect to the RX/TX pins of the ExpressLink board directly (and use a desktop terminal application)? |
I have tried as a passthrough device and also using the sketch provided. |
I have a serial connection as pressing the reset button gives be a lot of info ending in this; [INFO] [TE] [thirdeye_init:87] Starting ThirdEye I (945) gpio: GPIO[10]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldo wn: 0| Intr:0 I (955) gpio: GPIO[4]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 0| Pulldow n: 1| Intr:0 I (965) gpio: GPIO[5]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 0| Pulldow n: 1| Intr:0 [INFO] [TE] [thirdeye_init:123] Starting MQTT Agent [INFO] [MQMGR] [bStartMQTTAgent:314] MQTT Agent started successfully I (985) TIME: Initializing the NTP [INFO] [APPMAIN] [app_main:125] [INIT] Complete. [INFO] [APPMAIN] [app_main:130] APP_MAIN complete I (985) OTA: Current Firmware version 0.9.3 I (995) OTA: Waiting for MQTT agent to be connected. |
Swapping RX and TX seems to now give me a response |
So, I still can't update the firmware. What needs to be running on the UNO? |
And sent messages to AWS are not showing in the MQQT test window |
For OTW, please connect to your computer directly using a USB-TTL dongle and run the script, please disconnect it from Arduino during OTW.
Can you please post logs from both consoles? (ExpressLink logs which are viewable using the microUSB and also the console where you issued AT commands) |
I will do this later. I have to do my work for most of the day. It did start the firmware update but failed reading the version number. |
It is all working now, thanks for your help. One thing I did notice, when I typed AT+CONF EndPoint=abcdef I got an error, I had to change it to Endpoint. The example sketch is using EndPoint. |
Hi pdbayes, I'm using the same devkit but I cannot connect to AWS: could you tell me what is the firmware revision you have installed into the devkit using the OTW procedure? |
It was originally something like 0.9.60. My issue in updating was that you need to cross the Rx and TX of the TTL converter. |
Me too discovered the "Endpoint" string and received the DevKit with an old revision. |
Did you copy and upload the certificate from the device and called the thing the same as the board reports as it's thing name? |
Yes: first I downloaded the Certificate from DevKit (AT+CONF? Certificate), then its Thing name (AT+CONF? ThingName). |
Hi dhavalgujar, I tried two ways: the first is connecting the DevKit to my PC through a USB-to-UART converter. |
I attach again the last part of the log of the "Start Quick Connect" software because the previous one was not complete. |
Maybe the reason could be that my AWS account is registered in Ireland (eu-west-1) and the Devkit object/certificate is valid only in other regions (pacific ap-east-1 or ap-south-1) ? |
@mra59 Thank you for sending these logs. There is no region restriction for using ExpressLink devkits. |
This is the log at DevKit startup. |
Bootup looks okay, you've successfully updated to v1.0.20 of the firmware. Can you see what logs you get on this console, when you try to use the The log will contain your SSID and Passphrase, please redact them before posting the log here. |
Attached the log of the 3 commands. |
When you run these commands, you'll also see corresponding debug logs on the console where you could see the bootup log. We should be able to better diagnose your issue if we can look at those logs. |
Nice idea. |
Your endpoint seems to be incorrect, can you try setting it again using the |
You seem to be confusing the ARN of your Thing, i.e. You can find yours on the Settings page. I believe you were setting it correctly earlier, when you said:
|
I set AT+CONF Endpoint=agg23zwk76whx-ats.iot.eu-west-1.amazonaws.com and now it works!!! |
Glad it worked out for you, @mra59! @pdbayes, the sketch will be updated shortly with a few fixes to the serial read logic and like you mentioned, the updated AT commands. |
Hi, for me these pin doesn't work, I use the pin gnd, tx and x of the ack con the board, ait's worked, but I can't uate the firmware, what I have to do? |
I have 2 of these boards and am trying to update the firmware as AWS IoT Core is not recognising any of the messages sent from the demo Arduino sketch, even though I can see it is connected and sending messages. IoT Core can see it connect and auto subscribes it to some topics. I have tried to update several times and it always times out. I am connecting directly to the board via the micro usb and it is detached from the Arduino, is this correct way to do it?
The text was updated successfully, but these errors were encountered: