Connect two SPIKE Prime hubs to communicate with each other
Click to enlarge photos.
Connect cable in port B or SPIKE 1 and port A of SPIKE 2. Cross connect both Tx-to-Rx lines. Connect both grounds.
Using Thonny, another Python IDE, or this two IDE interface created by Chris Rogers, run SPIKE1_SendB.py on SPIKE 1 and then run SPIKE2_ ReceiveA on SPIKE 2.