Welcher TCP Stack wird von AVRco unterstützt?

Jest
 
Avatar
 
Subject:

Re: Welcher TCP Stack wird von AVRco unterstützt?

 · 
Posted: 27.05.2010 - 11:04  ·  #25
Guys,

i am realy sorry but I am so bad in german language, that I hardly understand what you wrote about TINA and W5100. :-) Right now I am in middle of a project where I wanted to use 424J600 but today I changed my mind and switched to W5100 - higher implemented stack.

So, the question is, how is TINA and W5100 on xMega.

Thank you and best regards,
Andrej
rh
Administrator
Avatar
Gender:
Location: Germany
Age: 24
Homepage: e-lab.de
Posts: 5558
Registered: 03 / 2002
Subject:

Re: Welcher TCP Stack wird von AVRco unterstützt?

 · 
Posted: 27.05.2010 - 17:56  ·  #26
Hello Andrej,

there is no TCP/IP support in the XMega at this time. A WizNet5100 TCP/IP driver is in preparation for both the Megas and XMegas. Don't ask me when it is finished. :'( :-/

rolf
Jest
 
Avatar
 
Subject:

Re: Welcher TCP Stack wird von AVRco unterstützt?

 · 
Posted: 27.05.2010 - 18:12  ·  #27
Rolf,

Tnx for info. Anyway, I changed my mind again - I go with 424j600. Reason is security and possibility to implement my own solution for IPv6.

Best regards,
Andrej
nwrightson
Benutzer
Avatar
Gender:
Location: Newcastle
Age: 62
Homepage: nweha.homeserver.c…
Posts: 362
Registered: 08 / 2003
Subject:

Re: Welcher TCP Stack wird von AVRco unterstützt?

 · 
Posted: 29.05.2010 - 09:01  ·  #28
Hello Rolf,

I wrote the W5100 driver and sent it to you for comment many many moons ago.
No comment was received?

Neil.
rh
Administrator
Avatar
Gender:
Location: Germany
Age: 24
Homepage: e-lab.de
Posts: 5558
Registered: 03 / 2002
Subject:

Re: Welcher TCP Stack wird von AVRco unterstützt?

 · 
Posted: 29.05.2010 - 13:41  ·  #29
Hello Neil,

yes, I know. But you decided that you will not use the TINA Kernel for your adaption. But I prefer this type of background processing all the necessary jobs. So I decided for myself to wait for Miparos adaption of the Wiznet to our TINA.

rolf
nwrightson
Benutzer
Avatar
Gender:
Location: Newcastle
Age: 62
Homepage: nweha.homeserver.c…
Posts: 362
Registered: 08 / 2003
Subject:

Re: Welcher TCP Stack wird von AVRco unterstützt?

 · 
Posted: 30.05.2010 - 01:56  ·  #30
Hi Rolf,
Thanks for finally responding.
Just in case you were not sure how my driver works.
Here is my driver UDP receive -

If IP_DataAv(pUDPConnection) > 0 then // Step 1
If UDP_Recv(pUDPConnection) then // Step 2
copyblock(@UDPRxBuf,@St_Rx,UDPConnection.PacketInfo.RecLen);
writeln(serout,'UDP Rx ='+St_Rx+'.');
Endif;
Endif;

Here is the same in the TINA interface
if TinaPacketReceived(UDP) then
{ ST:= '';
PTR:= @MyBuf;
for WW:= 1 to UDP^.PacketRecInfo.RecLen do
ST:= ST + Char(Ptr^++ );
endfor;
PTR:= @ST;
Ptr^:= Byte(UDP^.PacketRecInfo.RecLen);
Writeln(Serout,'UDP: ' + ST);
}
TinaResumeReceive(UDP);
endif;

To the end user, they both work in the same way.
With mine it's a 2 step process -
1) Check to see if the W5100 has anything in it's buffers.
2) Read it into the users buffer area.

Perhaps it is step 2 that you think should be done as a background process.
This is extremley fast and is basically just a SPI transfer with a few checks built in and is only done if there is a message waiting.
It would be very easy for the end user to put both of these lines into a process and then set a flag to say there is a message in their buffer.
The advantage in NOT putting the above 2 lines into a separate process is that the SPI port can also be used for other things such as SD/MMC interface. The W5100 has it's own internal buffers, so if a message came in during the SD access, the whole message would be held in the W5100 until the next main loop is performed.
None of the above can be done with the current TINA interface.

Also it would not be to hard to implement the W5100 interrupts.
This interrupt is only generated when a FULL message has been received into the W5100's internal buffers. Again very little overhead on the AVR. This basically saves the Line1 code.

The W5100 buffer allows the user to have a single combined AVR Tx/Rx buffer or a separate Tx & Rx buffer.

The overheads are very small and a system could be run on a Mega32.


I don't understand what your concerns are?


Neil.
rh
Administrator
Avatar
Gender:
Location: Germany
Age: 24
Homepage: e-lab.de
Posts: 5558
Registered: 03 / 2002
Subject:

Re: Welcher TCP Stack wird von AVRco unterstützt?

 · 
Posted: 30.05.2010 - 17:51  ·  #31
Sorry Neil,

we had developed 3 Ethernet drivers in the last years. Each one was an improvement over its predecessor. With the last one, the TINA, all our experiences flow into this driver. So I decided that the TINA must be the base for all coming drivers. We don't want to have another different driver.

The TINA is the ideal basic driver for all possible implementations, from the relative stupid ENC28J60 upto the new WizNet. Because of this I decided to dislike your implementation.

But, of course, if you will donate it for the AVRco I will include it into the system. It should consist of an example and the driver (unit etc). But I'm unable to support it if there are problems or user questions. Then it will be provided as it is. Sorry again.

rolf
pvs-deck
PowerUser
Avatar
Gender:
Age: 53
Homepage: pvs-deck.de
Posts: 1341
Registered: 02 / 2009
Subject:

Re: Welcher TCP Stack wird von AVRco unterstützt?

 · 
Posted: 06.09.2010 - 14:00  ·  #32
Hallo Miparo!
Hallo Rolf!

Quote by miparo

Hi,
wzTina ist fertig und wird diesen Monat noch kommen.

Gruß
Thorsten



Wie siehts denn aktuell aus? Mein Projekt ist jetzt so weit, das ich mit dem Wiznet über SPI anfangen müsste.

Gruß
Thorsten
Selected quotes for multi-quoting:   0

Registered users in this topic

Currently no registered users in this section

The statistic shows who was online during the last 5 minutes. Updated every 90 seconds.
MySQL Queries: 10 · Cache Hits: 14   140   154 · Page-Gen-Time: 0.021831s · Memory Usage: 2 MB · GZIP: on · Viewport: SMXL-HiDPI