Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 14 Dec 2003 18:25:55 +0100
From:      Steve O'Hara-Smith <steve@sohara.org>
To:        "Steve O'Hara-Smith" <steve@sohara.org>
Cc:        current@FreeBSD.ORG
Subject:   Re: X10 Wireless Technology Inc USB Receiver
Message-ID:  <20031214182555.52690e67.steve@sohara.org>
In-Reply-To: <20031213194940.44073338.steve@sohara.org>
References:  <3F57B0A0.2040508@isi.edu> <20030905072228.3def6a8b.steve@sohara.org> <3F63E246.8030801@isi.edu> <20030915190350.3e0fe0ec.steve@sohara.org> <20030918165710.GB19984@genius.tao.org.uk> <3F69FFC9.80308@isi.edu> <20030918231742.GB41432@genius.tao.org.uk> <3F6DE165.1020404@isi.edu> <20031213194940.44073338.steve@sohara.org>

next in thread | previous in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.

--Multipart=_Sun__14_Dec_2003_18_25_55_+0100_Ak0mc8R+lAtBRh5=
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

On Sat, 13 Dec 2003 19:49:40 +0100
"Steve O'Hara-Smith" <steve@sohara.org> wrote:

SOS> 	Ideas anyone ??

	Talking to myself - I added the 0x80s to init1 and init2 (which I
thought was just protocol fluff) and I got output - it even responds to a
button press on the remote for a while and then it stops working :(
Killing the program, waiting a couple of minutes and trying again makes
it work for a bit again,

	There's something smelly and intermittent going on which may be
my USB hardware.

	New code attached - somebody please give it a whirl.

-- 
C:>WIN                                      |     Directable Mirrors
The computer obeys and wins.                |A Better Way To Focus The Sun
You lose and Bill collects.                 |  licenses available - see:
                                            |   http://www.sohara.org/

--Multipart=_Sun__14_Dec_2003_18_25_55_+0100_Ak0mc8R+lAtBRh5=
Content-Type: application/octet-stream;
 name="ati_remote.c"
Content-Disposition: attachment;
 filename="ati_remote.c"
Content-Transfer-Encoding: base64

I2luY2x1ZGUgPGZjbnRsLmg+CiNpbmNsdWRlIDxzeXMvdHlwZXMuaD4KI2luY2x1ZGUgPHN5cy91
aW8u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iIpOyBleGl0KDEpOyB9CgoJaW92ID0gNTAwMDsKCWVyciA9IGlvY3RsIChyZmQsICBVU0JfU0VU
X1RJTUVPVVQsICZpb3YpOwoJaWYgKGVyciA9PSAtMSkKCQl7IHBlcnJvciAoIlNldCBUaW1lb3V0
Iik7IGV4aXQoMSk7IH0KCgl3ZmQgPSBvcGVuICgiL2Rldi91Z2VuMC4yIiwgT19XUk9OTFkpOwoJ
aWYgKHdmZCA9PSAtMSkKCQl7IHBlcnJvciAoIk9wZW4gdWdlbjAuMiIpOyBleGl0KDEpOyB9CgoJ
ZXJyID0gd3JpdGUgKHdmZCwgaW5pdDEsIHNpemVvZihpbml0MSkpOwoJaWYgKGVyciAhPSBzaXpl
b2YoaW5pdDEpKQoJCXsgcGVycm9yICgiV3JpdGUgaW5pdDEiKTsgZXhpdCgxKTsgfQoJZXJyID0g
d3JpdGUgKHdmZCwgaW5pdDIsIHNpemVvZihpbml0MikpOwoJaWYgKGVyciAhPSBzaXplb2YoaW5p
dDIpKQoJCXsgcGVycm9yICgiV3JpdGUgaW5pdDIiKTsgZXhpdCgxKTsgfQoKCXdoaWxlIChuID0g
cmVhZCAocmZkLCBjLCAyNTUpKSB3cml0ZSAoMSwgYywgbik7Cn0K

--Multipart=_Sun__14_Dec_2003_18_25_55_+0100_Ak0mc8R+lAtBRh5=--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031214182555.52690e67.steve>