USB Pack

Forum for problems or queries regarding Flowcode Comms Components. Eg LIN, I2C, SPI, RS232, CAN, IrDA etc

Moderators: Benj, Mods

Post Reply
kruger653
Posts: 3
Joined: Sat Sep 06, 2008 9:58 pm

USB Pack

Post by kruger653 »

Installing the USB Pack gives the following Error message

DLLRegisterServer in UsbSerial.ocx failed
Returncode ox80004005

Can someone help me explain what I dio wrong here; the instructions are pretty straightforward, so I expected nothing to go wrong

Fred

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: USB Pack

Post by Benj »

Hello Fred

What version of Windows are you running? Also do you have admin rights?

If your using Vista then maybe try right clicking the .bat file and selecting run as administrator.

kruger653
Posts: 3
Joined: Sat Sep 06, 2008 9:58 pm

Re: USB Pack

Post by kruger653 »

Hello Ben

I use Windows XP Professional version 2002 and I install as Administrator

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: USB Pack

Post by Benj »

Hello

Here are a few other things I can think of.

Do you have the latest version of Flowcode installed V3.4.7?

Are you running any heavy anti virus or firewall eg Norton or Mcaffee?

Another piece of advice I have found is to do the following.

http://windowsitpro.com/article/article ... stall.html
who may have a damaged or incorrect version of %SystemRoot%\System32\Comcat.dll.

To workaround the problem, rename %SystemRoot%\System32\Comcat.dll to %SystemRoot%\System32\Comcat.old and reinstall IE.

NOTE: If you elect to uninstall IE first, do the rename after the uninstall.
Let me know how you get on.

kruger653
Posts: 3
Joined: Sat Sep 06, 2008 9:58 pm

Re: USB Pack

Post by kruger653 »

Hello Ben

I tried all of your suffestions, but with no result. So I decided to re-install windows prof for windows home edition. Then it worked without any problem.
It is rather a rugged way to solve the problem, but I wanted to re-install windows anyway, because of more strange results with different programs. So a fresh start.

Thanx for your help anyway.

Fred

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: USB Pack

Post by Benj »

Hello Fred

Shame you had to resort to a reinstall but glad its all working for you now. Let me know if you have any problems.

jadiflow
Flowcode v5 User
Posts: 273
Joined: Thu Apr 17, 2008 9:59 am
Has thanked: 19 times
Been thanked: 16 times

Re: USB Pack

Post by jadiflow »

I'm also starting to use the USB pack and ran into the following.

An admin thing: although the Flowcode Help refers to the component help files, there is no 'Help' button on the USB component. (The help files are there, in the install folders, and can be accessed).

I ran the serial USB example that comes with the USB pack. In that example, data is send from within the pic program to the PC and it can be read in HyperTerminal (I'm using HPTE). But in that example, the sending of the data is inside an endlessly repeating loop. What I want is to see if the link between the ECIO and the PC/Hyperterminal is up, then start sending data.

I tried to look at the return value from the USB init, and keep on init-ting until it returns 0, but that doesn't work; apparently it only looks at the link to XP and not to an application trying to access it.
How can I do this?

Jan Didden

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: USB Pack

Post by Benj »

Hello Jan

Yes the USB Init function will only return the USB enumeration response of the computer. Eg if drivers are installed and working correctly.

I would use some kind of acknowledge to say that hyperterminal is connected.

For example when the USB connects it waits for an incoming 'a' character. Once the a character is received it will send all available data out to hyperterminal. Maybe once this is done it goes back to checking for the incoming byte. This way you can tell if the PC program has been closed. In a real PC application you could have the characters being sent out automatically so you will always know if the software is connected.

jadiflow
Flowcode v5 User
Posts: 273
Joined: Thu Apr 17, 2008 9:59 am
Has thanked: 19 times
Been thanked: 16 times

Re: USB Pack

Post by jadiflow »

Thank you Ben!

Jan Didden

jadiflow
Flowcode v5 User
Posts: 273
Joined: Thu Apr 17, 2008 9:59 am
Has thanked: 19 times
Been thanked: 16 times

Re: USB Pack

Post by jadiflow »

I was looking for the example Visual basic code in the USB-pack to handle the PC-side of the USB/Serial connection, but didn't find it.
I tried to download the USB-pack again (maybe the example wasn't in the first download) but now I can't download it anymore, my reg code is not accepted anymore.
Is this VB example avaliable somewhere else?

Jan Didden

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: USB Pack

Post by Benj »

Hello Jan

Sorry about this, I will get it sorted. In the mean time you can download the USB pack files from here.

http://www.matrixmultimedia.com/Downloa ... .php?id=58

Post Reply