ETHERNET DATA SENDING ISSUE FROM SERVER TO CLIENT using mikroC PRO for PIC32

General discussion on mikroC PRO for PIC32.
Post Reply
Author
Message
DILIP1441
Posts: 13
Joined: 30 Jun 2020 06:16

ETHERNET DATA SENDING ISSUE FROM SERVER TO CLIENT using mikroC PRO for PIC32

#1 Post by DILIP1441 » 20 Oct 2020 19:15

I want to implement 1 server and 4 clients using UDP with Pic32,

I need help to implement Uni casting Response From the Server to Clients.

Example:
I want to send the Data from Client-1 to Server then Server need to respond
Same as above Client-1 case for Client-2 and Client-3 also,
But I want to send the data from Client-4 to Server then i don't want response from Server,the server should be neglect the responding for Client-4 or Some User Required Clients.

I need help to implement that above requirement using MikroC PRO fro PIC32 with PIC32MX795F512L Microcontroller.


I'm attaching present I'm using code please check it once and try to correct my mistakes on below code or give me the suggestions to overcome my issue.

Please help me to overcome this issue and help me to implement my requirement like as above example.

Thank You.
Attachments
Ethernet_Demo_main.rar
(1.46 KiB) Downloaded 85 times

DILIP1441
Posts: 13
Joined: 30 Jun 2020 06:16

Re: ETHERNET DATA SENDING ISSUE FROM SERVER TO CLIENT using mikroC PRO for PIC32

#2 Post by DILIP1441 » 22 Oct 2020 06:09

please help me to solve my issue

aparna k
Posts: 55
Joined: 17 Jul 2019 07:17

Re: ETHERNET DATA SENDING ISSUE FROM SERVER TO CLIENT using mikroC PRO for PIC32

#3 Post by aparna k » 24 Oct 2020 16:00

Same issue I'm facing so please anyone help us to solve this issue

DILIP1441
Posts: 13
Joined: 30 Jun 2020 06:16

Re: ETHERNET DATA SENDING ISSUE FROM SERVER TO CLIENT using mikroC PRO for PIC32

#4 Post by DILIP1441 » 02 Feb 2022 06:52

Dear Micro Electronika Team,
I'm Implementing the Ethernet TCP Server Code using MikroC pro for Pic32 using below Rx HANDLER
unsigned int Ethernet_UserTCP(unsigned char *remoteHost, unsigned int remotePort, unsigned int localPort, unsigned int reqLength, TEthPktFlags *flags)
{
unsigned int len = 0;
Ethernet_putBytes("ACK1",4);
len = 4;
}

in my code i need TCP sending Function in main function but above function is not possible to use it on main function, so please guide me how to use the tcp sending function in main function

Thomas.Pahl@t-online.de
Posts: 158
Joined: 24 May 2008 15:55
Location: Germany

Re: ETHERNET DATA SENDING ISSUE FROM SERVER TO CLIENT using mikroC PRO for PIC32

#5 Post by Thomas.Pahl@t-online.de » 04 Feb 2022 09:30

As i understand ethernet library, that is not possible. Produce strings in main but sending is done in tcp_user routine.

only udp packets can be send in main with send_udp

DILIP1441
Posts: 13
Joined: 30 Jun 2020 06:16

Re: ETHERNET DATA SENDING ISSUE FROM SERVER TO CLIENT using mikroC PRO for PIC32

#6 Post by DILIP1441 » 21 Mar 2022 05:11

Can you please share any Example code for TCP Client using Ethernet Library in MikroC pro for PIC32

Post Reply

Return to “mikroC PRO for PIC32 General”