Re: [lwip-users] new at lwip, running test on windows using PPP

2017-11-28 Thread zulu4711
could really use just a hint at what I'm doing wrong here. -- Sent from: http://lwip.100.n7.nabble.com/lwip-users-f3.html ___ lwip-users mailing list lwip-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/lwip-users

[lwip-users] new at lwip, running test on windows using PPP

2017-11-26 Thread zulu4711
I'm beginning to look at lwip and the first task is to get something running on a windows system (to try and learn how lwip is working). Target will be to have it running in an embedded system (Cortex M4, Keil development tools). I'm using lwip 2.0.2 and contrib 2.0.1, running in Visual Studio in

Re: [lwip-users] new at lwip, running test on windows using PPP

2017-11-29 Thread zulu4711
Thanks for input Simon, really appreciated! I can confirm that the PPP_INPROC_IRQ_SAFE is set to 1. Basically I have just taken the ppp sample from contrib and added my own "worker thread" that calls the socket functions, maybe I have done something wrong with that !? My init/main looks like

Re: [lwip-users] new at lwip, running test on windows using PPP

2017-11-29 Thread zulu4711
Oh my, I think bý accident PPP_INPROC_IRQ_SAFE was NOT set !! I will rerun my test with that one set. Really sorry about the confusion... -- Sent from: http://lwip.100.n7.nabble.com/lwip-users-f3.html ___ lwip-users mailing list

Re: [lwip-users] new at lwip, running test on windows using PPP

2017-11-30 Thread zulu4711
Simon, just an update! I think it was the PPP_INPROC_IRQ_SAFE not being set that was my problem. My test has now been running for 21 hours without any problem (sending and receiving a total of 14 messages) I will extend the testing with some more threads doing work (sending/receiving messages)

Re: [lwip-users] Looking for sys_arch.c for Keil RTX RTOS (the old one..)

2017-12-08 Thread zulu4711
I'll answer my own request :) I made a sys_arch that works with Keil RTX. If any one stumbles over the same need, let me know. -- Sent from: http://lwip.100.n7.nabble.com/lwip-users-f3.html ___ lwip-users mailing list lwip-users@nongnu.org

[lwip-users] Looking for sys_arch.c for Keil RTX RTOS (the old one..)

2017-12-01 Thread zulu4711
As I'm slowly getting lwip up and running (for now in a PC simulation) I'm about to start porting to a target system (Cortex M4 etc). Because of historic reasons (and a large codebase) I need to port lwip using Keil's RTX RTOS (the "old one", before all this CMSIS stuff :) ) So, is there maybe one

Re: [lwip-users] Crash when doing stresstest with ppp and sockets/UDP

2017-12-21 Thread zulu4711
Thanks for input Simon! Yes, it seems like a threading violation like I had before and this is surely because of me not having a full insight to what is legal to call and what is not legal to call in the stack when running in threaded mode. I checked, and I called ppp_close() from another thread

Re: [lwip-users] Crash when doing stresstest with ppp and sockets/UDP

2018-01-10 Thread zulu4711
Any comments on this ? It seems to work fine, have had it running on a testsystem for a week or more.. -- Sent from: http://lwip.100.n7.nabble.com/lwip-users-f3.html ___ lwip-users mailing list lwip-users@nongnu.org

Re: [lwip-users] Crash when doing stresstest with ppp and sockets/UDP

2017-12-21 Thread zulu4711
Thanks for input! I'm sorry, but I need to take a couple of steps back now (english is not my native language...) First of all the initialization sequence. In my main() I changed now to: dial the modem starts a thread that will eventually feed serial data to pppos_input() once

Re: [lwip-users] Crash when doing stresstest with ppp and sockets/UDP

