|
|
| billion dollar idea |
|
piccolo
Member #3,163
January 2003
|
Hey every one. I just though up a billion dollar idea that was inspired by my game THE GAME. The idea will be on the bill gates level if i do it right. This will help me complete the other research so i can get my space ship up and running. I will also free my home country from World Bank debt. The only issue is i do not know how to make a driver that will send a timing signal generated by c++ to a dive that has 3 pins. Dose any one know any tutorials on how to program for and use computer ports in c++ or c. Thanks for any help. and remember i am a man of honer wow |
|
Jonatan Hedborg
Member #4,886
July 2004
|
|
|
piccolo
Member #3,163
January 2003
|
well if it was unclear i was asking is any one knew any tutorials on how to send signal to ports in c++ or c. example usb com port those look like the only ones i have or a Google term so i can find it wow |
|
Steve++
Member #1,816
January 2002
|
Perhaps you could take a look at the driver development kit on the msdn site. |
|
piccolo
Member #3,163
January 2003
|
come on guys why mess around i have to jump on this fast edit: thanks ill look right now wow |
|
mEmO
Member #1,124
March 2001
|
You could always try "usb programming C" as a search term... --------------------------------------------- |
|
piccolo
Member #3,163
January 2003
|
thanks ill stick that in Google after i finish checking out the msdn site. wow |
|
Thomas Harte
Member #33
April 2000
|
I don't think the timing characteristics of USB are particularly reliable. If you don't need the machine to do anything else, it'd probably be easiest just to find a machine with a serial port and write to that from a DOS or Windows 95/98 (i.e. before Windows was properly guarding hardware resources) program. Probably the safest thing to do for reliable timing would be to find a machine with an actual PC beeper inside and reroute the signal from that. The beeper signal can be programmed to connect directly to a hardware timer, so your code could just set the signal going then stop. EDIT: I can't really post references now, I'll try to provide some later. EDIT2: piccolo — you're not an American? [My site] [Tetrominoes] |
|
GullRaDriel
Member #3,861
September 2003
|
Thomas said: EDIT2: piccolo — you're not an American?
That's a fucking question man. We do not know if piccolo is even alive ;-p "Code is like shit - it only smells if it is not yours" |
|
Vanneto
Member #8,643
May 2007
|
I hope the TV guy isn't seeing this. Anyway, piccolo, you can always show us that device you created/were going to create that would produce infinite energy. It would make you rich and end a lot of issues in this world. Please? In capitalist America bank robs you. |
|
piccolo
Member #3,163
January 2003
|
Thomas Harte that is so smart. i don't think i can find one of the computers with the speaker beepers in it. but that made me think. i could probably rig the device to take input from the sound card speaker mini jack. that way i can use allegro to send signals with playsample() i need to find out what type of voltage the sound card out puts. Quote: piccolo — you're not an American?
nope wow |
|
Vanneto
Member #8,643
May 2007
|
Just so you know, Ive bookmarked this thread, I'll be reminding you of this project for a long time now. So you better complete it. Anyway, why don't you use inline assembler? I don't know what you are using, but in MinGW, you can do something like this: // this asm code is actually bullshit. :( void send_signal(int param) { asm("mov %1, %eax"); // more asm for sending signals etc. } You'll have to find some tutorials on ASM and sending data out through ports. Maybe this can somehow help you, though I'm not sure if its connected to what you want to do. For creating a driver you will have to use MS Driver kit like Steve++ suggested. I knew there was some way to do this. Basically, in Windows, you can open any port like it was a file and then send data to it and receive data. Take a look here. In capitalist America bank robs you. |
|
piccolo
Member #3,163
January 2003
|
Vanneto that is very useful just in case the allegro function call dose not work out. this way i can send raw data to the sound card jack. i just tested the device with a mimi jack cable that has 2 male rca jacks on the other end. when i touch both sleeves and pulse touch the tips the device activates. after i find the voltage for the sound card im going to try a mini to mini jack connection and plug it in to the speaker jack. wow |
|
Arthur Kalliokoski
Second in Command
February 2005
|
If it doesn't have to be extremely fast, do it with djgpp and DosBox0.72. I believe Piccolo has stated in the past that he was a U.S. citizen but has moved to another country (possibly on a shakedown test of the spaceship) They all watch too much MSNBC... they get ideas. |
|
Johan Halmén
Member #1,550
September 2001
|
Quote: you can always show us that device you created/were going to create that would produce infinite energy. I thought he had invented something with anti-gravity. If the sound card approach fails, there are also the capslock and numlock leds, which can be set or reset with some function calls in dos.h, IIRC. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Years of thorough research have revealed that what people find beautiful about the Mandelbrot set is not the set itself, but all the rest. |
|
piccolo
Member #3,163
January 2003
|
this is what i have to far guys. I have taken about a serial mouse. I found that the the yellow and white wires go from 0 - 21.8 volts when i call HANDLE SerialInit(char *ComPortName, int BaudRate); the device only needs 5v so i put some resister in to low the voltage. the new problem is that the voltage dose not go back down until the program is terminated. so the voltage is not pulsing like it needs to be. so i am currenly trying to rig the SerialInit() so that it UN-Inits what ever it inits and this will give me my pulse of 5 v edit: CloseHandle(hCom); but not the program is run a little slow EDIT THANKS A LOT GUYS Im going to call around to see about getting a pattern. wow |
|
Mark Oates
Member #1,146
March 2001
|
patent is the word you're looking for -- |
|
Matthew Leverton
Supreme Loser
January 1999
|
He won't need to file a patent. Once this time machine is working, he can just go back in time and get rid of the patent office. |
|
Thomas Fjellstrom
Member #476
June 2000
|
Quote: Once this time machine is working, he can just go back in time and get rid of the patent office. I would actually like to see that happen piccolo: what port are you using? If its the serial port, maybe you should look up the specs and wiring diagram so you actually know which wire to use? -- |
|
piccolo
Member #3,163
January 2003
|
yes it serial port. im using yellow and white wire from a mouse. i am using this to do the pulse hCom2 = CreateFile(ComPortName, CloseHandle(hCom2); im tuning it to get the best resalt with this set up the handle calls are pretty slow but i should able to make up for it wow |
|
Thomas Fjellstrom
Member #476
June 2000
|
Or instead, you can use a signal line, and just write data to the port to pulse the signal -- |
|
piccolo
Member #3,163
January 2003
|
yeah thats what i wanted to do that but it would haven taken longer to get the prof of concept up and running. the read and right where handing up the program when i tried them. probably because the protocol was a blocking one do you know good any docs on how the whole thing work. the next step is it improve what i have here. all so im going to start researching my real signal transition miedem wow |
|
Timorg
Member #2,028
March 2002
|
Would it be easier to hack your keyboard and turn the scroll lock light on and off?
____________________________________________________________________________________________ |
|
piccolo
Member #3,163
January 2003
|
thanks that dose look faster ill give it a try. wow |
|
23yrold3yrold
Member #1,134
March 2001
|
Thread title: billion dollar idea Oh; this outta be good .... click -- |
|
|
|