Allegro.cc - Online Community

Allegro.cc Forums » Off-Topic Ordeals » billion dollar idea

This thread is locked; no one can reply to it. rss feed Print
 1   2   3 
billion dollar idea
piccolo
Member #3,163
January 2003
avatar

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 idea is so simple but easily over looked that if i explain to much i may lose my opportunity to reach my goals.

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
-------------------------------
i am who you are not am i

Jonatan Hedborg
Member #4,886
July 2004
avatar

???::)

piccolo
Member #3,163
January 2003
avatar

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
-------------------------------
i am who you are not am i

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
avatar

come on guys why mess around i have to jump on this fast
i cant say much because the form is tied to google

edit: thanks ill look right now

wow
-------------------------------
i am who you are not am i

mEmO
Member #1,124
March 2001
avatar

You could always try "usb programming C" as a search term...

---------------------------------------------
There is only one God, and Connor is his son!
http://www.memocomputers.com
Happy birthday!

piccolo
Member #3,163
January 2003
avatar

thanks ill stick that in Google after i finish checking out the msdn site.

wow
-------------------------------
i am who you are not am i

Thomas Harte
Member #33
April 2000
avatar

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?

GullRaDriel
Member #3,861
September 2003
avatar

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
That question has been asked multiples times and always skipped by piccolo. Or I missed something, did I ?

"Code is like shit - it only smells if it is not yours"
Allegro Wiki, full of examples and articles !!

Vanneto
Member #8,643
May 2007

I hope the TV guy isn't seeing this. ;D

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
avatar

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
but American just got this country to comply with international copy right laws for a different reason. thats going to back fire on them now.

wow
-------------------------------
i am who you are not am i

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. ;D

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
avatar

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
-------------------------------
i am who you are not am i

Arthur Kalliokoski
Second in Command
February 2005
avatar

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 the red "x" that closes a window, really isn't red, but white on red background.

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
avatar

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);
in the program loop

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:
ok i got it to pulse by adding

CloseHandle(hCom);
at the end

but not the program is run a little slow

EDIT

THANKS A LOT GUYS
I got the proof of concept working.

Im going to call around to see about getting a pattern.

wow
-------------------------------
i am who you are not am i

Mark Oates
Member #1,146
March 2001
avatar

patent is the word you're looking for

--
Visit CLUBCATT.com for cat shirts, cat mugs, puzzles, art and more <-- coupon code ALLEGRO4LIFE at checkout and get $3 off any order of 3 or more items!

AllegroFlareAllegroFlare DocsAllegroFlare GitHub

Matthew Leverton
Supreme Loser
January 1999
avatar

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
avatar

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 :o

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? :P

--
Thomas Fjellstrom - [website] - [email] - [Allegro Wiki] - [Allegro TODO]
"If you can't think of a better solution, don't try to make a better solution." -- weapon_S
"The less evidence we have for what we believe is certain, the more violently we defend beliefs against those who don't agree" -- https://twitter.com/neiltyson/status/592870205409353730

piccolo
Member #3,163
January 2003
avatar

yes it serial port. im using yellow and white wire from a mouse.

i am using this to do the pulse

hCom2 = CreateFile(ComPortName,
GENERIC_READ | GENERIC_WRITE,
0, // exclusive access
NULL, // no security
OPEN_EXISTING,
0, // no overlapped I/O
NULL); // null template

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
-------------------------------
i am who you are not am i

Thomas Fjellstrom
Member #476
June 2000
avatar

Or instead, you can use a signal line, and just write data to the port to pulse the signal ::)

--
Thomas Fjellstrom - [website] - [email] - [Allegro Wiki] - [Allegro TODO]
"If you can't think of a better solution, don't try to make a better solution." -- weapon_S
"The less evidence we have for what we believe is certain, the more violently we defend beliefs against those who don't agree" -- https://twitter.com/neiltyson/status/592870205409353730

piccolo
Member #3,163
January 2003
avatar

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
-------------------------------
i am who you are not am i

Timorg
Member #2,028
March 2002

Would it be easier to hack your keyboard and turn the scroll lock light on and off?

while(1)
{
      set_leds(KB_SCROLOCK_FLAG);
      rest(1000);
      set_leds(-1);
      rest(1000);
}

____________________________________________________________________________________________
"c is much better than c++ if you don't need OOP simply because it's smaller and requires less load time." - alethiophile
OMG my sides are hurting from laughing so hard... :D

piccolo
Member #3,163
January 2003
avatar

thanks that dose look faster ill give it a try.

wow
-------------------------------
i am who you are not am i

23yrold3yrold
Member #1,134
March 2001
avatar

Thread title: billion dollar idea
Thread maker: piccolo

Oh; this outta be good ....

click

--
Software Development == Church Development
Step 1. Build it.
Step 2. Pray.

 1   2   3 


Go to: