TCP/IP connection in gui guider

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

TCP/IP connection in gui guider

1,381 Views
VARSHA_PRIYADARSINI
Contributor II

How to establish any communication protocol like TCP/IP to send and receive data from backend?

0 Kudos
Reply
14 Replies

972 Views
VARSHA_PRIYADARSINI
Contributor II

I'm still looking for a solution. I don't have any hardware, trying with the simulator in windows only. Can you please guide me to establish any network communication protocol?

0 Kudos
Reply

866 Views
HangZhang
NXP Employee
NXP Employee

Hi @VARSHA_PRIYADARSINI 

Without specific information about hardware you are using, it's difficult to give detailed instructions. Here’s a general guide to help you get started:

1. Create a New Project in GUI Guider
  1. Launch GUI Guider and create a new project.
  2. Design Your GUI: Add necessary elements that will interact with the network, like buttons, text fields, etc.
2. Integrate Network Communication Code
Add Network Libraries
• LWIP (Lightweight IP): This is a popular TCP/IP stack for embedded systems. You can use it in a simulated environment.
• Simulator Setup: Configure the simulator to use a virtual network interface.
3. Writing Code
1. Initialize Network Interface: Configure the LWIP stack or similar to work with the virtual network interface.
2. Establish Connection: Write code to connect to a server or another client. This could be done using TCP or UDP protocols.

Hope this will help you.

BR

Hang

0 Kudos
Reply

1,342 Views
HangZhang
NXP Employee
NXP Employee

Hi @VARSHA_PRIYADARSINI 

Can you give me more details?

What does backend refer to?

BR

Hang

0 Kudos
Reply

1,320 Views
VARSHA_PRIYADARSINI
Contributor II

I want to establish a communication protocol between two devices. And i want it to be network connected.

That is the backend can some device which sends data that has to be set in the screen.

Tags (1)
0 Kudos
Reply

1,290 Views
HangZhang
NXP Employee
NXP Employee

Hi @VARSHA_PRIYADARSINI 

Yes, the Gui Guider can display the transmitted and sent data.

Firstly, you need to enable communication between the two boards.

Then, you can use the widgets of the Gui Guider to bind the data that needs to be sent.

 

Hope this will help you.

BR

Hang

0 Kudos
Reply

1,269 Views
VARSHA_PRIYADARSINI
Contributor II

Can we establish a network-based communication?

The data can be sent by a server and that is to be binded by the widgets and displayed in the board. If it is possible, then can you give an idea on how to implement it.

0 Kudos
Reply

1,209 Views
HangZhang
NXP Employee
NXP Employee

Hi @VARSHA_PRIYADARSINI 

Yes, this is possible.
You can first make your board capable of network communication, either via WiFi or Phy.
Then you can use GUI Guider to display the data transmitted through the transmission network.

Hope this will help you.

BR

Hang

0 Kudos
Reply

1,205 Views
VARSHA_PRIYADARSINI
Contributor II

Thank you so much for your input. But I still want to know how to establish the connection between the board and the gui guider IDE and how to bind the widgets with data received? Can you please share your input on this.

 

Regards,

@VARSHA_PRIYADARSINI 

0 Kudos
Reply

1,199 Views
HangZhang
NXP Employee
NXP Employee

Hi @VARSHA_PRIYADARSINI 

Firstly, you can select the board you need in Gui Guider IDE.

HangZhang_0-1718185198916.png

Then you can add a label widgets to display the received data, and add events. 

And  you can port network communication code in this project. You can add a timer. When the timer is interrupted, the data received by the network is displayed in the label.

These are just some of my suggestions, please add features according to your specific needs.

Hope this will help you.

BR

Hang

1,155 Views
VARSHA_PRIYADARSINI
Contributor II

Thank you so much for your insight. So, I tried to establish a TCP server/client communication and I'm facing an issue. The code is correct, and it runs fine. But when I integrate it with gui guider and try to run it.

VARSHA_PRIYADARSINI_0-1718276161738.jpeg

 

I also tried to run it in cmd, also faced a similar error. 

VARSHA_PRIYADARSINI_1-1718276187404.jpeg

 

I don't know how to resolve it.

If possible, can you give me a sample project on how to establish it.

@HangZhang Would very much appreciate your help.

0 Kudos
Reply

1,133 Views
HangZhang
NXP Employee
NXP Employee

Hi @VARSHA_PRIYADARSINI 

I'm sorry, there's currently no project that can meet your needs.

May I ask what part number you are using?

BR

Hang

0 Kudos
Reply

1,131 Views
VARSHA_PRIYADARSINI
Contributor II

Part number means what are you referring to?

@HangZhang 

0 Kudos
Reply

1,043 Views
HangZhang
NXP Employee
NXP Employee

Hi @VARSHA_PRIYADARSINI 

What I mean is which chip you are currently using? I need to record it here.

Thank you.

BR

Hang

0 Kudos
Reply

1,041 Views
VARSHA_PRIYADARSINI
Contributor II

I am not using any chip. I'm trying with the simulator option.

@HangZhang 

0 Kudos
Reply