🤖Have you ever tried Chat.M5Stack.com before asking??😎
    M5Stack Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    AtomS3U serial communication from Atom but not to Atom.... Why?

    Atom
    3
    3
    499
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • I
      ivanurwin
      last edited by

      I am plugging an AtomS3U into a USB port of my Windows 10 laptop and I want to have the AtomS3U emulate my microscope. To do that, I need to send and receive serial characters.

      Completely new to the AtomS3U and UIFlow2, I have just recently managed to get my first progam into the AtomS3U and that works: able to change the colour of the internal LED.

      Now, I want to be able to read and write data on the PCs USB (COM9) connector.

      To test, I am successfully using Putty to talk to COM 9. (115200 baud, 8 data bits 1 stop bit, no parity) Flow control. I have tried with and without XON/XOFF.

      I see Hello World messages from the Atoms3U showing that I have the correct COM port and that the AtomS3U is programmed and working. However when I type something I never see any data available message showing communication works from PC to Atom.

      Why can I communicate in one direction only?

      HelloWorldUART.PNG

      kurikoK 1 Reply Last reply Reply Quote 0
      • kurikoK
        kuriko @ivanurwin
        last edited by kuriko

        Hi @ivanurwin
        It seems your computer is sending serial data when the device logic just enters the "Sleep 5 seconds". Try to delete this block to see if it works.

        Good morning, and welcome to the Black Mesa Transit System.

        felmueF 1 Reply Last reply Reply Quote 0
        • felmueF
          felmue @kuriko
          last edited by

          Hello @ivanurwin

          the communication between PC and M5AtomS3U happens via native USB (without an external USB/Serial IC) which cannot be used with UIFlow2 UART blocks. UIFlow2 UART blocks define GPIOs for RX and TX (among others) which do not exist for a native USB connection.

          The only UIFlow2 block I see which will read data from the PC via a native USB connection is prompt for text with message.

          Thanks
          Felix

          GPIO translation table M5Stack / M5Core2
          Information about various M5Stack products.
          Code examples

          1 Reply Last reply Reply Quote 0
          • First post
            Last post