Arduino mega and firmata

Hi,

I'm trying to use the StandartFirmata on an Arduino Mega with an UWP app.

While all is working great with an Arduino Uno, I can't get the mega to connect to the Remote Arduino Experience app from Microsoft or to my own app. I've checked the baud rate and as the mega is supposed to be compatible, I can't see what I'm doing wrong...
Here is the error I get in Visual Studio or in the microsoft app :

A device connection was established, but the device failed handshaking procedures. Verify that your device is configured with StandardFirmata. Message: Catastrophic failure

Pin configuration not receive

Any idea ?

Thanks

Can you get an FTDI cable, and connect it to Serial1, Serial2, or Serial3's pins, and see what comes in on Serial, and what goes out?

I will have a look at what comes in, but it seems that nothing comes out on Serial, the TX led does not blink. But why should I connect the cable on Serial 1, 2 and 3 ?

Thanks for your help, I've been able to solve the problem.
I modified the RemoteDevice.cpp.

What change?

Many thanks.