@greenleaf I recently left Amazon. I don’t know what their plans are.
rashedtalukder
@rashedtalukder
Posts made by rashedtalukder
-
RE: AWS IoT Edukit Core M5 - Micropython support?
-
RE: LAN id/password security
Your connection to your WiFi network with a password requirement is encrypted. Connection to AWS is also encrypted as AWS IoT does not support unauthenticated connections.
-
RE: Unable to connect to AwS IoT Core with blinking app
You should file a ticket with support to get a refund. I don't believe you should've been charged unless you were doing something else or using other features.
-
RE: Error: Detected a whitespace character in project paths.
I don't know if "Macintosh HD" actually part of your path. Your path is actually /Users/adambryant/Documents/PlatformIO/Core2-for-AWS-IoT-EduKit from what I can tell. You could try using the command
pwd
to get your current path.The other reason I wouldn't think that was the root cause is because my personal laptop, work laptop, and our test instance in EC2 are all using different versions of macOS and they say "Macintosh HD" as the label for the OS drive and I haven't seen this issue due to that.
-
RE: Unable to connect to AwS IoT Core with blinking app
I don't see that in our pricing matrix:
https://aws.amazon.com/iot-core/pricing/Our pricing for simple usage to the message broker is generally connection minutes and messages transferred. We don't have location as part of that pricing.
-
RE: Error: Detected a whitespace character in project paths.
I don't see the whitespace character. Have you tried just moving the project folder to a different location?
-
RE: Unable to connect to AwS IoT Core with blinking app
The Core2 for AWS has a pre-provisioned secure element that has a private key and paired public key to be used for registering the device to AWS and establishing a secure TLS connection. This not only prevents anyone from accidentally leaking the private key, but also enables a more systematic registration procedure. The provided script extracts the public key and signs it and sends it to AWS IoT. Ajb2k3's instructions won't apply here.
Using US West 2 when you're in Europe won't charge you any additional fees either. The only effect you should see is additional latency, but within the thresholds of what's allowed before triggering a timeout. We selected us-west-2 for this reason and tested in multiple countries.
The error code meanings from mbedtls' SSL APIs can be viewed here. So mbedtls_ssl_read returning a -0x7880 means
/**< The peer notified us that the connection is going to be closed. */
. So AWS is closing the connection.Few things to check:
- Did the registration script say it successfully registered the thing? If you re-run it, you should get an error at the end that says it couldn't register because the thing already exists.
- Are you 100% sure you copied the endpoint address correctly? We've seen a few users either miss a character or add the quotation marks.
- When you go to your AWS Console to view your things at https://us-west-2.console.aws.amazon.com/iot/home?region=us-west-2#/thinghub, do you see the device there? If you do and you click the thing name (e.g. 01xxxxxxx), then the certificates tab, you should see a long ID for the certificate that belongs to the device. If you click that certificate ID, then the Policies tab, you should see a policy that's attached to that certificate called
Default
.
If all of that checks out, the device should definitely connect. We know that the device is connected to WiFi because it won't try to connect to AWS IoT over MQTT otherwise. If the port was being blocked by the firewall, you should see a different error code. Let me know what happens there.
Sorry for the delayed response. We usually expect people going through the program assets to use the support links and post in the GitHub discussions.
-
RE: Any way to run Rust code on edukit device?
Yes, there is a newer repository that has rust bindings for FreeRTOS/ESP-IDF by Espressif themselves:
https://github.com/espressif/rust-esp32-exampleThe blog that @flypeek shared is using that library with other libraries that seem to be able to access some of the peripherals on the device. Note that many of the features are not available or will need to be modified since the blog is on the older M5Stack devices. I would love to see a more robust port and example with all/most of the features working—would be a fun project. I'd love to promote it on the AWS IoT EduKit Content Library.
-
RE: UnicodeDecodeError: 'utf-8' codec can't decode byte 0x86 in position 8: invalid start byte
Seems like the message coming from the device over the serial port is malformed for some reason. Have you tried switching to a different cable?
-
RE: AWS IoT Edukit Micropython?
Please see: https://github.com/m5stack/Core2forAWS-MicroPython for an example using the ATECC608 when establishing TLS to the AWS IoT Core MQTT broker.