Friday, February 26, 2010

Socket Register Part 2

Hi,

This week we will finish off with the final sections of the Socket Registers.
Below is a list of socket registers:

0x415 - The IP Type of service field specifies the protocol number in the IP header. This is used for IP RAW mode

0x416 - The Time to Live register specifies the datagram’s life time in the IP header

0x420~0x421 - The Transfer Free Size registers allows the user to determine the amount of free space remaining in the transfer buffer. You should check if this register is free or not before
sending packets.

0x422 ~0x423 - The read pointer register indicates the current read position of the transfer buffer. This register is used in our driver to determine which data is being read.

0x424~0x425 - The write pointer register indicates the current write position of the transfer buffer. This register is also used in our driver to determine if there is any new data being written.

0x426~0x427 - The Received Size Register indicates the amount of byte received in the RX buffer. You should check this register to know if there is any new data received from the network.

0x428~0x429 - The read pointer register indicates the current read position of the receive buffer. This is used in the driver to determine if there are any unread data in the buffer.

As you can see, there are some essential registers which you might use from this list, but one thing I would like to highlight is that the 0x426~0x427 - The Received Size Register is important. You should use it to check for any new data received or you can use the interrupt PIN and Sn_IR register as an alternative method to check for new data.

Thank you! We will continue next week.

WIZnet HK

Friday, February 19, 2010

Smart Meter Success Story

WIZnet’s Germany distributor, DacomWest, has successfully applied the WIZ120SR into the smart metering application. Meters with GPIO, UART, or SPI interfaces can use the WIZ120SR to enable Ethernet connectivity.

The diagram below shows the implementation of the Smart metering application.


The WIZ120SR is applied at the client side of the application. The meter will periodically send data via Ethernet to the server which stores all the records.

Wednesday, February 10, 2010

Virtual serial port program (WIZ VSP) official

WIZnet officially launches the virtual serial port program (WIZ VSP). This free software allows PC programs and networking devices to communicate with each other. The WIZ VSP redirects serial data from a local/virtual serial port to a remote networking device with serial port.

As a result, when users use WIZnet’s Serial to Ethernet products to enable network connectivity, they do not need to make changes to their existing serial software.

For more information,, please visit this website.
http://www.wiznet.co.kr/rg4_board/list.php?&bbs_code=en_pds

To learn more about our WIZ VSP program, please view our webinar at
http://www.wiznet.co.kr/rg4_board/list.php?&bbs_code=en_pds

Translated from Johnny Yan's Post.
WIZnet Chinese Blog:http://blog.sina.com.cn/s/blog_61b952280100gqnf.html

Friday, February 5, 2010

Socket Register 1

Hi All,

This week we will go through the Socket Registers.














The socket register allows the user to select the different protocols such as TCP, UDP, IPRAW, MACRAW, PPPoE.

The Socket Command Register provides the different command to the chip such as OPEN socket, Send, Receive, and so forth.

The Socket Interrupt socket provides the socket interrupt status such as send ok, timeout, receive, disconnect, and connect.

Socket State this registers allows the user to check the current state in the state machine of our chipset.

The source port register is used for set the source port for the UDP and TCP socket connection

If the destination hardware is known, the user can input it in the Destination Hardware Address register. However, this is optional because the hardware address can be resolved by the Address resolution Protocol.

When using multi cast mode, you also nee to specify the Destination Hardware Address, Destination IP, and Destination Port. These parameters should match the multicast network.

Next week we will continue to discuss Socket Register Part2.

Thank you

WIZnet HK

Friday, January 22, 2010

Common Register Part 3

Hi all,


We are finishing off the common register in this entry. Here are the last sets of common register











The Authentication Type in PPPoE is for ADSL modem use. This setting is depended on your internet service provider. The PPP LCP Request Timer and PPP LCP Magic Number are also used for the ADSL Modem.

The Unreachable IP and Port register are used for the UDP mode. Whenever, the IP address and port is unreachable. These values are written into these registers.

If you got any questions, please feel free to ask me. Thanks


Wiznet Hong Kong


Thursday, January 21, 2010

2010年,a new beginning with smart metering


In the year 2010, many new applications are being developed. One of the most anticipated application for this year is Smart Metering.

The smart meter will gather data through sensors, electric and water meters. Once the data are gathered, they are sent out to the internet through the W5100.Using a smart meter, the Electric and Water companies can collect and monitor these data without being physically at the site.

Users can monitor their electric usage in real time to reduce their electric bill. This application is beneficial for those countries who are developing renewable energy.
A block diagram is shown below:

Thanks.
Translated from Johnny Yan, on 17th Jan 2010.

Friday, January 15, 2010

Common Register Part 2

Hi,

We will continue to go through the Common Registers.
In this entry, I will provide more details on the RX and TX buffer Memory register.
Here is a brief summary on how to seup the RX and TX buffer memory


According to the Value of S1 and S0, the memory is assigned to the socket within the range of 8KB.
If there is not enough memory to be assigned, the socket should not be used. The initial value is 0x55 and
the 2K memory is assigned to all 4 sockets respectively.

For Example) When setting the register as 0xAA, the 4KB memory will be assigned to each socket. However, the total memory size is 8KB.
The memory is normally assigned starting from the socket 0. In this example, 4KB will be assigned to Socket 0 and Socket 1 respectively. Therefore, these two sockets used up all 8KB memory available. Socke 2 and Socket 3 will not be usable.

In W5100, you will find the function sysinit() to setup the buffer register.
As you can see, the first parameter is for the transfer buffer and the second parameter is for the receiving buffer.

void sysinit(uint8 tx_size, uint8 rx_size)

For example, to share the buffer memory equally (2KB) you can use the following code:

sysinit(0x55,0x55);


Notice that both Receiving buffer and Transfer Buffer should have the same setting

We will continue next week again on the common register part 3. Thank you

See you

WIZnet Hong Kong