System: MacBook Pro, iOS Sonoma - 14.4.1; working with Nano R3, from Arduino: Create Agent 1.4.0., with Cloud Editor not uploading (USB) or allowing serial monitor. I have used the option to use the old web editor, different problem. If I use Create Agent 1.3.6., everything works, but within a few minutes or less, the system updates to the Create Agent 1.4.0., and the serial comm. locks up again, not allowing upload or monitoring.
Is there a way to keep the editor from updating the Create Agent to 1.4.0?
No easy way that I am aware of. You could edit the source code of Arduino Create Agent to disable the auto-update system and then build your own executable from that modified source code, but that is likely to be quite challenging unless you happen to already have good familiarity with the Go programming language of the source code.
The best thing would be to determine the exact nature of the problem that is happening when using 1.4.0 and solve it. Even if you found a way to stop the auto-update from 1.3.6, that would still mean you would be stuck using an outdated version of Arduino Create Agent and thus miss out on all the enhancements and fixes that are made during the ongoing development. You might even find that eventually the compatibility between Arduino Cloud and the outdated version is lost entirely.
Maybe we can get some information about the problem from the logs Arduino Create Agent prints when you run it from the command line.
This procedure is not intended to solve the problem. The purpose is to gather more information.
Please do this:
If Arduino Create Agent is running, terminate it by clicking the Arduino icon in the macOS "menu bar" at the top of your screen and then selecting "Quit Agent" from the menu.
Repeat whatever you did when you experienced the "serial comm. locks up" problem.
Switch back to the Terminal window.
Press the Command+A keyboard shortcut.
This will select all the text in the Terminal window.
Press the Command+C keyboard shortcut.
This will copy the selected text to the clipboard.
Open a forum reply here by clicking the "Reply" button.
Click the <CODE/> icon on the post composer toolbar.
This will add the forum's code block markup (```) to your reply to make sure the output is correctly formatted.
Press the Command+V keyboard shortcut.
This will paste the output into the code block.
Move the cursor outside of the code block markup before you add any additional text to your reply.
Click the "Reply" button to post the output.
Please let me know if you have any questions or problems while following those instructions.
Thank you for your response: I started to carry out the procedure you recommended. After the quit agent step, then I set up my hardware, Nano, USB, etc., clicked on the new create agent, and everything seems to work fine. I will test out my other Mac to be sure I can reproduce this (the same problem hit both computers). If this happens again, I will follow up with your procedure first and send the information as requested. One other question - I am getting a new iMac with an M3 processor. Are there any known issues with that system and the Web/Cloud Editor? Thanks again for your quick response.
Short-Lived - After my last message, the Create Agent in my task tray, set-up as part of the procedure you recommended, disappeared. When I downloaded the Create Agent from the Arduino site, I am back to my previous problem. I will follow through with your recommended procedure, and send the script information.
Per Your Instructions: However, as noted earlier, with the Create Agent from your procedure installs, everything . . hardware upload, works. But it appears this create agent will disappear after this procedure. If I download the create agent from Arduino site or Github, upload to the Nano does not work. Below is, I hope, the script you wanted me to capture and send to you. Thanks!
Last login: Mon Apr 1 11:03:53 on ttys000
matthewvila@Matthews-MacBook-Pro ~ %
matthewvila@Matthews-MacBook-Pro ~ % /Applications/ArduinoCreateAgent.app/Contents/MacOS/Arduino_Create_Agent
INFO[0000] using config from default: /Users/matthewvila/Library/Application Support/ArduinoCreateAgent/config.ini
INFO[0000] additional config file not found in config.ini
INFO[0000] Version:1.4.0
INFO[0000] Hostname: Matthews-MacBook-Pro.local
INFO[0000] Garbage collection is on using Standard mode, meaning we just let Golang determine when to garbage collect.
INFO[0000] You specified a serial port regular expression filter: usb|acm|com
INFO[0000] the autostart file /Users/matthewvila/Library/LaunchAgents/ArduinoCreateAgent.plist already exists: nothing to do
[GIN-debug] [WARNING] Running in "debug" mode. Switch to "release" mode in production.
- using env: export GIN_MODE=release
- using code: gin.SetMode(gin.ReleaseMode)
[GIN-debug] GET / --> main.homeHandler (2 handlers)
[GIN-debug] POST /upload --> main.uploadHandler (2 handlers)
[GIN-debug] GET /socket.io/ --> main.(*WsServer).ServeHTTP-fm (2 handlers)
[GIN-debug] POST /socket.io/ --> main.(*WsServer).ServeHTTP-fm (2 handlers)
[GIN-debug] WS /socket.io/ --> main.(*WsServer).ServeHTTP-fm (2 handlers)
[GIN-debug] WSS /socket.io/ --> main.(*WsServer).ServeHTTP-fm (2 handlers)
[GIN-debug] GET /info --> main.infoHandler (2 handlers)
[GIN-debug] POST /pause --> main.pauseHandler (2 handlers)
[GIN-debug] POST /update --> main.updateHandler (2 handlers)
[GIN-debug] GET /v2/*path --> main.loop.WrapH.func4 (2 handlers)
[GIN-debug] POST /v2/*path --> main.loop.WrapH.func4 (2 handlers)
[GIN-debug] PUT /v2/*path --> main.loop.WrapH.func4 (2 handlers)
[GIN-debug] PATCH /v2/*path --> main.loop.WrapH.func4 (2 handlers)
[GIN-debug] HEAD /v2/*path --> main.loop.WrapH.func4 (2 handlers)
[GIN-debug] OPTIONS /v2/*path --> main.loop.WrapH.func4 (2 handlers)
[GIN-debug] DELETE /v2/*path --> main.loop.WrapH.func4 (2 handlers)
[GIN-debug] CONNECT /v2/*path --> main.loop.WrapH.func4 (2 handlers)
[GIN-debug] TRACE /v2/*path --> main.loop.WrapH.func4 (2 handlers)
[GIN-debug] [WARNING] You trusted all proxies, this is NOT safe. We recommend you to set a value.
Please check https://pkg.go.dev/github.com/gin-gonic/gin#readme-don-t-trust-all-proxies for details.
[GIN-debug] Listening and serving HTTP on 127.0.0.1:8991
[GIN-debug] Listening and serving HTTPS on 127.0.0.1:8991
[GIN-debug] [WARNING] You trusted all proxies, this is NOT safe. We recommend you to set a value.
Please check https://pkg.go.dev/github.com/gin-gonic/gin#readme-don-t-trust-all-proxies for details.
[GIN-debug] [ERROR] listen tcp 127.0.0.1:8991: bind: address already in use
[GIN-debug] [ERROR] listen tcp 127.0.0.1:8991: bind: address already in use
INFO[0000] Error trying to bind to port: listen tcp 127.0.0.1:8991: bind: address already in use, so exiting...
[GIN-debug] [WARNING] You trusted all proxies, this is NOT safe. We recommend you to set a value.
Please check https://pkg.go.dev/github.com/gin-gonic/gin#readme-don-t-trust-all-proxies for details.
[GIN-debug] Listening and serving HTTP on 127.0.0.1:8992
INFO[0000] Error trying to bind to port: listen tcp 127.0.0.1:8991: bind: address already in use, so exiting...
[GIN-debug] [ERROR] listen tcp 127.0.0.1:8992: bind: address already in use
[GIN-debug] Listening and serving HTTPS on 127.0.0.1:8992
[GIN-debug] [WARNING] You trusted all proxies, this is NOT safe. We recommend you to set a value.
Please check https://pkg.go.dev/github.com/gin-gonic/gin#readme-don-t-trust-all-proxies for details.
INFO[0000] Error trying to bind to port: listen tcp 127.0.0.1:8992: bind: address already in use, so exiting...
[GIN-debug] [ERROR] listen tcp 127.0.0.1:8992: bind: address already in use
[GIN-debug] [WARNING] You trusted all proxies, this is NOT safe. We recommend you to set a value.
Please check https://pkg.go.dev/github.com/gin-gonic/gin#readme-don-t-trust-all-proxies for details.
[GIN-debug] Listening and serving HTTP on 127.0.0.1:8993
INFO[0000] Error trying to bind to port: listen tcp 127.0.0.1:8992: bind: address already in use, so exiting...
[GIN-debug] Listening and serving HTTPS on 127.0.0.1:8993
[GIN-debug] [WARNING] You trusted all proxies, this is NOT safe. We recommend you to set a value.
Please check https://pkg.go.dev/github.com/gin-gonic/gin#readme-don-t-trust-all-proxies for details.
[GIN-debug] [ERROR] listen tcp 127.0.0.1:8993: bind: address already in use
INFO[0000] Error trying to bind to port: listen tcp 127.0.0.1:8993: bind: address already in use, so exiting...
[GIN-debug] Listening and serving HTTPS on 127.0.0.1:8994
[GIN-debug] [WARNING] You trusted all proxies, this is NOT safe. We recommend you to set a value.
Please check https://pkg.go.dev/github.com/gin-gonic/gin#readme-don-t-trust-all-proxies for details.
INFO[0000] Serial discovery started, watching for events
The Apple Silicon processors are definitely well supported. I have an M1 machine myself and regularly use Arduino Create Agent on it and I know many of the Arduino developers also use Apple Silicon-based machines. I don't have direct experience using Create Agent in an M3 machine, but am confident that it will work fine. If not, we surely would have received many reports about it as these machines are relatively common by now.