Wiz810MJ not receiving data correctly
IO Modules
No replies yet. Be the first to reply.
Join the discussion.
IO Modules
No replies yet. Be the first to reply.
Join the discussion.
Share projects and connect with makers.
Joined before the site update? first.
New to WIZnet Makers?
We sent a verification link to your address. Open it to activate your account, then log in.
Accounts from this email provider are reviewed by an administrator after verification. Approval usually takes one business day.
Already have an account?
Enter your email address. If it belongs to an account, we'll send a link to set a new password. Members who joined before the site update use this to set their password.
If an account uses that address, we sent a link to set a new password. The link works once and expires in 30 minutes.
Know your password?
Need an account?
RE: Wiz810MJ not receiving data correctly
by Eugeny ·
Explain how you transmit information over the network. Open connection, transmit, close? Or you open persistent connection and transfer data over the live socket?
Which software you use to access the chip?
RE: RE: Wiz810MJ not receiving data correctly
by leoo ·
We open a persistent connection and transfers over the live socket.
I use Flowcode v 7 to programme a PIC.
RE: Wiz810MJ not receiving data correctly
by Eugeny ·
Persistent connection assumes TCP, and you know that under TCP no data is expected to be lost by the protocol design, however it can be omitted due to incorrect data flow handling.
As you say another implementation works well, thus we assume that sending device is operating correctly.
It is important to know how remote device sends this data - does it send in single packet (7 bytes in one packet), or one character in one packet (thus 7 packets - some terminal programs work this way - it sends single char as soon as it is typed).
So I suspect that something wrong is happening at the side of W5100, but for this you will have to review the driving code.
For example, you read RX_RSR value in loop; while RX buffer is being filled, and if it is filled not with all 7 chars at a time, but char-by-char, at some point in time RX_RSR pointer can be less than 7. Thus in general in the W5100 state checking loop you must wait for required number of chars received (instead of just waiting for RX_RSR!=0) before you go to data acquisition phase.
RE: Wiz810MJ not receiving data correctly
by leoo ·
Thank you for the reply.
I will ask our software engineer how the dats is sent and check on Wireshark what is on the wire.
I will also enquire how Flowcode handles the data acquisition to see whether this can be where the problem lies.
Best regards.
Leo
RE: Wiz810MJ not receiving data correctly
by leoo ·
Hi,
To answer your question, the remote device sends the data, i.e. 7 bytes in this test, in 1 packet.
I have attached a Wireshark session. Transmission # 47 shows the PC (192.168.168.10) transmitting the data to the Wiz810MJ (192.168.168.1) via TCP. The data is processed and sent to the commercial device via their serial ports. Transmission # 48 shows the commercial device (192.168.168.2) sending the received serial data, which is one byte, to the PC.
The individual parts of the processes on the device with the Wiz810MJ where checked and the serial sending circuitry and the serial receive/TCP send part of the circuitry works with absolutely no errors. The commercial device also has no errors in either direction.
Unfortunately I have not received any response from the manufacturer of the IDE , so I cannot comment on how the driving code works.
Kind regards.
Leo