2017-12-21 Thread zulu4711
Thanks for input Sylvain! I'm sure that I'm doing something wrong, I just need to find out what ;) In the project this will eventually go into, I have around 300.000 lines of C code and more than 50 separate threads running so a "non RTOS" operation is not possible. I was led to believe (not

Re: [lwip-users] Crash when doing stresstest with ppp and sockets/UDP

2017-12-20 Thread zulu4711
Code from the application: //--- // //--- #define __MODULE__ "Application.c" int insnumber=0; #define PPP_USERNAME "Admin"

Re: [lwip-users] Crash when doing stresstest with ppp and sockets/UDP

2017-12-20 Thread zulu4711
and lwipopts.h /* * Copyright (c) 2001-2003 Swedish Institute of Computer Science. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * 1. Redistributions of

Re: [lwip-users] Crash when doing stresstest with ppp and sockets/UDP

2017-12-20 Thread zulu4711
I should also add that it is not the same place the crash occurs, I have seen it other places (but did not get a snapshot of where it was but it was also while the line was dropped and when the socket send function was active) Any ideas ? -- Sent from:

[lwip-users] Crash when doing stresstest with ppp and sockets/UDP

2017-12-20 Thread zulu4711
I'm slowly working my way thru a setup with LWIP (2.0.3). So far success rate is pretty good :) I have a testsetup running on a PC (windows) using the sys_arch of the "contrib" with my own modifications to the main application. The setup uses PPP over a GPRS modem. Between the PPP and the modem I

[lwip-users] Looking for FTP client that uses Raw API

2018-10-28 Thread zulu4711
In my quest for getting lwip running on my system (which seems to be very stable and running perfectly), I'm on the lookout for a simple FTP client (only need RETR and STOR). I have been running with lwftp (https://github.com/gezedo/lwftp) but there are one major shortcoming in this library. I

Re: [lwip-users] Looking for FTP client that uses Raw API

2018-10-28 Thread zulu4711
Thanks for pointers to https://github.com/toelke/lwip-ftpd Im afraid this is only a FTP _server_ ? As I wrote, I'm in the need for a FTP client :) -- Sent from: http://lwip.100.n7.nabble.com/lwip-users-f3.html ___ lwip-users mailing list

Re: [lwip-users] Looking for FTP client that uses Raw API

2018-10-29 Thread zulu4711
Sergio R. Caprile wrote > Laurent used to participate on this list. I collaborated with a (very) > small part of the code, post your suggested/required changes on github > and we can follow up from there. > > ___ > lwip-users mailing list > lwip-users@

Re: [lwip-users] Looking for FTP client that uses Raw API

2018-10-29 Thread zulu4711
zulu4711 wrote > Thanks for pointers to https://github.com/toelke/lwip-ftpd > Im afraid this is only a FTP _server_ ? > As I wrote, I'm in the need for a FTP client :) > > > > -- > Sent from: http://lwip.100.n7.nabbl

[lwip-users] How to get lwIP to use "internet sharing via Bluetooth" ?

2018-10-29 Thread zulu4711
Hello, I have a project where I have a Bluetooth LE module (CYBLE 212019 module from Cypress http://www.cypress.com/documentation/datasheets/cyble-212019-00-ez-ble-creator-module). Now, I would like to somehow use that to connect to a "normal" mobile phone that is set up to share its internet

[lwip-users] UDP and Raw API, lwip running with RTOS

2018-10-01 Thread zulu4711
I have lwip up and running in an embbeded system using a RTOS (Keil RTX kernel) and this seems to work alright. I'm testing with sockets and netconn UDP, all ok (over PPP).I'm also beginning to look at the raw API (this will fit the project best in the end), and this works also. Now, I know that

Re: [lwip-users] EXTERNAL: UDP and Raw API, lwip running with RTOS

2018-10-01 Thread zulu4711
Gregory, yes, thats absolutely also a (very good!) possibility, however it would make things more complicated for me (lwip is taking over in an existing project) and I would like to avoid messaging. Hence I'm looking for a way of calling the stack (raw API) from other threads and doing the LOCK

Re: [lwip-users] EXTERNAL: UDP and Raw API, lwip running with RTOS

2018-10-02 Thread zulu4711
Simon, I edited my post on the forum afterwards (as I also discovered that it was unreadable). Anyway, I have included it here also, hope it works ? -- Sent from: http://lwip.100.n7.nabble.com/lwip-users-f3.html ___ lwip-users mailing list

Re: [lwip-users] UDP and Raw API, lwip running with RTOS

2018-10-02 Thread zulu4711
Simon, I access it here: http://lwip.100.n7.nabble.com/UDP-and-Raw-API-lwip-running-with-RTOS-td33221.html -- Sent from: http://lwip.100.n7.nabble.com/lwip-users-f3.html ___ lwip-users mailing list lwip-users@nongnu.org

Re: [lwip-users] UDP and Raw API, lwip running with RTOS

2018-10-02 Thread zulu4711
Simon, Sorry for that ! My "everyday" reading of lwip topics is done on nabble, hence I did the question there. Anyway, here is the original question, Hope it is readable now. I have lwip up and running in an embbeded system using a RTOS (Keil RTX kernel) and this seems to work alright. I'm

Re: [lwip-users] UDP and Raw API, lwip running with RTOS

2018-10-02 Thread zulu4711
Thanks Simon, I will try LWIP_ASSERT_CORE_LOCKED() also (good idea!). This also forces me to upgrade to 2.1.0 (running at 2.0.3 at the moment) -- Sent from: http://lwip.100.n7.nabble.com/lwip-users-f3.html ___ lwip-users mailing list

Re: [lwip-users] 2 netifs and using netif_set_default() problems

2019-01-29 Thread zulu4711
Thanks Sergio and Simon! Makes sense what you both write, and as I guessed, it was my lack of understanding that was the biggest problem ;) I had the idea that the opened connection would continue to use the netif that was default (and used) when it was opened (as it is still "up"!), but this is

[lwip-users] 2 netifs and using netif_set_default() problems

2019-01-25 Thread zulu4711
Hope someone can explain or help with this... I have a small problem with lwIP (or rather the problem is me not understanding how things work). I have lwIP (2.1.2 STABLE) running with 2 different netif at the same time, one is using PPP (over 3G/4G cellular) and the other is using wireless LAN