Hi,
I am having a strange behavior with the serial port on Raptor.
I have a barcode scanner (symbol ls2208) plugged via RS232 module on socket 4 and a T43 display to the Raptor.
The code read by the scanner is shown on display. The problem is that the raptor stops processing the barcodes if I stop sending barcodes for a couple of minutes, sometimes even seconds. This happens with a barcode scanner and also with any other serial test frame sent to the raptor’s serial port, so it seems logic to discard the barcode scanner as being the problem.
I migrated the application from a spider board to the raptor. With the spider the barcode reader behaves without issues, and the code is exactly the same.
I shrinked the application to remove code not related with the issue, and I can reproduce the missbehavior on the Raptor with the following app on Gadgeteer:
namespace GW_Tests
{
public partial class Program
{
void ProgramStarted()
{
//RS232 module on raptor socket 4
rs232.Configure(9600, SerialParity.None, SerialStopBits.One, 8, HardwareFlowControl.NotRequired);
rs232.Port.LineReceived += Port_LineReceived;
displayT43.DebugPrintEnabled = true;
displayT43.SimpleGraphics.DisplayText("Program started", Resources.GetFont(Resources.FontResources.NinaB), GT.Color.Yellow, 80, 80);
}
void Port_LineReceived(Serial sender, string line)
{
displayT43.SimpleGraphics.Clear();
displayT43.SimpleGraphics.DisplayText(line, Resources.GetFont(Resources.FontResources.NinaB), GT.Color.Yellow, 80, 80);
}
}
}
from the last three days, I have been testing all kind of options to make the serial port stable, without luck. even tried the serial port with NETMF instead of gadgeteer, but the serial port also stops working with the app written for plain NETMF.
Can someone from GHI or the community give advice if I am doing something wrong here or try to reproduce the issue to discard a bad raptor board from my side?
Thanks ???