I just tried to connect my first Arduino Nano using the Arduino Web Editor.
As documented, i installed the Arduino Create Agent version 1.1.56
After successful install of the agent i opened the web editor and selected the monitor tab
Selecting this tab, i do get a greyed out pane with 'No ports available'
When entering list in the Agents console i do get an empty list
Oddly enough the ports are shown in the agents log when pausing the plugin, reporting that i fails to close the ports.
{"Version" : "1.1.56"}
{"Commands" : ["list", "open [portName] [baud] [bufferAlgorithm (optional)]", "send [portName] [cmd]", "sendnobuf [portName] [cmd]", "close [portName]", "bufferalgorithms", "baudrates", "restart", "exit", "program [portName] [board:name] [$path/to/filename/without/extension]", "programfromurl [portName] [board:name] [urlToHexFile]"]}
{"Hostname" : "Chigatze.fritz.box"}
{"OS" : "darwin"}
{"Error" : "We could not find the serial port /dev/cu.Bluetooth-Incoming-Port that you were trying to close."}
{"Error" : "We could not find the serial port /dev/cu.Repleo-CH341-0000124 that you were trying to close."}
{"Error" : "We could not find the serial port /dev/tty.Bluetooth-Incoming-Port that you were trying to close."}
{"Error" : "We could not find the serial port /dev/tty.Repleo-CH341-0000124 that you were trying to close."}
{"Restarting" : true}
[object Object]
The closing messages are a little misleading in the way you are understanding them.
You can pretty much make it do that with any OS for some actions in CREATE.
Also if you read the error properly it CANNOT find a port "We could not find the serial port"
Not a mac person but I can get it to try close non existent ports on windows too.
Sounds more like it is an incomplete install of the editor and or some component other than the agent which is currently 1.1.56 same as you are seeing.
There are a few topics on Mac installs and root is usually mentioned.
Maybe take the time to wander through some of the other posts about mac installs.
Found it, it is a bug in the Agent, which will make the agent not recognise many of the mac serial ports.
Mac serial ports do start with "/dev/cu" (calling unit) or "/dev/tty".
You can open the package of the installed agent by selecting " Show Package Contents " from the context menu of ArduinoCreateAgent. In the Contents of the package the configuration file can be found in /Contents/MacOS/config.ini.
The parameter regex is used to filter and detect serial ports.
regex = usb|acm|com # Regular expression to filter serial port list
By adding the MacOS serial port filter definition "/dev/cu" to the parameter and restart the agent the web editor is able to detect the serial ports on a mac.
regex = usb|acm|com|/dev/cu # Regular expression to filter serial port list
@00alis It is not related to a browser, the ArduinoCreateAgent is not able to detect the serial ports.
As i can see from the code it does create a some sort of REST service which can be used by the browser to communicatie over the serial ports.
I am running Mac OS 10.12.6 on a mid 2015 MBP.
It can be reproduces with any browser, but actually tested it with Safari 11.0 (12604.1.38.1.3) and Chrome Version 60.0.3112.90 (Official Build) (64-bit)
@macpeterr we have exactly the same Mac
Are you using a dongle and a USB hub?
We are filtering out some of the cu ports because they are not useful for the Editor (e.g. cu.Bluetooth-Incoming-Port) but you should surely see the cu port if you connect an Arduino (e.g. I currently see cu.usbmodem141131).
Glad you were able to solve the issue, just curious: is this happening with any Arduino board? What about the Desktop IDE, can you detect the ports there?
Yes, see the attache screenshot. In Arduino 1.8.2 i do see the same ports as i can see now in the Web editor.
I do not use a dongle, but do have an USB 2.0 Isolator between my mac and the arduino.
(Arduino's tend to be cheaper than MBPs, so prefer to protect my mac ). Never had issues with the isolator and as i now can see it is not causing any issues now.
Ok, are using a clone Arduino Nano using the CH340 USB to Serial chip? If so that may be the reason of things not being automatically discovered on your Mac.
Let us know!
Yes it is an Arduino Nano clone, still Arduino is open source is it not ?
Also, it is not that the Arduino is not recognized, it is the serial port which is not detected.
Occasionally MAC users have had issues with drivers for clones.
As these are not official boards support is limited.
(like buying a fake rolex watch and expecting rolex to fix it for you)
I do recall some people using specific drivers to overcome this problem but you would have to research that yourself.
As i wrote earlier i already do use a commercial USB to serial driver from mac-usb-serial.com.
The issue is not that the Arduino Web Editor does not work with my non-original Arduino's.
It is that the Arduino Web Editor, or in fact the Arduino Create Agent does not detect all available serial ports on a mac.
The site you are pointing to delivers drivers which are not stable and probably require that the System Integrity Protection on MacOS is enabled. I have searched and tried quite some drivers, but the only drivers working are the drivers from mac-usb-serial.com