I am developing an extension for mBlock in order to use a custom shield for the Arduino Nano but I have some issues reading data from serial port with mBlock.
I am using mBlock v3.4.6 and I believe that there is a problem related with the reading of values from the serial port.
I have performed a basic test in order to show the problem. In this test the Arduino Nano is writing the same value on the serial port and mBlock only is able to receive the data when the board is connected the first time. If I disconnect the board and then I connect it again, mBlock seems that does not receive the values properly.
Here are the steps that I have followed:
- This is the Arduino code uploaded to the board.
void setup() {
Serial.begin(57600);
}
void loop() {
Serial.print(15);
delay(250);
}
- Connect with the board from mBlock.
- Once the board is connected the serial monitor start to display the values sent through the serial port.
- Disconnect the board from mBlock.
- Connect the board again.
- Once the board is connected the serial monitor does not display any values.

Could you help me to understand what is happening?
Thanks!
I am developing an extension for mBlock in order to use a custom shield for the Arduino Nano but I have some issues reading data from serial port with mBlock.
I am using mBlock v3.4.6 and I believe that there is a problem related with the reading of values from the serial port.
I have performed a basic test in order to show the problem. In this test the Arduino Nano is writing the same value on the serial port and mBlock only is able to receive the data when the board is connected the first time. If I disconnect the board and then I connect it again, mBlock seems that does not receive the values properly.
Here are the steps that I have followed:
Could you help me to understand what is happening?
Thanks!