Powerswitch Delphi demo-libusb

General discussions about V-USB, our firmware-only implementation of a low speed USB device on Atmel's AVR microcontrollers
Post Reply
winai

Powerswitch Delphi demo-libusb

Post by winai » Wed Jul 11, 2007 5:33 am

In the Delphi demo-libusb of Powerswitch

I have error massage in function btbool(data:word;bit:byte):boolean;
bt ax,bl
E2107 Operand size mismatch
Please Help me for This error and how to delphi work for powerswitch

iphi
Rank 2
Rank 2
Posts: 68
Joined: Mon Jun 25, 2007 11:37 am

Post by iphi » Fri Jul 13, 2007 5:25 pm

The old wrapper dll doesn't work with the later versions of LibUSB any longer.

Download a working interface from LibUSB to Delphi from here:
http://www.mydarc.de/DG8SAQ/hidden/LibUSB.rar

I have received this update from Yvo Nelemanns, who has also written the original Delphi interface. Thanks Yvo!

The people of obdev should replace the inoperative delphi interface by this new code on their webpage.

The good news: For the late versions of LibUSB there is no wrapper dll required any longer for calls out of Delphi.

christian
Objective Development
Objective Development
Posts: 1443
Joined: Thu Nov 09, 2006 11:46 am

Post by christian » Fri Jul 13, 2007 6:41 pm

I'd like to update the Delphi project on our site, but since I have no idea about Delphi, I'm not sure what to do with the new LibUSB.

Can you please download our package, make and test a new package with the new LibUSB and mail me the resulting zip file?

Thanks in advance!

iphi
Rank 2
Rank 2
Posts: 68
Joined: Mon Jun 25, 2007 11:37 am

Post by iphi » Fri Jul 13, 2007 7:54 pm

Hi Christian,

please download the newly prepared and compiled Delphi sources from here: www.mydarc.de/dg8saq/hidden/PowerSwitch ... Source.zip

I have deleted the web reference http://www.xs4all.nl/~ynlmns/ which is Ivo's webpage, from the readme file since Yvo hasn't put up the new version onto the net. I have received it from him by email.

I'm happy to be able to contribute to this fantastic USB project!
Great job of yours!

christian
Objective Development
Objective Development
Posts: 1443
Joined: Thu Nov 09, 2006 11:46 am

Post by christian » Fri Jul 13, 2007 8:05 pm

Thanks a lot! I have downloaded the package. It should be on our main server tomorrow morning.

iphi
Rank 2
Rank 2
Posts: 68
Joined: Mon Jun 25, 2007 11:37 am

Post by iphi » Sat Jul 14, 2007 10:13 am

Hello Christian,

you're welcome.

I have just noticed that there is another reference to the outdated webpage in the readme:

"Delphi-libUSB
This is a Pascal wrapper for libUSB-Win32 obtained from
http://www.xs4all.nl/~ynlmns/. We could not determine the name of
the author. It is used by Demo-libUSB."

I think you should remove this section as the code from Yvo Nelemanns wegpage doesn't run any more.

Thanks for also supporting Delphi coders!

christian
Objective Development
Objective Development
Posts: 1443
Joined: Thu Nov 09, 2006 11:46 am

Post by christian » Sat Jul 14, 2007 2:39 pm

A non-existing link has the same value as a broken link, so I think I'll leave the file as it is just out of laziness.

BTW: It's not us who support Delphi, we just re-distribute a contributed package. Thanks to everyone who supports the project by contributing code!

iphi
Rank 2
Rank 2
Posts: 68
Joined: Mon Jun 25, 2007 11:37 am

Post by iphi » Sat Jul 14, 2007 10:42 pm

The link still exists, but the package that you can download from there doesn't work any longer with the current versions of LibUSB.
I thought, that this fact might create some confusion.

christian
Objective Development
Objective Development
Posts: 1443
Joined: Thu Nov 09, 2006 11:46 am

Post by christian » Mon Jul 16, 2007 10:58 am

OK. I've removed the URL from the Readme file.

winai

Post by winai » Mon Jul 16, 2007 3:43 pm

WoW! It Work :lol: Thank For All

Guest

Post by Guest » Mon Jul 16, 2007 4:05 pm

Thanks christian,iphi and Yvo
I'm newbie in USB. I think If you have many Demo It easy for Newbie start. Powerswitch is vary good project for start. If you have it in Visual Basic Project. It very perfect! For Newbie start Project. Because Now It have C and Delphi

Post Reply