That confirms that you now have a good connection for the master to send data to the slave. In this test, it's transferring 16 bytes, but it should support up to 64.
The data that is being transferred is as RAW as it gets, so you will now need to add any error detection you want, as well as data formatting.
If the master just needs to send motor speed values to the slave, put the motor speed values into the outgoing buffer of the master. On the slave, extract those values from the incoming buffer, and set the motor speeds accordingly.
_________________ Matt
Wed Dec 05, 2012 4:48 pm
didiercoll
Novice
Joined: Sat Sep 15, 2012 11:28 am Posts: 67
Re: AMX 13 bridge layer
very clear
you are an expert
and even more ;
very kind from you ;
I will put code as soon as it will work ;
thanks a lot for the time you have spend for me ;
didier
Wed Dec 05, 2012 4:52 pm
didiercoll
Novice
Joined: Sat Sep 15, 2012 11:28 am Posts: 67
Re: AMX 13 bridge layer
Hello
yesterday night ( here ) my NXT brick and me were almost sleeping ;
The reason why they were offset the other day, and it didn't appear to work quite perfectly, is that the master program was started first (or at least it started sending before the slave started listening).
To speed things up, I changed the baud rate from 9600 to 921600, which is 96 times as fast. I also changed the delays, so that the master should now update the slave much more often so that it feels real-time to the user. The update rate should now be roughly 150 times per second.
Users browsing this forum: No registered users and 6 guests
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum