Since I don't have this train control, I bridged pins 2 and 3 on the connector.
With the following result:
The send strings are sent one after the other.
However, the receive string contains the total result on one line, twice.
I recommend:
- Outputting the received data in the text window
- Processing the route data line by line
Sending a command
Querying the result
Updating the track plan
- Performing as few actions as possible in the event subroutines
but rather in the main program (so it's best to only pass flags).
With the following result:
The send strings are sent one after the other.
However, the receive string contains the total result on one line, twice.
I recommend:
- Outputting the received data in the text window
- Processing the route data line by line
Sending a command
Querying the result
Updating the track plan
- Performing as few actions as possible in the event subroutines
but rather in the main program (so it's best to only pass flags).