One program - Multiple Props
Humanoido
Posts: 5,770
There was a thread with a lot of speculation on this.
Has anyone perfected a method to load one program
into multiple props at the same time?
Has anyone perfected a method to load one program
into multiple props at the same time?
Comments
A number of people have experimented with one Prop loading several others. With a fanout of 7, you could quickly load up a lot of Props.
Another option would be for you to develop your own downloader where the downloader is permanently loaded into an EEPROM on each Prop, sort of like what's done with the Propeller Backpack. You could do your downloader so it can handle a "party line" so many Props could be loaded at once.
In the thread, BradC explained clearly why some Propellers would fail to properly load. In summary:
The download starts with the internal clock which is slow and not all Propellers would start on the same phase.
The one responding Propeller in the protocol could report success when other Propellers were not ready.
As suggested, one Propeller acting as a download/monitor for the others may work.
Good luck with that.
Define a boot protocol that the boot loader uses such that:
Junks of code (256 bytes say) are "broadcast" to all Props simultaneously.
All Props verify a checksum on the received code.
Props reply with ACK or NACK (OK or not) to each junk.
Replies are made at slightly different times so that they don't shout on the line simultaneously.
Timing is determined by an ID number held in each Props boot code.
The ID is also returned in the ACK/NACK
The loader at the PC end "broadcasts" the junks, listens for replies, does some retries when any NACK happens.
Somehow Get BradC to add this loader to BST [noparse]:)[/noparse]
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
For me, the past is not over yet.