Home Contents Start Prev 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 Next

More Thoughts

Moanastatus

Moanastatus

Moanastatus

Moanastatus

Moanastatus

Back on the Horse

It has been some time since I tinkered with Moana. I want to look at consolidating radio networks so need to ensure I can get things running smoothly before I start. It wasa godsend labelling all the xbee hardware, saves a lot of time! Where we are:

  • Monana compass still working.
  • Ping sensor maybe not working.
  • PID code all ok.
  • Telemetry from moana to laptop working.
  • Commands from laptop to moana working.

Next tasks:

  • Pull out or create just telemetry parts.
  • See if XCU is available for Mac these days.
  • Get simple two way communication working with two XBees.
  • Get 3rd XBee on the same network.
  • Try point-point from Mac to both XBees, one at a time.
  • Investigate to see if XBee API arduino library is available and how to use it. Otherwise, write one.
  • Modify XBee config to use API and get communication working between two XBees using API library.
  • Modify 3rd XBee config to use API.
  • Try Broadcast from one XBee to the others.
  • See if we can get one XBee as a co-ordinator and send individually to both endpoints.
  • Have a three-way communication-fest.

Consolidating XBee Networks

Currently we have two Xbee Networks:

  • Telemetry - for logging and sending mowing commands.
  • The Quasi-Differential GPS.

These systems have been built in isolation so currently use 4 XBees in two point-point pairs. Ideally we only want one network so the goal would be able to send everything over the same channel. If we made a star-network, where the XBee on Moana was the hub, it could commincate back to the laptop and also receive remote GPS updates. With Series 1 XBee, I believe this can be achieved using point-to-multipoint topology. I just need to ascertain how to set this up and ensure we can have a star-to-point and point-to-star communication rather than a broadcast network.

To keep network traffic down, the RemoteGPS communication may need to be an reuest/response rather than a periodic push from the RemoteNode.

XBee in API mode

After a bit of investigation, I see there are a couple of options available to me (with the Series1 XBees I am using). It would be possible to continue using the XBees in their transparent (AT) mode and put an addressing protocol around each message (eg [ADD1]message or [ADD2]message). We just broadcast each message and need to filter out the messages we need. A second alternative is to change the XBees to run in API mode. This wraps everything in a frame packet and handles the protocol for us. It will be a bit more complex and probably require libraries to extract the data from the packets. If such libraries exist for the arduino, then all there is a bit of a learning curve. If I need to write them myself, it may be better to stick with AT mode and a custom protocol. It may also be ononous if I am using the arduino logging terminal as I just want raw text, not binary packets although a wrapper function could be used in Serial.print().

It appears we could set up moana as a 'co-ordinator' node and the remote GPS and laptop as 'endpoint' nodes. As part of the protocol, each can send to a specified address or broadcast using FFFF.

Radio Control

Should I ever need it, it would be possible to use a standard radio-control handset and receiver and wire it into the XBee handler on Moana. We could also intercept a button press to switch to autonomous mode. This may be useful for safety reasons, being able to take control of the machine at a distance in case the XBee went out of range.


August 2020


Home Contents Start Prev 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 Next