简体   繁体   中英

How to receive data (CAN bus messages from an application on PC) via TCP into a Web Server running on Raspberry Pi?

I want to receive data into a local web server that I have created using Raspberry Pi. It is not connected to the internet. I want to know if it is possible to receive data from an application on a Windows PC that sends via TCP protocol. The web server is an Apache server. I can specify the web server address and port number in the application that sends the data.

I am a newbee to this and I just know what tcp, http etc means. I do not know them in detail so I am finding it hard to understand related articles on the internet. Can someone please help me with some code snippets on how to set the web server in raspberry pi so that I can receive the data? Either display it on the web server page or extract the data somewhere using Python or C#. I am also open to using a Raspberry Pi with Windows IoT image instead of Jessie to do the same.

With Windows IoT you can start with Hello blinky sample that create a simple Web Server in Python.

Also, restup create a Web server in C# you can reference. This is the tutorial help you set up the code lines. I test TCP packets receiving on Raspberry Pi 3 with this web server, it works.

Hope it is helpful for you.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM