473,699 Members | 3,282 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 23598
"Zabby" <Za***@discussi ons.microsoft.c om> 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***@discussi ons.microsoft.c om> 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***@discussi ons.microsoft.c om> 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***@discussi ons.microsoft.c om> wrote in message
news:CF******** *************** ***********@mic rosoft.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 dont 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***@discussi ons.microsoft.c om> wrote in message
news:CF******** *************** ***********@mic rosoft.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>RageInThe Machine9532</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

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

Similar topics

14
2208
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 people have problems running LAMP applications on it. It would be cool to be able to run any LAMP application on sourceforge on a handheld computer.
12
2807
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 complete the project by building an installer and building the user/group administration piece of it. The thought came to me that it would be great if LAMP developers, whether they used MySQL or PostgreSQL, could just simply write the project to...
1
1824
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. PHPinfo() tells me that PHP was built using "--without mysql" in the configure command. Is there a logical reason why they would do this? Will all PHP packages be built like this - how will I know without going through an install?
2
6901
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 + apache + MySQL + PHP ). But the site performance is very slow on windows. I dont know the exact reasons. I have seen some benchmark details on internet. But still they are not
1
1378
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 companies are on LAMP, what are the things which will change for a php/mysql site developed and tested on Apache windows. kindly enlighten
6
2630
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 Celeron 2.4 GHz with 1GB of RAM, a 40GB IDE drive, and a 10Mbps bandwith. Here's what top says:
39
2571
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 things: - MySQL : as much as possible, he keeps query results in RAM, but apparently, each is session-specific, which means that results can't be shared with other users.
2
1732
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 http://vitalkids.org/project.htm PLEASE! I have already been advised of and taken a look at Content Management Systems such as Joomla and Drupal. I still want to hire a LAMP consultant. Thank you for past suggestions. But may we please move...
0
8704
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, well explore What is ONU, What Is Router, ONU & Routers main usage, and What is the difference between ONU and Router. Lets take a closer look ! Part I. Meaning of...
0
8623
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9053
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8894
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
4390
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4636
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3071
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2360
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2015
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.