• AVR Freaks

Helpful ReplyHot!lwIP PIC32 port - new title : CycloneTCP a new open source stack for PIC32

Page: 12 > Showing page 1 of 2
Author
aminos
Starting Member
  • Total Posts : 79
  • Reward points : 0
  • Joined: 2011/04/19 03:46:51
  • Location: France, Nançay
  • Status: offline
2014/05/22 05:02:04 (permalink)
0

lwIP PIC32 port - new title : CycloneTCP a new open source stack for PIC32

Hello,
 
Does a PIC32 port for lwIP (open source TCP/IP Stack) exist ?  Google wasn't finding anything worth mentioning for lwIP and PIC32 :(
post edited by aminos - 2014/05/28 05:51:31
#1
aminos
Starting Member
  • Total Posts : 79
  • Reward points : 0
  • Joined: 2011/04/19 03:46:51
  • Location: France, Nançay
  • Status: offline
Re: lwIP PIC32 port 2014/05/23 06:15:43 (permalink)
0
Forget about it, I found an awesome and powerful open source TCP/IP stack that can fit easily to FreeRTOS :D
#2
rce
Junior Member
  • Total Posts : 111
  • Reward points : 0
  • Joined: 2006/08/08 13:54:28
  • Location: 0
  • Status: offline
Re: lwIP PIC32 port 2014/05/23 07:36:28 (permalink)
0
Hi Aminos,
Good to hear, would be great if you share you findings (what opensource TCP/IP)  with the forum.


Maybe someone can use it in future.
 
Gerrit
#3
aminos
Starting Member
  • Total Posts : 79
  • Reward points : 0
  • Joined: 2011/04/19 03:46:51
  • Location: France, Nançay
  • Status: offline
Re: lwIP PIC32 port 2014/05/23 09:39:38 (permalink)
4 (2)
Yes sharing is caring !
 
