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