473,382 Members | 1,329 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

turn on/off usb lamp

hi,

i want to turn on/turn off a usb lamp via a vb.net button...
i think i would have to turn on/turn off the power for this usb port....

how could i do this?

kind regards
Nov 21 '05 #1
10 23562
"Zabby" <Za***@discussions.microsoft.com> schrieb:
i want to turn on/turn off a usb lamp via a vb.net button...
i think i would have to turn on/turn off the power for this usb port....


Check out if the manufacturer of the USB lamp provides an SDK which allows
turning off the lamp.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #2
and if not? :)

"Herfried K. Wagner [MVP]" wrote:
"Zabby" <Za***@discussions.microsoft.com> schrieb:
i want to turn on/turn off a usb lamp via a vb.net button...
i think i would have to turn on/turn off the power for this usb port....


Check out if the manufacturer of the USB lamp provides an SDK which allows
turning off the lamp.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #3
Looks like you have to do somekind of device driver level programming for this.

Anyway there seem to be a product that traps raw USB data at
http://www.hhdsoftware.com/usbmon.html.My guess is that you will have to do
something similar.

Another idea is you can try and disable/enable the device, if Windows
recognizes it. I am not sure what API to use, but my guess is that there is a
set of Windows API/DD API which will allow you to do it.

--
Rgds,
Anand
VB.NET MVP
http://www.dotnetindia.com
"Zabby" wrote:
hi,

i want to turn on/turn off a usb lamp via a vb.net button...
i think i would have to turn on/turn off the power for this usb port....

how could i do this?

kind regards

Nov 21 '05 #4
"Zabby" <Za***@discussions.microsoft.com> schrieb:
and if not? :)


The USB library for .NET
<URL:http://www.icsharpcode.net/OpenSource/SharpUSBLib/>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>
Nov 21 '05 #5
the usbmonitor is a good idea...
but i think, the usb lamp turns on when you connect it...
but i am not sure, because i don´t have bought one yet...

so i would have to disable or enable the device...

any sample code, how to disable/enable a device in vb.net?

"Anand[MVP]" wrote:
Looks like you have to do somekind of device driver level programming for this.

Anyway there seem to be a product that traps raw USB data at
http://www.hhdsoftware.com/usbmon.html.My guess is that you will have to do
something similar.

Another idea is you can try and disable/enable the device, if Windows
recognizes it. I am not sure what API to use, but my guess is that there is a
set of Windows API/DD API which will allow you to do it.

--
Rgds,
Anand
VB.NET MVP
http://www.dotnetindia.com
"Zabby" wrote:
hi,

i want to turn on/turn off a usb lamp via a vb.net button...
i think i would have to turn on/turn off the power for this usb port....

how could i do this?

kind regards

Nov 21 '05 #6
i testet it with a usb lamp...
the lamp starts lightening, when i connect it to usb...

