1. You are viewing our forum as a guest. For full access please Register. WindowsBBS.com is completely free, paid for by advertisers and donations.

Port programming

Discussion in 'PC Hardware' started by great desert, 2010/12/06.

  1. 2010/12/06
    great desert

    great desert Inactive Thread Starter

    Joined:
    2010/12/05
    Messages:
    2
    Likes Received:
    0
    Hello there, I need some help... can you tell me about a simple proramming with usb. I need example for it, as how to make a program to turn on/off a led via usb.. thx..
     
  2. 2010/12/06
    wildfire

    wildfire Getting Old

    Joined:
    2008/04/21
    Messages:
    4,649
    Likes Received:
    124
    Hi great desert, welcome to windowsbbs :D

    You'd be better asking in one of the many programming forums out there. I will say what seems like a simple task could cause you a great deal of headache, you're looking at writing a driver for a start not just a two liner application program.

    If you post what language you're using I may be able to direct you to a more suitable board.
     
    Last edited: 2010/12/06

  3. to hide this advert.

  4. 2010/12/10
    mattman

    mattman Inactive Alumni

    Joined:
    2002/06/10
    Messages:
    8,198
    Likes Received:
    63
    I would be a novice :p :D. Find out what turns on or off the the switch. It is probably a registry setting (or be set by the registry). There are some programs that will identify registry changes. Make up a registry edit or make up a .bat file that will run it.

    (I expect...) You can disable USB in the registry, the hardware/device settings or the BIOS. You will have little control over the BIOS :).

    If I wanted to make a system that didn't run USB, I would make up a Hardware Profile that didn't run it. Look up "hardware profiles" in Help and Support.

    DO YOUR HOMEWORK! Hint...look up your information, check the possibilities, as long you have done your research (and don't just want us to solve it for you), ask your tutor. He/she has set the question. Do you want us to give you the magic answer or do you want to find the solution for yourself? What would your tutor/lecturer prefer?

    Research, yes, but find out how these things work, I expect that is what you are learning.

    Matt
    Edit: "led via usb ", didn't pick that up. wildfire made mention.
     
  5. 2010/12/10
    wildfire

    wildfire Getting Old

    Joined:
    2008/04/21
    Messages:
    4,649
    Likes Received:
    124
    Yep, sadly the days of hitting the hardware direct are long gone :(
     
  6. 2010/12/26
    great desert

    great desert Inactive Thread Starter

    Joined:
    2010/12/05
    Messages:
    2
    Likes Received:
    0
    thanx for your attention... actually, I want to try to controlling the leds via usb, like I control the leds via DB25 or RS232, but use USB isn't more easier than while I use paralel/serial port. if I use paralel/serial port I just give logic 0 or 1 on the spesicified pin after address port was initialized but many rules confuse me when I try to use USB port..

    for programming language, I usually use assembly language for uP Programming, but I also can use VB or C++/java to Desktop programming,, I realy confuse with usb programming..... please help me.. hikz T.T .....

    sory I can't speak english good.... thanx.....
     
  7. 2010/12/26
    wildfire

    wildfire Getting Old

    Joined:
    2008/04/21
    Messages:
    4,649
    Likes Received:
    124
    C++ would probably be your best bet, I don't frequent cprogramming.com but it appears to be fairly active. I'd suggest you ask there.

    @Arie, I hope I haven't broken netiquette here by posting information about another board but that one is more appropriate for great desert's question.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.