Page 1 of 1

using serial with ECIO

Posted: Wed May 05, 2010 9:57 am
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.

Re: using serial with ECIO

Posted: Wed May 05, 2010 10:18 am
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

Re: using serial with ECIO

Posted: Wed May 05, 2010 11:15 am
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

Re: using serial with ECIO

Posted: Wed May 05, 2010 12:49 pm
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.

Re: using serial with ECIO

Posted: Wed May 05, 2010 8:19 pm
by kirstom14
Hi Benj,

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

Thanks

Re: using serial with ECIO

Posted: Thu May 06, 2010 11:11 am
by Benj
Brilliant thanks for letting me know.