it's a new user called "velbn" who told me about it here : microchip.com/forums/m791950.aspx he deserves to be thanked, because when you search with google for an open source stack for embedded system, this one will not appear in the first results whereas, it's very powerful and has interesting features (like raw socket interface, fits easily in a RTOS, BSD sockets, works under PIC32 because apart Microchip stack, I didn't find another stack which was ported for PIC32, and I was angry because there is open sources stacks for STM32 and other microcontrollers and which fits to an RTOS easily)
 
the stack name is Cyclone TCP/SSL/Crypto from Oryx Embedded oryx-embedded.com/index.html#&panel1-2
and there is drivers for PIC32MX/MZ and other microcontrollers, I took a look at it and I can say it's well organised and clear.
 
I will test it this weekend with an ethernet starter kit and add more informations in this topic, PIC32 deserves a good complete stack !
post edited by aminos - 2014/05/24 09:58:04
#4
rce
Junior Member
  • Total Posts : 111
  • Reward points : 0
  • Joined: 2006/08/08 13:54:28
  • Location: 0
  • Status: offline
Re: lwIP PIC32 port 2014/05/23 15:16:34 (permalink)
0
Aminos,
 
what a nice explanation and reference to your solution.
 
Looking forward to your report/comment on the testing of that stack.
 
Gerrit
post edited by rce - 2014/05/23 15:21:39
#5
aminos
Starting Member
  • Total Posts : 79
  • Reward points : 0
  • Joined: 2011/04/19 03:46:51
  • Location: France, Nançay
  • Status: offline
Re: lwIP PIC32 port 2014/05/28 01:35:33 (permalink)
0
Well this stack is marvellous ! it's a pleasure to work with it ! it's the first stack made by french people !
 
yesterday, I found a bug while receiving packets intended to a BSD socket that make the PIC32 reset, so I send an email to the company and they gave me solutions (a patched version of the stack and another solution) so now everything is good !
 
I created TCP/UDP sockets and they are all working great now ! the code is very clean and beautiful.
 
This is a promising stack for embedded systems, I forget to say that is supports IPv6 so it can play a key role in the internet of things, but its greatest quality is that it's an open source, and a portable stack (multi-platform) so your code will work on other targets
 
Microchip TCP/IP stack (without harmony) doesn't work under an RTOS, and it's not portable, so I encourage people to use CycloneTCP instead, Moreover, the things you do with harmony aren't portable that's why I refuse to work with it. Embedded systems need more open source and portable things ! whatever plateform/target on which you work, you will find solutions.
#6
maxruben
Super Member
  • Total Posts : 3396
  • Reward points : 0
  • Joined: 2011/02/22 03:35:11
  • Location: Sweden
  • Status: offline
Re: lwIP PIC32 port 2014/05/28 02:14:19 (permalink)
0
Do you use the internal 10/100 MAC of the PIC32 for the CYCLONE TCP stack?
 
The product brochure doesn't say that the PIC32 is a supported device with internal MAC but it does say that ENC624J600 and the MRF24WB0M are supported. I haven't looked at the source code yet. Oh, forget about it, I found it - the brochure is obviously a bit dated.
 
I also found this: The open source GPLv2 version CycloneTCP Open is available for free. However the GPL license requires that developers publish the complete source of their applications and make it available to anyone who wants to use it for free.
 
If you don't want to do that you need to pay for it.
 
/Ruben
 
#7
aminos
Starting Member
  • Total Posts : 79
  • Reward points : 0
  • Joined: 2011/04/19 03:46:51
  • Location: France, Nançay
  • Status: offline
Re: lwIP PIC32 port 2014/05/28 05:47:17 (permalink)
0
Yes, I use the internal 10/100 MAC, the product brochure is not updated.
 
for all those who want to use this stack to create BSD sockets : the 1.4.2 version (the latest) there is a bug. It impacts TCP sockets in listening state and all UDP sockets which are not bound to a particular network
interface (for example a TCP socket waiting for incoming connections from any network interfaces). When the socket is associated with an interface (using socketBindToInterface API) this problem does not occur.
Here are two solutions to overcome the problem:
- If you write your own UDP or TCP server, you can call
socketBindToInterface(socket, &netInterface[0]) to make a strong
association between the socket and the underlying interface, before
calling socketListen(socket)
- Alternatively, you can download a patched version of the TCP/IP stack :
oryx-embedded.com/download/CycloneTCP_CycloneSSL_CycloneCrypto_Open_1_4_2d.zip
 
=> this is a part of the email, the support sent me, in the next version the bug will be fixed ! for the moment you can download the CycloneTCP from the link I've posted above !
post edited by aminos - 2014/05/28 05:48:38
#8
GiulioCasini
New Member
  • Total Posts : 3
  • Reward points : 0
  • Joined: 2014/09/30 01:49:44
  • Location: 0
  • Status: offline
Re: lwIP PIC32 port 2014/10/07 07:48:16 (permalink)
0
Hi,
 
I am starting using CycloneTCP stack, too.

I was just wondering, as this is the only discussion I've found on the forum related to this stack, if someone has a good documentation for the API.

Thanks a lot,
 
Giulio
#9
marekb
Starting Member
  • Total Posts : 77
  • Reward points : 0
  • Joined: 2010/10/09 00:28:42
  • Location: 0
  • Status: offline
Re: lwIP PIC32 port 2014/10/25 11:27:44 (permalink)
3 (1)
aminos
Microchip TCP/IP stack (without harmony) doesn't work under an RTOS, and it's not portable, so I encourage people to use CycloneTCP instead, Moreover, the things you do with harmony aren't portable that's why I refuse to work with it. Embedded systems need more open source and portable things ! whatever plateform/target on which you work, you will find solutions.



Oh come on, wrapping MCHP TCP/IP stack (w/o harmony) with needed mutexes/sempaphores (for proper integration with FreeRTOS) is a trival job. I have a 3 ftos tasks which they use stack api w/o problems. So MCHP TCP/IP stack (w/o harmony) does work with RTOS.
#10
Emcy
Super Member
  • Total Posts : 569
  • Reward points : 0
  • Joined: 2008/01/09 03:37:06
  • Location: 0
  • Status: offline
Re: lwIP PIC32 port 2014/10/27 01:05:54 (permalink)
4 (1)
Hi,
This stack can't be used free for a commercial application :
http://oryx-embedded.com/cyclone_tcp.html
 
 
post edited by Emcy - 2014/10/27 01:10:21
#11
nvicchi
Senior Member
  • Total Posts : 73
  • Reward points : 0
  • Joined: 2007/05/08 18:15:10
  • Location: 0
  • Status: offline
Re: lwIP PIC32 port - new title : CycloneTCP a new open source stack for PIC32 2014/10/27 20:20:40 (permalink)
5 (1)
Im currently working on a LwIp port for XC16... if you wanna colaborate we could work together on it...
#12
BasePointer
Senior Member
  • Total Posts : 161
  • Reward points : 0
  • Joined: 2003/11/07 12:42:11
  • Location: Turkey
  • Status: offline
Re: lwIP PIC32 port - new title : CycloneTCP a new open source stack for PIC32 2017/01/26 17:16:03 (permalink)
0
nvicchi
Im currently working on a LwIp port for XC16... if you wanna colaborate we could work together on it...




Hey,
 
I'm highly interested in PIC32+ENC424J600+lwIP implementation. What is the status of your porting?
#13
jgvicke
Super Member
  • Total Posts : 458
  • Reward points : 0
  • Joined: 2010/09/28 20:18:24
  • Location: 0
  • Status: offline
Re: lwIP PIC32 port - new title : CycloneTCP a new open source stack for PIC32 2017/04/07 10:07:33 (permalink)
3 (1)
The CycloneTCP stack is GPL which isn't compatible with the Microchip license for open source projects. This is like WolfSSL where the only way you can use it with Microchip libraries (including the PLIB ones) is to purchase a commercial license. 
 
Just FYI
John Vickers

PIC32 Helpful Tools I have made:
https://rebrand.ly/PIC32MZ144PinMapping
https://rebrand.ly/PIC32MX100PinMapping

Feel free to email me if you have any suggestions for any of these tools.
#14
cybersteve
Starting Member
  • Total Posts : 32
  • Reward points : 0
  • Joined: 2012/04/11 23:39:59
  • Location: 0
  • Status: offline
Re: lwIP PIC32 port - new title : CycloneTCP a new open source stack for PIC32 2017/06/26 01:28:49 (permalink)
0
Aminos....I am planning on using the CycloneTCP stack for a simple UDP project with PIC32MZ. I am having trouble finding my way about this very complete product. Could you help speed me along with a code snippet for creating a UDP socket and sending a block of data?
 
Thanks
#15
malaugh
Super Member
  • Total Posts : 412
  • Reward points : 0
  • Joined: 2011/03/31 14:04:42
  • Location: San Diego
  • Status: offline
Re: lwIP PIC32 port - new title : CycloneTCP a new open source stack for PIC32 2017/06/26 07:50:50 (permalink)
0
Reading the documentation, it sound a lot like Wolf SSL where there is an open source version, but the terms are too restrictive for commercial use.  The documentation details three commercial versions, Lite, Pro and Ultimate, but I cannot find any mention of license terms or costs anywhere on the web site.  Anyone have a link to the pricing?
 
 
#16
RISC
Super Member
  • Total Posts : 5776
  • Reward points : 0
  • Status: offline
Re: lwIP PIC32 port - new title : CycloneTCP a new open source stack for PIC32 2017/06/26 07:55:26 (permalink)
0
Hi,
Cyclone TCP is GPL v2, not Apache (full open source).
Free for development but commercial license is needed when you want to sell a product which uses it, unless you are ready to give out your full application (then it is free).
Regards
 
post edited by RISC - 2017/06/26 08:02:18
#17
jgvicke
Super Member
  • Total Posts : 458
  • Reward points : 0
  • Joined: 2010/09/28 20:18:24
  • Location: 0
  • Status: offline
Re: lwIP PIC32 port - new title : CycloneTCP a new open source stack for PIC32 2017/06/26 08:41:17 (permalink)
0
WolfSSL's licensing is basically the following:
 
1) For a single part number (think one model of refrigerator from Maytag) is $5K
2) For a single product line (think all refrigerators from Maytag) is $25K
3) For a single product group (think all kitchen appliances from Maytag) is $50K or more
 
