On Sat, 15 Aug 2020 20:47:51 -0700 (PDT), in
gmane.comp.hardware.beagleboard.user set_
<
functt-Re5JQEe...@public.gmane.org> wrote:
>
>I mean, I can test UART connections b/t the two boards. This is not my
>concern. I am trying to use one script to control both boards. I mean, I
>can break them up and try that setup too.
>
>I would rather have _________ work to make one script compiled communicate
>my interests to the boards at my disposal.
>
I believe you are going to have to define some sort of distributed
communication protocol, and run some sort of command interpreter on the
second board. The first board would then have to format and send commands
over the link to the second board for execution. The command definitions
will have to cover all operation categories you want to perform on the
second board (set motor speed, or whatever it is supposed to do), and
probably include return values too.
Depending upon how you create this protocol library, it may be possible
to, say, run the command processor on each board using TCP/IP and listening
on "commandport", and your master script would open sockets to
"localhost:commandport" and "otherhost:commandport". This way, you use the
same command sequences for both boards (and can expand if needed --
"anotherhost:commandport").
Your top-level control script only needs to know the IP/port for each
controller board. You run the same processor code as a server on each
board.
--
Dennis L Bieber