<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.0.4" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: New Review - NXT Digital Sensor Ports</title>
	<link>http://nxtasy.org/2006/08/09/new-review-nxt-digital-sensor-ports/</link>
	<description>LEGO Mindstorms NXT Blog Forums Community Downloads Tutorials</description>
	<pubDate>Tue, 06 Jan 2009 21:02:05 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.4</generator>

	<item>
		<title>by: Legoguy</title>
		<link>http://nxtasy.org/2006/08/09/new-review-nxt-digital-sensor-ports/#comment-108</link>
		<pubDate>Wed, 09 Aug 2006 19:26:47 +0000</pubDate>
		<guid>http://nxtasy.org/2006/08/09/new-review-nxt-digital-sensor-ports/#comment-108</guid>
					<description>I've been trying to read sensor values from the US sensor for a while now, and cannot for the life of me get a valid response back from the NXT. First I'm sending this command:
00 05 03 0b 00
(which sets the sensor to LS 9v, raw mode)
So far, so good.

Then this, which may be incorrect, because the SDK says "R+0x03" for the last byte of the US sensor's "read measurement byte" command, and never says what R is-- does it mean literal ASCII R (hex 52 + 03 = 55)? I've had no luck trying that.. so for now I've had R = 0 (though I have tried several values for it before).
00 0f 03 03 01 02 42 03

This gives no error itself but when I go to wait for a &#62;1 return from the lowspeed status check, 00 10 03, I get error 'dd' (communication bus error) when no program is running and occasional error '20' (pending comm transaction in progress) when a program IS running.

This is the only spot where LEGO was either unclear or seems to have left out information. Critical information. No docs ANYWHERE say what R means, unless I'm completely missing something.</description>
		<content:encoded><![CDATA[<p>I&#8217;ve been trying to read sensor values from the US sensor for a while now, and cannot for the life of me get a valid response back from the NXT. First I&#8217;m sending this command:<br />
00 05 03 0b 00<br />
(which sets the sensor to LS 9v, raw mode)<br />
So far, so good.</p>
<p>Then this, which may be incorrect, because the SDK says &#8220;R+0&#215;03&#8243; for the last byte of the US sensor&#8217;s &#8220;read measurement byte&#8221; command, and never says what R is&#8211; does it mean literal ASCII R (hex 52 + 03 = 55)? I&#8217;ve had no luck trying that.. so for now I&#8217;ve had R = 0 (though I have tried several values for it before).<br />
00 0f 03 03 01 02 42 03</p>
<p>This gives no error itself but when I go to wait for a &gt;1 return from the lowspeed status check, 00 10 03, I get error &#8216;dd&#8217; (communication bus error) when no program is running and occasional error &#8216;20&#8242; (pending comm transaction in progress) when a program IS running.</p>
<p>This is the only spot where LEGO was either unclear or seems to have left out information. Critical information. No docs ANYWHERE say what R means, unless I&#8217;m completely missing something.
</p>
]]></content:encoded>
				</item>
</channel>
</rss>
