Thank you very much for your answers. I am able to receive my data from both
clients now at the same time.
One strange issue or at least something I do not understand still remains :
I can receive all incoming data but when I try to send dummy data back in
the receive callback, after
about 20 sec
U are right, but I don't know where the mistake is. I can debug it and the
breakpoints in myCallback1 and myCallback2 are hit.
The also debugged the init_Server and the binding or listen gave no error.
Both connections are initiated correctly.
I do init:
void init_Server(void)
{
struc
Hi,
I apologize myself.
I (uC) am the server and I initiate two connections with IP_ADDR_ANY but
different ports.
The PC is the Client and from here I connect to the Server.
Hi,
Do you mean two connections that you initiate from your device to two
different IP's
or two connection
Hello,
I am using lwip 2.0.2 RAW API and I have a question depending multiple TCP
Connections.
I create two connections without problems. Over each of them I can send and
receive data.
When a single client sends me data every 1ms, my receive callback function
(tcp_recv(pcb, myCallback1)) gets pe
Hello,
by changing MEM_SIZE to 24 * 1024 my memerr disappeared.
Unfortunatelly I still have link errors and I cannot find a docu in the wiki
about it.
Link
Xmit22888
RECV10120
FW 0
DROP1264
CHKERR 0
LENERR 0
MEMERR 0
RTERR 0
PROTERR 0
Thank you very much for your answers.
It finally (partly) works now :)
I had a priority problem in my freertos which made the lwip init task
call too late.
I am able to send data outside of the lwip thread now.
I am still worried because in my stats I see the following problems/errors:
Link
Xmit
> In my freertos task (outside lwip) I do following:
>
> [..]
>
> tcpip_callback_with_block(WTF, tcp_active_pcbs, 0);
Why on earth would you pass 'tcp_active_pcbs'? Wherever you got that
from: tell them this is wrong and they should stop spreading such horrible
code examples!
---> p
Hello,
I am using lwip 2.0.2 RAW API + freertos 8.2.3
I am able to establish a connection and I can receive data
without any problems.
I would like to know what is the best way to send data outside
the lwip thread.
In my freertos task (outside lwip) I do following:
void SEND_TASK(v
I cannot because my webserver is already running with raw api.
In my Send task I try now…
tcpip_callback(tcp_write(pcb, ucrecBuff, supersize, TCP_WRITE_FLAG_COPY),NULL);
tcpip_callback(tcp_output(pcb), NULL);
but without success. After the first message sent the system crashed.
I thin
11, 2017 at 12:07 PM, Werner Motz wrote:
Thank u for your answer.
But what is the proper way to use tcp_write() and tcp_output()? Where can I use
them?
Would it be correct to do:
LOCK_TCPIP_CORE();
tcp_write();
tcp_output();
UNLOCK_TCPIP_CORE();
If I do so, how can I ensure, that I can
Thank u for your answer.
But what is the proper way to use tcp_write() and tcp_output()? Where can I use
them?
Would it be correct to do:
LOCK_TCPIP_CORE();
tcp_write();
tcp_output();
UNLOCK_TCPIP_CORE();
If I do so, how can I ensure, that I can still receiving data? Don’t I block
t
Hello,
I am using lwip 2.0.2 RAW API + freertos 8.2.3.
I have to send a lot of data received by CAN to
Ethernet.
I receive CAN data in a CAN Interrupt and enque them here.
In a 3ms task I periodically check the queue for new data
and send them via tcp_write() and tcp_output().
It seems to
12 matches
Mail list logo