erpc icon indicating copy to clipboard operation
erpc copied to clipboard

Serial eRPC on macOS takes a long time (10secs) with `ret = read(fd, buf + len, size - len);`

Open andrew-mclachlan opened this issue 4 years ago • 5 comments

More a question than a bug.

I'm setting up an eRPC serial connection on macOS with /dev/cu.usbmodem0001A00000001 and baud rate 921600. I am finding that the server is receiving and sending bytes fine but the read is taking a small amount of time compared with Linux and Windows. In other words, ret = read(fd, buf + len, size - len); takes about 10 seconds to complete in some cases. When compared to Linux where the read is instantaneous.

Any thoughts?

andrew-mclachlan avatar May 08 '20 11:05 andrew-mclachlan

This could be a mismatch between eRPC structures on device Vs. host. Need to debug to check.

andrew-mclachlan avatar Jun 20 '20 13:06 andrew-mclachlan

Hi @andrew-mclachlan , is this issue still valid or have you already solved that? I am sorry not being to help you with macOS.

MichalPrincNXP avatar Jul 14 '20 13:07 MichalPrincNXP

Unfortunately I have not been able to spend time on debugging more. Hoping to do that shortly. Wondered if anyone else had seen similar.

andrew-mclachlan avatar Jul 14 '20 16:07 andrew-mclachlan

Hi @andrew-mclachlan , from previous posts I know @hale2bopp is working with erpc on MacOS (see #88 , #90 ). Maybe she could help you ...

MichalPrincNXP avatar Jul 15 '20 21:07 MichalPrincNXP

Maybe can be fixed by #183

Hadatko avatar Jun 06 '23 06:06 Hadatko