Navigation

    M5Stack Community

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    1. Home
    2. HappyUser
    H
    • Continue chat with HappyUser
    • Start new chat with HappyUser
    • Flag Profile
    • Profile
    • Following
    • Followers
    • Blocks
    • Topics
    • Posts
    • Best
    • Groups
    Save
    Saving

    HappyUser

    @HappyUser

    2
    Reputation
    24
    Posts
    1355
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    HappyUser Follow

    Posts made by HappyUser

    • RE: M5CoreInk Serial2 Issue I don't understand

      Oh I forgot, and this is how the Serial2 is initiated (MrCore2 and M5CoreInk) : Serial2.begin(115200, SERIAL_8N1, RX_PIN, TX_PIN,true); // Serial2.begin(9600, SERIAL_8N1, RX_PIN, TX_PIN); //Serial port 2 initialization
      delay(300);

      posted in Units
      H
      HappyUser
    • M5CoreInk Serial2 Issue I don't understand

      Dear all, I am using dsmr.h te read out my smart meter at home. Reading is done through Serial2. Just as in the dsmr example, the declaration of the reader is like this :
      #define RX_PIN 13 // read
      #define TX_PIN 14 // Transmit
      #define Read_PIN 26 //33 //23
      P1Reader reader(&Serial2, Read_PIN);
      On my M5Core2 reading out the serial2 interface with above setting works great. Now I have transported the software to M5CoreInk. Same cable, same pin settings. I don't see any readings anymore. So I checked in a simple loop while(Serial2.available())
      {
      int ch = Serial2.read();
      Serial.write(ch);
      }
      to see if any data is coming in. And I see on my terminal that the data is exactly what I suspect.
      Now my question is, is there something with Serial2 that works differently on M5CoreInk than on M5Core2 that somehow effects the dsmr constructs using P1Reader reader(&Serial2, Read_PIN);
      The software works on M5Core2, on M5CoreInk the data is coming in, but suddenly not anymore using this reader construct. Any suggestions?

      posted in Units
      H
      HappyUser
    • Core-Ink --> Any other fonts available besides the two included

      I assume that I a am not the first one to ask, but how can I select other fonts? Thanks

      posted in PRODUCTS
      H
      HappyUser
    • Troubles with serial connection between Core2 and AtomMatrix

      Wow, this should have been simple but apparently I am overseeing something.
      I have a M5Stack Core 2 connected to M5AtomMatrix using the Port A on Core 2 and HY2.0-4P port on the Matrix. Included the code of sender and receiver. But I dont see any transmission going on. Which obvious mistake am I making here?
      M5Stack Core 2 code :

      #include <M5Core2.h>
      #include <Wire.h>
      #define I2C_DEV_ADDR 0x55
      uint32_t i = 0;

      void setup() {

      M5.begin(true, true, true, true);
      delay(300);
      
      Serial.setDebugOutput(true);
      Wire.begin(32,33);  // SDA SCL M5Stack Core 2
      

      }

      void loop() {
      delay(5000);

      //Write message to the slave
      Wire.beginTransmission(I2C_DEV_ADDR);
      Wire.printf("Hello World! %u", i++);
      uint8_t error = Wire.endTransmission(true);
      Serial.printf("endTransmission: %u\n", error);

      //Read 16 bytes from the slave
      error = Wire.requestFrom(I2C_DEV_ADDR, 16);
      Serial.printf("requestFrom: %u\n", error);
      if(error){
      uint8_t temp[error];
      Wire.readBytes(temp, error);
      log_print_buf(temp, error);
      }

      }

      M5Atom Matrix code here:

      //#include "M5Atom.h"
      #include "M5StickC.h"
      #include <Wire.h>
      #define I2C_DEV_ADDR 0x55

      uint32_t i = 0;

      void onRequest(){
      Wire.print(i++);
      Wire.print(" Packets.");
      Serial.println("onRequest");
      }

      void onReceive(int len){
      Serial.printf("onReceive[%d]: ", len);
      while(Wire.available()){
      Serial.write(Wire.read());
      }
      Serial.println();
      }

      void setup() {

      M5.begin(true,true,true);
      delay(300);
      

      Serial.begin(115200);
      Serial.setDebugOutput(true);
      Wire.onReceive(onReceive);
      Wire.onRequest(onRequest);
      Wire.begin(26,32); // SDA SCL M5Atom

      }

      void loop() {

      }

      posted in Core 2
      H
      HappyUser
    • RE: Atom Echo. Format and create sound file

      I had really hope that someone could shed a light on this issue? Being a great product as it already is, its usability could be even more increased if some documentation about the binary format for the sound data is published.
      Really no one?
      Regards

      posted in Atom
      H
      HappyUser
    • Atom Echo. Format and create sound file

      I have been googling around, no understandable answers found. But I am sure I am not the only one with this interest.
      Could anyone explain the binary format of the sound stream used in the echo? And also nice to have : howto proces a mp3 or wav file into the required binary array to be used in the Echo?
      Thanks.

      posted in Atom
      H
      HappyUser
    • Paper for the Thermal printer

      Uh, what type of paper do I need to purchase for this printer? Is it somehow a standard package? Thank you.

      posted in Atom
      H
      HappyUser
    • RE: Unable to connect to AwS IoT Core with blinking app

      @ajb2k3 Thank you. After fully erasing the firmware I have executed again all the steps in the AWS getting started section. Again, same error about connection issue. The steps about Private key, Public key and region are not mentioned in the manual for Cloud connected Blinky.
      I should point out to that I was able te recreate the getting started example and are able to connect my rainmaker app on my iPhone with the AWS module. So that is at least a small step. I hope anyone can chip in.

      posted in Core2 for AWS
      H
      HappyUser
    • Unable to connect to AwS IoT Core with blinking app

      Dear all.
      I believe I have follow all the steps as described in : https://edukit.workshop.aws/en/blinky-hello-world/blinking-the-leds.html Unfortunately the blink app is not able to connect to the AWS IoT Core. Please check the table of all the steps I have done. Have I missed something? Did I make a mistake somewhere? Help is appreciated. Regards
      Getting started https://edukit.workshop.aws/en/getting-started.html
      M5Stack Core 2 AWS https://shop.m5stack.com/collections/stack-series/products/m5stack-core2-esp32-iot-development-kit-for-aws-iot-edukit Check
      Mac OS X Visual studio code https://visualstudio.microsoft.com Check
      ESP Rainmaker for IOS https://apps.apple.com/us/app/esp-rainmaker/id1497491540 Check
      Silicon Labs USB to UART bridge setup Check
      Cloning the code repository https://github.com/m5stack/Core2-for-AWS-IoT-EduKit.git Check
      Building and uploading the RainMaker Agent firmware pio run --environment core2foraws
      Check Check
      Compile firmware pio run --environment core2foraws --target upload
      Check
      Monitor serial port pio run --environment core2foraws --target monitor
      Check
      Claiming and provisioning the device QR code received, scanned in with rainmaker app Check
      Have an AWS account that is not running production workloads Check
      Downloading and Installing the AWS CLI Check
      Configuring the AWS CLI Was configure run. IAM user credentials stored. Not sure about region, choose us-west-2 although I am in Europe. Does that matter? Check
      Check CLI aws --version Check
      Next, you will verify the AWS CLI is configured with your IAM credentials and US West (Oregon) region aws iot describe-endpoint --endpoint-type iot:Data-ATS
      Check
      Opening the Blink Hello World project Check
      Retrieving the Device Certificate and Registering your AWS IoT thing cd utilities/AWS_IoT_registration_helper python3 registration_helper.py -p 2 Check (Port 2 is used)
      go back to the Blinky-Hello-World directory cd ../..
      Check
      Before you set the configuration, you will first need to retrieve your AWS IoT endpoint. aws iot describe-endpoint --endpoint-type iot:Data-ATS
      Check
      Now, you’ll go into the KConfig menu to configure the required symbols, including Wi-Fi and AWS IoT endpoint address. Start by switching to the Blink-Hello-World directory of the repository in the PIO terminal window and enter pio run --environment core2foraws --target menuconfig

      Component config –> Amazon Web Services IoT Platform and open AWS IoT Endpoint Hostname to set the string

      Then select AWS IoT EduKit Configuration from the menu. Set your WiFi SSID and WiFi Password with your Wi-FI credentials Check
      To build the firmware, paste in the command below (it will take several minutes): pio run --environment core2foraws
      Check
      With the build successful, it’s time to upload the compiled firmware to the connected device over USB by running the command pio run --environment core2foraws --target upload
      Check
      Lastly, monitor the serial output from the device on your host machine via: pio run --environment core2foraws --target monitor
      Check
      And this is where the monitor show this error ␛[0;31mE (133448) MAIN: Error(-12) connecting to XXXXXXXXXXXXXXX-ats.iot.us-west-2.amazonaws.com:8883␛[0m
      ␛[0;32mI (134508) aws_iot: Attempting to use device certificate from ATECC608␛[0m
      ␛[0;31mE (137328) aws_iot: Failed
      ! mbedtls_ssl_read returned -0x7880 No connection.
      Display shows WiFi symbol
      And
      Starting Cloud Connected Blinky
      Connecting to AWS IoT Core..

      posted in Core2 for AWS
      H
      HappyUser
    • RE: Error: Detected a whitespace character in project paths.

      @felmue Yes thank you. I never realised that in one of my folder names I had used a white space (maybe I really need reading glasses). Now I am struggling to get my AWS blink setup and running. Will come back later with a detailed description of my challenge ;-)

      posted in Core2 for AWS
      H
      HappyUser