but even if i deactivate the whole usb-port, it´s always lightening....
:(

"Zabby" wrote:
hi,

i want to turn on/turn off a usb lamp via a vb.net button...
i think i would have to turn on/turn off the power for this usb port....

how could i do this?

kind regards

Nov 21 '05 #7
Hi Zabby,

No disrespect meant toward you at all, but if you want to program for a
specific piece of hardware, acquire it first. Even if a piece of hardware
can be controlled it wont necessarily be to your liking or be reliable! And
that applies to expensive hardware too that boast a control protocol which
doesnt actually work! You might not even like the lamp and have wasted
hours/days of work getting the code for something inadequate.

Anyway, just my opinion.

Nick Pateman.

"Zabby" <Za***@discussions.microsoft.com> wrote in message
news:CF**********************************@microsof t.com...
the usbmonitor is a good idea...
but i think, the usb lamp turns on when you connect it...
but i am not sure, because i don´t have bought one yet...

so i would have to disable or enable the device...

any sample code, how to disable/enable a device in vb.net?

"Anand[MVP]" wrote:
Looks like you have to do somekind of device driver level programming for
this.

Anyway there seem to be a product that traps raw USB data at
http://www.hhdsoftware.com/usbmon.html.My guess is that you will have to
do
something similar.

Another idea is you can try and disable/enable the device, if Windows
recognizes it. I am not sure what API to use, but my guess is that there
is a
set of Windows API/DD API which will allow you to do it.

--
Rgds,
Anand
VB.NET MVP
http://www.dotnetindia.com
"Zabby" wrote:
> hi,
>
> i want to turn on/turn off a usb lamp via a vb.net button...
> i think i would have to turn on/turn off the power for this usb
> port....
>
> how could i do this?
>
> kind regards

Nov 21 '05 #8
wasn´t a good day for you - uh?

in my post i wrote:
"i testet it with a usb lamp...
the lamp starts lightening, when i connect it to usb...
but even if i deactivate the whole usb-port, it´s always lightening...."

so, i didn´t solved my problem yet....

"Nick" wrote:
Hi Zabby,

No disrespect meant toward you at all, but if you want to program for a
specific piece of hardware, acquire it first. Even if a piece of hardware
can be controlled it wont necessarily be to your liking or be reliable! And
that applies to expensive hardware too that boast a control protocol which
doesnt actually work! You might not even like the lamp and have wasted
hours/days of work getting the code for something inadequate.

Anyway, just my opinion.

Nick Pateman.

"Zabby" <Za***@discussions.microsoft.com> wrote in message
news:CF**********************************@microsof t.com...
the usbmonitor is a good idea...
but i think, the usb lamp turns on when you connect it...
but i am not sure, because i don´t have bought one yet...

so i would have to disable or enable the device...

any sample code, how to disable/enable a device in vb.net?

"Anand[MVP]" wrote:
Looks like you have to do somekind of device driver level programming for
this.

Anyway there seem to be a product that traps raw USB data at
http://www.hhdsoftware.com/usbmon.html.My guess is that you will have to
do
something similar.

Another idea is you can try and disable/enable the device, if Windows
recognizes it. I am not sure what API to use, but my guess is that there
is a
set of Windows API/DD API which will allow you to do it.

--
Rgds,
Anand
VB.NET MVP
http://www.dotnetindia.com
"Zabby" wrote:

> hi,
>
> i want to turn on/turn off a usb lamp via a vb.net button...
> i think i would have to turn on/turn off the power for this usb
> port....
>
> how could i do this?
>
> kind regards


Nov 21 '05 #9
The USB ports supply 5V power to whatever is plugged into them. A device can
use the data lines and/or the power lines when plugged into them. Since most
lights don't use the data at all, they'll just get power from the 5V lines.

5V power is always supplied to the ports, even if you disable to USB ports.
There's no method, that I've found anyway, of turning the power off to a USB
port.

Unless you can program the light and send data to it (I don't know of ANY
that you can do this with), you can't do what you want.

--
<i><b>RageInTheMachine9532</b></i><font size="-2">
"<i>...a pungent, ghastly, stinky piece of cheese!</i>" <b>-- The Roaming
Gnome</b></font>
"Zabby" wrote:
hi,

i want to turn on/turn off a usb lamp via a vb.net button...
i think i would have to turn on/turn off the power for this usb port....

how could i do this?

kind regards

Nov 21 '05 #10
Hi Zabby,

actually, a quote from you,

"but i am not sure, because i don´t have bought one yet..."

No need to bad mannored, I was offering my professional advice as I've spent
many an hour controlling hardware via many different protocols, I've even
had to write code to support some via documents before even recieving the
hardware, just to come across problems which needn't have happened.

And I also said "Anyway, just my opinion.", take it or leave it, no skin off
my nose!

Nick.
Nov 21 '05 #11

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

14
by: Ranger West | last post by:
Hello there, Are there any out-of-the box handhelds that run Linux/Apache/MYSQL and PHP? Does Redhat, Suse, or Gentoo support any handhelds? I know the Zaurus comes close, but I've heard...
12
by: Google Mike | last post by:
You know, while working on my moonlight corporation's LAMP project at home this weekend, I couldn't help but wonder if people writing similar projects are solving similar problems with having to...
1
by: Geoff Blake | last post by:
I'm new to linux and I'm trying to set up a LAMP server using Fedora 4 I installed all the relevant packages and have Apache serving static pages ok, however I am unable to access MySql....
2
by: Yogee | last post by:
Hello all, I dont know the exact group where I should post my questions. So, I m doing it on most of the groups which support components of LAMP stack. My client wants to use WAMP ( Windows +...
1
by: athindrans | last post by:
Hi I am new to web devp,I have the following query What are the steps and precautions to take when developing your site on a WAMP server and deploying on a LAMP. Since most of the hosting...
6
by: Gilles Ganault | last post by:
Hello A friend of mine is running a LAMP (PHP, MySQL, Apache, Debian) Web 2.0 site on a dedicated, hosted server with about 300 connected users when it's really busy. The server is an Intel...
39
by: Gilles Ganault | last post by:
Hello, I'm no LAMP expert, and a friend of mine is running a site which is a bit overloaded. Before upgrading, he'd like to make sure there's no easy way to improve efficiency. A couple of...
2
by: mike | last post by:
Hi. I need a web programmer to set up interactive features on a static web site. The project needs are described at http://vitalkids.org My email address shows near the top of the page at...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.