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

    Monitor serial output in Uiflow

    UIFlow
    5
    13
    12.3k
    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.
    • D
      dave17
      last edited by

      Re: Monitor serial output in Uiflow
      Hi, is there a possibility of seeing console output when using UIflow via wifi. This would be important as output is essential for debugging.
      Thanks

      1 Reply Last reply Reply Quote 0
      • W
        wsanders
        last edited by wsanders

        As long as you still have a USB cable connected, it appears that serial (?) output is available in M5Burner, click on "COM Monitor."

        I don't know how to write to it, however. I would first give Serial a try. You'll need to guess your baud rate first.

        As far as using Wifi is concerned, I suspect the way to to create a socket and read/write to it.

        D 1 Reply Last reply Reply Quote 0
        • D
          dave17 @wsanders
          last edited by

          @wsanders Thanks for your reply but I don't see any possibility of doing that in uniflow (M5burner) with the online version nor with the Desktop version. When I click on COM it only gives the possibility of chosing /dev/ttyUSB0 or similar and on clue of a console ouput.
          As for the socket where do you have to implement that? can you please provide more details and mention if you have evidence that this has been done successfully?
          Thanks

          D 1 Reply Last reply Reply Quote 0
          • D
            dave17 @dave17
            last edited by

            @wsanders I finally succeded, using wiifi for connection to uiflow and cutecom to connect to /dev/ttyUSB0 (on linux) I do get the serial ouput!
            Thanks for your advice, any idea on how to implement the socket to do everything via wifi?

            W 1 Reply Last reply Reply Quote 0
            • W
              wsanders @dave17
              last edited by

              @dave17 There are a few options avaiable to you in UIFlow, none of which I can help with because I have never used them in UIFlow. These are all in the "advanced" section:

              • "Socket": Looks like it supports UDP but not TCP. That would be your best option if you could deal with an occasional dropped packet.
              • "HTTP": Is is a client only, but you could pass information in custom HTTP headers, or in the request itself.
              • "MQTT: Never used it, but this is a protocol for IoT device to exchange messages with a central server, maybe one you set up yourself.

              Good luck!

              D 1 Reply Last reply Reply Quote 0
              • D
                dave17 @wsanders
                last edited by

                @wsanders OK thanks, I will look into that

                1 Reply Last reply Reply Quote 0
                • ajb2k3A
                  ajb2k3
                  last edited by

                  UIFLow does not have a debug console as it requires a direct serial connection between the computer and core which the WEB IDE doesn't yet have (when web browsers properly implement USB functions then maybe this may happen) the desktop version is depreciated and hasn't been updated since 2020 and not to be used.

                  UIFlow, so easy an adult can learn it!
                  If I don't know it, be patient!
                  I've ether not learned it or am too drunk to remember it!
                  Author of the WIP UIFlow Handbook!
                  M5Black, Go, Stick, Core2, and so much more it cant be fit in here!

                  S 1 Reply Last reply Reply Quote 0
                  • S
                    sgu @ajb2k3
                    last edited by

                    @ajb2k3

                    When using the UIFlow Desktop-IDE , serial connection is available using the USB connection.

                    In my opinion, it's a bad idea to stop supporting the Uiflow-Dekstop IDE as it helps debugging the applications more efficiently as using the web version.

                    ajb2k3A 1 Reply Last reply Reply Quote 0
                    • ajb2k3A
                      ajb2k3 @sgu
                      last edited by

                      @sgu The new we versions have terminal access but its only usable in Chrome web browser and the other web browsers do not support webs access yet.

                      UIFlow, so easy an adult can learn it!
                      If I don't know it, be patient!
                      I've ether not learned it or am too drunk to remember it!
                      Author of the WIP UIFlow Handbook!
                      M5Black, Go, Stick, Core2, and so much more it cant be fit in here!

                      1 Reply Last reply Reply Quote 0
                      • C
                        ciconde
                        last edited by

                        @ajb2k3 How do we send to that "web console". I can se the console in Chrome, but can't figure how to send data to it.

                        1 Reply Last reply Reply Quote 0
                        • ajb2k3A
                          ajb2k3
                          last edited by

                          You type in code next to the >>> prompt and it gets run live on the core in REPL mode

                          UIFlow, so easy an adult can learn it!
                          If I don't know it, be patient!
                          I've ether not learned it or am too drunk to remember it!
                          Author of the WIP UIFlow Handbook!
                          M5Black, Go, Stick, Core2, and so much more it cant be fit in here!

                          1 Reply Last reply Reply Quote 0
                          • C
                            ciconde
                            last edited by

                            My fault, sorry, I explained unproperly.

                            How do we send information from our code to the console, i.e. to print debug messages?

                            Sorry if it's a very noob question but I haven't figured the block to use.

                            1 Reply Last reply Reply Quote 0
                            • ajb2k3A
                              ajb2k3
                              last edited by

                              In Uiflow/micropython you use the "print" command to send data to the serial console.

                              UIFlow, so easy an adult can learn it!
                              If I don't know it, be patient!
                              I've ether not learned it or am too drunk to remember it!
                              Author of the WIP UIFlow Handbook!
                              M5Black, Go, Stick, Core2, and so much more it cant be fit in here!

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