Cerb40 connected with ENC28J60 problems with serial port com1 & com2

Hi,

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.

Regards

@ 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.

:frowning: :frowning: :frowning: :frowning:

it’s only 12byte that I need to capture ::slight_smile: @ 9600 bps (mifare reader)

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)
http://www.ivar.cz/katalog1/MF7_20/MF7-20_technicky_manual_TM951060-02.pdf

@ d-ray - If you can control when you need to capture the data, you can try to disable Ethernet during the capture.