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

    M5Stick c USB mode

    M5 Stick/StickC
    7
    18
    32.7k
    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.
    • ajb2k3A
      ajb2k3
      last edited by ajb2k3

      From what I understand 192.168.4.1 is the host address of the network master. After initial setup where you connect the stick to you network, the modem should reallocate an address as the stick is no longer a master device and is now a slave.
      My modem does.

      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
      • P
        Peter
        last edited by

        Problem partial solved :)

        I put my old Handy and the M5Stick C very near together. So I can recive the Config-Site from the Stick and put it to login in my home Wlan.

        Now I can program the Stick with http://flow.m5stack.com/ :))

        But what is with USB?

        Peter

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

          @peter There is an offline version of UIFlow that you can use to program the M5Stick when set in USB mode but you can also access the M5Stick and run Micropython in repl over usb mode.

          Glad you got it working now

          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
            ss4f11 @ajb2k3
            last edited by

            Sorry to hijack this thread but I was about to post a new Q to ask something similar

            @ajb2k3 Could you point me in the direction of how to write micropython scripts to the m5stickc over USB? I'm up and running with UIFlow but I'd quite like to just use my own editor and just run a bash script to write my python file to the device.
            With the UIFlow firmware guides I didn't find much information on doing this directly over USB.
            I'm on Linux btw.

            Thanks

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

              @ss4f11 have you checked out the micro python website? At present I haven’t written a guide on it.

              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
              • lukasmaximusL
                lukasmaximus
                last edited by

                @ss4f11 There are a few options. Option 1: Use microsoft vscode and download the m5stack plugin which allows you to write python scripts with auto complete features, and then run them directly from the computer to the stick or put them in the flash and then run them. It also allows you to easily copy other kinds of files to the flash and see what other files are already in the flash. Check out this video for getting setup https://www.youtube.com/watch?v=Y9pOWgsNgKk&t=11s

                Option 2:
                Use your favorite serial terminal program to connect to the REPL of the device, I use "screen" on linux the command should be something like:
                screen /dev/ttyusb0 115200

                From here you can poke around with micropython commands and see the direct results on the device. Then once you've had your fun kill the processes with Ctrl + A + \ and install ampy https://github.com/pycampers/ampy

                ampy is a tool which allows you to put and get files from the flash and run them directly on the stick from the terminal. I did 2 videos some time ago about this https://www.youtube.com/watch?v=V67MY-1ccqM
                https://www.youtube.com/watch?v=rvP3GixWG1Y&t=109s

                You could also use rshell or upycraft

                1 Reply Last reply Reply Quote 0
                • F
                  flypeek
                  last edited by

                  [M5StickC] How to switch to USB mode
                  (Japanese webpage please google translate :p)
                  https://qiita.com/nagase/items/9df1f78a7a51047a3e65

                  1 Reply Last reply Reply Quote 0
                  • P
                    Peter
                    last edited by

                    Now all work fine!

                    Tank's flypeek for the link to the japanise Site. I don't anderstand japanese, but I get an Inspiration. I have to push ButtonA an Reset together - now i see the Menue :).

                    Tnx to all helpfull user.

                    Peter

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

                      @peter said in M5Stick c USB mode:

                      Now all work fine!

                      Tank's flypeek for the link to the japanise Site. I don't anderstand japanese, but I get an Inspiration. I have to push ButtonA an Reset together - now i see the Menue :).

                      Tnx to all helpfull user.

                      Peter

                      If you view the page in google chrome than chrome will translate it for you.

                      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
                      • P
                        Peter
                        last edited by

                        Thank you for the Tip with Google Chrome. I use Firefo. There was no translation. But now I have try out something and all works fine.

                        Thank you all together :)

                        Peter

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

                          @peter Sometimes you have to right click to get the translation function and sometime the page needs reloading. I view a lot of Chinese and Japanese pages and have noticed lately that the translator doesn't always appear.

                          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
                          • First post
                            Last post