Search found 14 matches

by spiked33
20 Feb 2012, 23:57
Forum: Mindstorms Software
Topic: BluetoothWrite - locking up NXT
Replies: 4
Views: 4126

BluetoothWrite - locking up NXT

As a continuation of a previous discussion, I just did some testing and here is what I am experiencing; https://lh5.googleusercontent.com/-LEPtqd3oaWY/T0Lb0mg8FVI/AAAAAAAABl8/RcxY_XiQlys/s800/sc1.png ignore all but the bottom right black window - that is a 'terminal' connected via bluetooth to the N...
by spiked33
20 Feb 2012, 23:46
Forum: Mindstorms Software
Topic: Really Unexpected Task Behavior
Replies: 25
Views: 24843

Re: Really Unexpected Task Behavior

I was posting my code just now, having completed testing. I will start a new thread specific to bluetooth and we can drop the IDE talk. My bricxCC does not have any of that debugging stuff. But I dropped back a version because the latest did not match up line numbers with errors and the old one did....
by spiked33
20 Feb 2012, 19:48
Forum: Mindstorms Software
Topic: Really Unexpected Task Behavior
Replies: 25
Views: 24843

Re: Really Unexpected Task Behavior

Ok, I am downloading XE2 - i will have a look. The thing is, SharpDevelop has an editor already written, by several people over many years, and is on par with visual studio - I don't think you and I can accomplish the same. I would love to talk you into the dark side, but I realize you need/want to ...
by spiked33
20 Feb 2012, 18:20
Forum: Mindstorms Software
Topic: Really Unexpected Task Behavior
Replies: 25
Views: 24843

Re: Really Unexpected Task Behavior

John, I'm pretty sure my PC side code is correct. It works fine when I use a mailbox send type API on the lego. using bluetoothwrite from the lego, I never see any data (same PC code). But as we all know, never say never and I will keep looking at my code to see if I may have a problem. I was going ...
by spiked33
20 Feb 2012, 06:53
Forum: Mindstorms Software
Topic: Really Unexpected Task Behavior
Replies: 25
Views: 24843

Re: Really Unexpected Task Behavior

Ok, now I'm even a little bit more confused. Creates 2 connections, so I should use com6 to send and com7 to receive? The C++ communication library I believe deals with the NXT protocol. I don't want protocol, I want a raw serial stream (except the length bytes, I can live with those). I will take a...
by spiked33
20 Feb 2012, 03:28
Forum: Mindstorms Software
Topic: Really Unexpected Task Behavior
Replies: 25
Views: 24843

Re: Really Unexpected Task Behavior

In my first attempt, I was doing 1 write then exiting (which in itself could be a problem I suppose). My latest attempts are not locking machine up, but all I get is an occasional buffer of 0s. I hate to bug you, when I know I have more digging to do myself (i've read the legos bluetooth guides seve...
by spiked33
19 Feb 2012, 03:39
Forum: Mindstorms Software
Topic: Really Unexpected Task Behavior
Replies: 25
Views: 24843

Re: Really Unexpected Task Behavior

Thanks again John, you are correct. I am in the call anything and see what it does mode.

I have since tried the plain bluetooth write, and saw the characters on the PC, but then the NXT locks up hard. So I still have some experimenting to do.
by spiked33
18 Feb 2012, 21:59
Forum: Mindstorms Software
Topic: Really Unexpected Task Behavior
Replies: 25
Views: 24843

Re: Really Unexpected Task Behavior

Thanks, I will. I will also look a little later at RemoteWrite. I'm trying to come up with the equivalent of the LeJOS RConsole. Just writing to the serial bluetooth stream without the mailbox paradigm would be fine. didn't get too far; task main() { byte consoleHandle; int bl = 5; byte Buff[5] = {'...
by spiked33
18 Feb 2012, 18:02
Forum: Mindstorms Software
Topic: Really Unexpected Task Behavior
Replies: 25
Views: 24843

Re: Really Unexpected Task Behavior

I'm quite sure it is possible to log data to the NXT filesystem, I'm not sure about the API though. Have you considered making a PID line follower? enZe26ZGlaE that was the "I did not want to do it the way I've seen it done 1000 times before" part. I'm sure PID would improve what I've got...
by spiked33
18 Feb 2012, 07:11
Forum: Mindstorms Software
Topic: Really Unexpected Task Behavior
Replies: 25
Views: 24843

Re: Really Unexpected Task Behavior

This is my first 'fully self' project, from LDD for the first time, to NXC for the first time to really programming on the NXT for the first time, so expect a thousands mistakes. Add to that a 38+ year programmer, who has always used 'printf' as a debugging tool when nothing else is available, and I...