How to establish any communication protocol like TCP/IP to send and receive data from backend?
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?
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
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.
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
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.
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
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,
Firstly, you can select the board you need in Gui Guider IDE.
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
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.
I also tried to run it in cmd, also faced a similar error.
I don't know how to resolve it.
If possible, can you give me a sample project on how to establish it.
@Harry_Zhang Would very much appreciate your help.
I'm sorry, there's currently no project that can meet your needs.
May I ask what part number you are using?
BR
Hang
Part number means what are you referring to?
What I mean is which chip you are currently using? I need to record it here.
Thank you.
BR
Hang
I am not using any chip. I'm trying with the simulator option.