using serial with ECIO

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 2 and 3.

Moderators: Benj, Mods

Post Reply
kirstom14
Posts: 40
Joined: Thu Nov 15, 2007 9:13 am
Contact:

using serial with ECIO

Post by kirstom14 »

Hi,

I am a newbie in serial communication. I want to receive data from the PC to the ECIO, but I dont know how to do it.
The only thing that I know is that I need to use an interrupt for sure, so not to keep the ECIO searching the serial port.

Any help please, and sorry if my question is babyish.

Thanks again for your help.
tomcat14

User avatar
Benj
Matrix Staff
Posts: 14929
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Contact:

Re: using serial with ECIO

Post by Benj »

Hello,

First off are you using USB or a Serial COM port?

If you are using USB then you can create a virtual COM port using the USB serial component in Flowcode.

There is a video demonstrating this available from here.
http://www.matrixmultimedia.com/lc_videos.php?vid=8

kirstom14
Posts: 40
Joined: Thu Nov 15, 2007 9:13 am
Contact:

Re: using serial with ECIO

Post by kirstom14 »

Hi,

Thanks

I am trying to do the video demonstration program, but instead of using a keypad, I am using a switch.
And it is complying ok. Now the problem is that when that the ECIO is programmed, and the driver is installed,
the PC is giving an error: " The device cannot start (code 10)".

Is the problem with the generated driver??

Thanks again
tomcat14

User avatar
Benj
Matrix Staff
Posts: 14929
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Contact:

Re: using serial with ECIO

Post by Benj »

Hello,

Which OS are you using? Is it a 64-bit one? If so you may need an updated driver for use with v3 of Flowcode.

Also are you using the latest version of Flowcode v3 eg v3.6 as this contains the latest version of the v3 USB components.

Other then this if you post up your flowcode FCF file and the C code file that is generated then I wil have a look and see if I can spot what is going wrong for you.

As a final solution you could try changing the PID in the USB component properties and regenerating the driver. I found that once a device has been detected as a VID/PID the computer may recognise the device incorrectly if a previous USB configuration was used that had the same USB configuration values.

kirstom14
Posts: 40
Joined: Thu Nov 15, 2007 9:13 am
Contact:

Re: using serial with ECIO

Post by kirstom14 »

Hi Benj,

Well I re-opened the flowcode window, re-generated the driver and installed it, and it worked fine.

Thanks
tomcat14

User avatar
Benj
Matrix Staff
Posts: 14929
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Contact:

Re: using serial with ECIO

Post by Benj »

Brilliant thanks for letting me know.

Post Reply