Sorry for the lack of explanation
The previous post is an emulated netboard on the r858
The frame rate is low because multithreading is disabled
Google Translation
machine 1
send duration 0ms
rec duration 0ms
send duration 0ms
rec duration 0ms
send duration 0ms
rec duration 58ms
send duration 0ms
FrameComplete
machine 2
send duration 0ms
rec duration 0ms
rec duration 0ms
send duration 0ms
send duration 0ms
rec duration 54ms
rec duration 3ms
send duration 0ms
FrameComplete
Ian wrote:I wonder if the send and receive commands are swapped over. There must be some reason why the emulation blocks for an entire frame waiting for the data to arrive. If we can figure this out it should work at basically full speed.
if netboard is sending data
send data packet
fire IRQ4
else
send “empty” packet
receive packet
if netboard is receiving data and packet is not “empty”
copy data into CommRAM
fire IRQ6
execute cycles
Ian wrote:That should work. Normally sending an empty packet will kill the connection as if recv returns 0 it means the tcp connection has closed. But we append a header which is the data size. Might have to modify the receive class a bit to handle this but it should work. So your idea is to sync them with a blocking receive call?
How does syncing happen on the real hardware?
Users browsing this forum: No registered users and 1 guest