Don't forget the COM-port.

Please add any feature requests for Flowcode version 7 here

Moderator: Benj

Post Reply
MJU
Posts: 502
Joined: Wed Nov 07, 2007 6:51 pm
Location: Antwerp Belgium
Has thanked: 121 times
Been thanked: 108 times
Contact:

Don't forget the COM-port.

Post 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??

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: Don't forget the COM-port.

Post 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.

MJU
Posts: 502
Joined: Wed Nov 07, 2007 6:51 pm
Location: Antwerp Belgium
Has thanked: 121 times
Been thanked: 108 times
Contact:

Re: Don't forget the COM-port.

Post 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.

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: Don't forget the COM-port.

Post 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.

Post Reply