I’m using a cerb40 connected with a network adapter.
I need to capture data from 2 com ports en send some data over network.
Serial ports are working great as long as I’m not initialize the ENC28 adapter.
EthernetENC28J60(SPI.SPI_module.SPI1, Generic.GetPin(‘A’, 13), Generic.GetPin(‘A’, 14), Generic.GetPin(‘B’, 10));
After defining the ethernet adapter the serial ports are missing data.
Is there a link with the SPI interface? or can i use other pins?
Or what can be the problem.
@ d-ray - It’s an issue in NETMF itself. Networking disables interrupts which can cause a loss of data on UART. See https://netmf.codeplex.com/workitem/2354
Thanks for the fast answer.
That’s really bad news for my projects…
Is that an issue with all the versions of NETMF?
Any work around?
@ d-ray - Sadly there is no work around. You can try lower baudrates or only one serial port if possible.
most mifare readers are capable of communicating thru UART, SPI or I2C. I’m using I2C with ethernet and have no issues at all. So maybe thats suitable for your project
@ Patrick Thanks!
But the readers are only serial data. (and long cables)
@ d-ray - If you can control when you need to capture the data, you can try to disable Ethernet during the capture.