x10 protocol DLL

Developed or developing a new product in PureBasic? Tell the world about it.
Fred
Administrator
Administrator
Posts: 18237
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

x10 protocol DLL

Post by Fred »

Hello,

I needed to use the x10 protocol on Windows but found nothing so I ported a linux lib to windows (x10 protocol is used to control elements like a plug, a store, etc.. trough electrical wire). A little DLL is available, and sources too (in C), and a little PB console program.

You can grab it here: www.purebasic.com/extra/x10_win32.zip

Bye,

Fred.
User avatar
griz
Enthusiast
Enthusiast
Posts: 167
Joined: Sun Jun 29, 2003 7:32 pm
Location: Canada

Post by griz »

Hi Fred, thanks for doing this! :D

Turning a device on/off via command line works great :

Code: Select all

x10controller COM2: A 2 ON

Code: Select all

x10controller COM2: A 2 OFF
Now Pure Basic can controll the AC electricity in my home! 8)
LarsG
Enthusiast
Enthusiast
Posts: 713
Joined: Mon Jun 02, 2003 1:06 pm
Location: Norway
Contact:

Post by LarsG »

griz wrote: Now Pure Basic can controll the AC electricity in my home! 8)
UH-OH!! :lol:

AMD Athlon XP2400, 512 MB RAM, Hercules 3D Prophet 9600 256MB RAM, WinXP
PIII 800MHz, 320 MB RAM, Nvidia Riva Tnt 2 Mach 64 (32MB), WinXP + Linux
17" iMac, 1.8 GHz G5, 512 MB DDR-RAM, 80 GB HD, 64 MB Geforce FX 5200, SuperDrive, OSX
Num3
PureBasic Expert
PureBasic Expert
Posts: 2812
Joined: Fri Apr 25, 2003 4:51 pm
Location: Portugal, Lisbon
Contact:

Post by Num3 »

Yeah!

Look what happened to poor LarsG during beta testing

Image
Dare2
Moderator
Moderator
Posts: 3321
Joined: Sat Dec 27, 2003 3:55 am
Location: Great Southern Land

Post by Dare2 »

LOL. :lol:
Doobrey
Enthusiast
Enthusiast
Posts: 218
Joined: Sat Apr 26, 2003 4:47 am
Location: Dullsville..population: me
Contact:

Re: x10 protocol DLL

Post by Doobrey »

Sweet, thanks Fred ..
Don`t tell me you`re making an X10 controlled coffee maker and beer cooler for those late night coding sessions :wink:

Also, does anyone here know much about using X10 in the UK?
How does the signal stay limited in the house, and not affect anyone else on the same street with any X10 devices?
Dare2
Moderator
Moderator
Posts: 3321
Joined: Sat Dec 27, 2003 3:55 am
Location: Great Southern Land

Re: x10 protocol DLL

Post by Dare2 »

NEWSFLASH
Citizens of the United Kingdom were truely united last night. United in shock and irritation, after a freakish prank perpetrated by a computer guru known only as "Doobrey".

The lights of the entire nation flashed out a 10-4 message in morse after "Doobrey" had hooked into the national grid with his x10 technology.

"It was pure hell!" said one citizen, who wishes to remain anonymous. Inside sources doubt this, believing it was Pure Basic.

Authorities are now seeking "Doobrey" and a shady accomplice known only as "Fred". "Doobrey" was last seen driving an austin A10 down the M10, x10 installed in the ignition to boost speed 10x. It is believed "Doobrey" now intends to head to Southern California, there to hang 10 whilst evaluating the US national grid.
LarsG
Enthusiast
Enthusiast
Posts: 713
Joined: Mon Jun 02, 2003 1:06 pm
Location: Norway
Contact:

Post by LarsG »

:lol: :twisted:

AMD Athlon XP2400, 512 MB RAM, Hercules 3D Prophet 9600 256MB RAM, WinXP
PIII 800MHz, 320 MB RAM, Nvidia Riva Tnt 2 Mach 64 (32MB), WinXP + Linux
17" iMac, 1.8 GHz G5, 512 MB DDR-RAM, 80 GB HD, 64 MB Geforce FX 5200, SuperDrive, OSX
Fred
Administrator
Administrator
Posts: 18237
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: x10 protocol DLL

Post by Fred »

Dare2 :lol:
Doobrey wrote:Sweet, thanks Fred ..
Don`t tell me you`re making an X10 controlled coffee maker and beer cooler for those late night coding sessions :wink:
Sure I do :wink:

I don't know about the UK, but in France each house is independant, because of the electrical block (where all the electric items are controlled) filter any variation in the AC. Anyway, this techno is somewhat cool, I use it to start the wash-machine at work from a web page (and yes, it even work from a mobil phone) so all is ready to pack when I comeback :twisted:
Berikco
Administrator
Administrator
Posts: 1326
Joined: Wed Apr 23, 2003 7:57 pm
Location: Belgium
Contact:

Re: x10 protocol DLL

Post by Berikco »

Fred wrote:Dare2 :lol:
Doobrey wrote:Sweet, thanks Fred ..
Don`t tell me you`re making an X10 controlled coffee maker and beer cooler for those late night coding sessions :wink:
Sure I do :wink:

I don't know about the UK, but in France each house is independant, because of the electrical block (where all the electric items are controlled) filter any variation in the AC. Anyway, this techno is somewhat cool, I use it to start the wash-machine at work from a web page (and yes, it even work from a mobil phone) so all is ready to pack when I comeback :twisted:
Now Fred can flush the toilet from everywhere....to bad it fails from time to time :lol:
thefool
Always Here
Always Here
Posts: 5875
Joined: Sat Aug 30, 2003 5:58 pm
Location: Denmark

Re: x10 protocol DLL

Post by thefool »

Berikco wrote: Now Fred can flush the toilet from everywhere....to bad it fails from time to time :lol:
:P
Doobrey
Enthusiast
Enthusiast
Posts: 218
Joined: Sat Apr 26, 2003 4:47 am
Location: Dullsville..population: me
Contact:

Re: x10 protocol DLL

Post by Doobrey »

Berikco wrote: Now Fred can flush the toilet from everywhere....
I really hope he doesn`t plug the X10 module in back to front.... 8O
Doobrey
Enthusiast
Enthusiast
Posts: 218
Joined: Sat Apr 26, 2003 4:47 am
Location: Dullsville..population: me
Contact:

Re: x10 protocol DLL

Post by Doobrey »

Dare2 wrote:NEWSFLASH
Citizens of the United Kingdom were truely united last night. United in shock and irritation, after a freakish prank perpetrated by a computer guru known only as "Doobrey".
LMAO..Nice one Dare2..but just cos I have long hair doesn`t make me a guru..
Although I`ve caused a few of them coding on the Amiga :wink:

BTW, did anyone see that Blinkenlights thing done a few years back, where they wired up the lights of an office block, then used it as a display to play Pong ?
Dare2
Moderator
Moderator
Posts: 3321
Joined: Sat Dec 27, 2003 3:55 am
Location: Great Southern Land

Re: x10 protocol DLL

Post by Dare2 »

Doobrey wrote: .. where they wired up the lights of an office block, then used it as a display to play Pong ?
lol. You're not joking .. ? :D
ebs
Enthusiast
Enthusiast
Posts: 561
Joined: Fri Apr 25, 2003 11:08 pm

Post by ebs »

It's for real:

http://www.blinkenlights.de/

Eric
Post Reply