Moderators: roger, 99jonathan, imaqine
robotnik wrote:I updated with the generic firmware (just to check how it goes) before trying with something "stronger", the point is that I'm trying to understand how you send and receive the commands (i guess with lejos.nxt.I2CSensor class, which has both getData and sendData commands already implemented, so you don't need to create another nxtcam class).
gloomyandy wrote:The generic firmware I'm talking about is the firmware required for the second processor on the NXTCam (the PIC16F88 processor). This is what handles none standard communications with the NXT via i2c and is required if you want to use the image capture firmware for the NXTCam. All of the details are provided in this doc:
http://www.mindsensors.com/index.php?mo ... ile_id=941
I'm not sure what you mean by the DF command in your above post.
else if ( (asciiTokenBuffer[0] == 'D') &&
(asciiTokenBuffer[1] == 'F') )
{
/* we should go into frame dump mode */
receivedCmd = dumpFrameCmd;
}
else if ( (asciiTokenBuffer[0] == 'I') &&
(asciiTokenBuffer[1] == 'D') )
{
/* we should go into frame dump mode */
receivedCmd = incrementalDumpFrameCmd;
}else if (receivedCmd == incrementalDumpFrameCmd)
{
/* publish the event that will indicate that
a request has come to dump a frame...this will
be received by the FrameMgr, which will begin
dumping the frame...a short delay is needed
here to keep the Java demo app happy (sometimes
it wouldn't be able to receive the serial data
as quickly as AVRcam can provide it). */
//Utility_delay(100);
PUBLISH_EVENT(EV_DUMP_PARTIAL);
}Users browsing this forum: No registered users and 4 guests