🤖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

    Scheduled Pinned Locked Moved UIFlow
    13 Posts 5 Posters 17.3k Views 1 Watching
    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 Offline
      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 Offline
        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 Offline
          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 Offline
            dave17 @wsanders
            last edited by

            @wsanders OK thanks, I will look into that

            1 Reply Last reply Reply Quote 0
            • ajb2k3A Offline
              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 Offline
                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 Offline
                  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 Offline
                    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 Offline
                      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 Offline
                        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 Offline
                          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

                          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                          With your input, this post could be even better 💗

                          Register Login
                          • First post
                            Last post