Page 1 of 1

Don't forget the COM-port.

Posted: Wed Jan 11, 2017 1:52 am
by MJU
Everytime I reopen a project, Flowcode forgot the COM port of the device it last used.
My Arduino is connected to COM 9 and on COM 7 there is another device.

Everytime Flowcode goes back to COM 7...
Everytime I need to point Flowcode 7 back to the last used COM port.

Can this information be saved with the flowchart??

Re: Don't forget the COM-port.

Posted: Wed Jan 11, 2017 11:27 am
by Benj
Hello,

Out of interest what Arduino are you using and is it from Arduino.cc or Arduino.org.

We scan for the Arduino.cc USB IDs but the Arduino.org USB IDs are different?! Maybe we can make new FCDs for the .org boards.

I've also had the problem recently and saving the COM port number in the project is a good idea. I've made a note in our to do software.

Re: Don't forget the COM-port.

Posted: Thu Jan 12, 2017 12:48 am
by MJU
Should I be ashamed if I say that I have a Chinese version? :oops:
It's called DCCduino and uses a CH340 chip as serial/USB converter.

Re: Don't forget the COM-port.

Posted: Thu Jan 12, 2017 11:18 am
by Benj
Should I be ashamed if I say that I have a Chinese version
No I don't think so, they are a lot cheaper and it's what comes from creating an open source design and sparking a maker revolution.
Arduino hoping to hold onto their brand and build a business when they are literally 10x more expensive is not likely long term.
It's called DCCduino and uses a CH340 chip as serial/USB converter.
Ok I would imagine that these also have different USB IDs too.

Well we are not going to make different FCD files for each manufacturer flavour of board so it looks like we need a way of saving the right COM port in the project file if the expected USB IDs are not found.


For now you can do the following to allow the COM port to be auto detected.

Go into your device manager and find the arduino device under the Ports section. Go into the device properties and find the VID and PID values in the Details -> Hardware IDs section.

Next browse to the Flowcode FCD directory "Flowcode 7/FCD/AVR" and copy the correct device file to your desktop.

Open the file in a text editor such as notepad and find the following section of code, it's near the top of the file.

Code: Select all

    <comminfo pid="0043"
          vid="2341"
          devdesc="Arduino UNO R3" />
Change the PID and VID values to match those for your device, you might also need to edit the device description to match the name of your specific device.

Save the file and copy back to the Flowcode FCD directory.

Now hopefully the right COM port will be automatically selected for you when loading the Flowcode project.