NXT + RCX daisy chain, hardware questions

This is where you talk about the NXJ hardware related topics such as the brick, sensors, LEGO pieces, etc.

Moderators: 99jonathan, roger, imaqine

NXT + RCX daisy chain, hardware questions

Postby DPyro » Sat Jan 27, 2007 11:54 pm

Hi, I am currently trying to have one NXT and two RCX's communicate with each other. Right now, I am thinking of a daisy chain, where two sensor ports are used (data line and clock line) and using the NXT as a master with serial transfer. The clock line will be on the first port/sensor and the data line will be on the second port/sensor. In order to make it work, I will have to emulate some things in software, so I have a few questions =)

1) How fast can the NXT and RCX switch threads (millisecond wise)?
2) How fast can the NXT and RCX activate/passivate a sensor? Do the methods block or return instantly?
3) Is it even possible to do what I'm thinking? =P

Many thanks!
DPyro
New User
 
Posts: 1
Joined: Sat Jan 27, 2007 11:44 pm

Postby bbagnall » Tue Jan 30, 2007 3:47 am

Here's a reply from Charles Manning who is working on I2C support at the moment:
Charles Manning wrote:The adapter's main mission is to allow you to hook up an RCX sensor to an NXT.

No doubt some sort of comms is possible, but that might require considerable effort in software.

It should be possible to implement some sort of I2C link.

It would also be possible (in theory anyway) to use the high speed link on input 4 as a UART. Slow it down a bit and use IR.

It is also possible to re-jig any of the other NXT ports as soft UARTs up to 19200 or so. Not a lot of effort (simpler than I2C).

Possible yes, easy no.


I would also add that you can use the Mindsensors.com IRLink to communicate with the RCX and control motors. I've got a basic driver for this adapter in iCommand and we'll port it to NXJ when we have I2C support.
User avatar
bbagnall
Site Admin
 
Posts: 392
Joined: Fri Aug 04, 2006 4:03 pm

When will it be in NXJ

Postby zimingw » Fri Oct 05, 2007 10:08 am

Hi BB,

Glad to hear you will port IRLink to NXJ! I saw it's in iCommand 0.6 api but not in NXJ 0.4 yet. Any plan when it will be? :shock:

Are you also going to add support for PF Motors? 8)

Regards
zimingw
New User
 
Posts: 11
Joined: Mon Jul 02, 2007 8:33 am

Postby lawrie » Fri Oct 12, 2007 7:56 pm

Now that gloomyandy seems to have a fix for I2C writes, I might have another look at the IRLink and other sensors that needed I2C writes.

I will also investigate the PF motors.
lawrie
leJOS Team Member
 
Posts: 909
Joined: Mon Feb 05, 2007 1:27 pm

Postby lawrie » Mon Oct 22, 2007 10:15 pm

The development version of leJOS in the SVN repository now has an RCXLink class that supports some of the functions of the mindsensors NRLinx-Nx adapter. I have not tried a HiTechnic IRLink yet.

Please let me know what type of communication you want to do between the RCX and the NXT.
lawrie
leJOS Team Member
 
Posts: 909
Joined: Mon Feb 05, 2007 1:27 pm

Postby bbagnall » Sat Oct 27, 2007 6:12 pm

lawrie wrote:The development version of leJOS in the SVN repository now has an RCXLink class that supports some of the functions of the mindsensors NRLinx-Nx adapter. I have not tried a HiTechnic IRLink yet.

Please let me know what type of communication you want to do between the RCX and the NXT.


Well in my humble opinion :) it should mimic the functionality of the iCommand IRLink class, or at least use that as a launching point for better ideas. It's very easy to take the iCommand code and adapt it for NXJ.
User avatar
bbagnall
Site Admin
 
Posts: 392
Joined: Fri Aug 04, 2006 4:03 pm


Return to NXJ Hardware

Who is online

Users browsing this forum: No registered users and 0 guests

more stuff