They don't list on the website because they will work with you somewhat on which category it falls into. For instance I was looking into it for a light source I made. We have multiple part numbers to designate which country power cord goes in the box, and which color LED in the light source, but the driver board/processor/firmware are the same for all part numbers. By definition this would fall into category 2, but really it should only be category 1. They said they would work with us to license under category 1 with limitation on the contract. We didn't end up going that far, but this gives you an idea of what to expect when talking to them.
 
This pricing level is fairly similar to other vendors of FIPS validated encryption modules. If you don't know what FIPS is, you don't want to pay for it! :)
 
Basically if you want to have any military product, it has to be encrypted with a FIPS validated encryption module. This is a long and expensive process (think a year and $100k for a simple product). With WolfSSL that comes with the license because they have already done the validation and maintain the certification through version updates etc.
 
Hope this helps!
John Vickers

PIC32 Helpful Tools I have made:
https://rebrand.ly/PIC32MZ144PinMapping
https://rebrand.ly/PIC32MX100PinMapping

Feel free to email me if you have any suggestions for any of these tools.
#18
cybersteve
Starting Member
  • Total Posts : 32
  • Reward points : 0
  • Joined: 2012/04/11 23:39:59
  • Location: 0
  • Status: offline
Re: lwIP PIC32 port - new title : CycloneTCP a new open source stack for PIC32 2017/06/27 01:49:07 (permalink)
0
I am planning on using the CycloneTCP stack for a simple UDP project with PIC32MZ. I am having trouble finding my way about this very complete product. Can anyone help speed me along with a code snippet for creating a UDP socket and sending a block of data?
 
Thanks
#19
RISC
Super Member
  • Total Posts : 5776
  • Reward points : 0
  • Status: offline
Re: lwIP PIC32 port - new title : CycloneTCP a new open source stack for PIC32 2017/06/27 01:56:30 (permalink)
0
Hi,
If it is a simple UDP project why don't you use Harmony ?
There are out of the box examples
Regards
 
#20
Page: 12 > Showing page 1 of 2
Jump to:
© 2020 APG vNext Commercial Version 4.5