is the so-called world trend, do not follow suit. You don't cross the platform, it's low. Java said : "You can cross, show me across." C # says , "don't be so pushy." Java says : Can it be deployed on the cloud? Docker Micro-service? C # says , "don't be so pushy." Java says : What are you capable of? C # said : "Do what it is necessary to tell you, I only play." php says , "just take your two-pack-B look." Ha ha! Oh, Java has been renamed, called Jakarta.
1 . Cross-platform practice environment
Operating system: Ubuntu 16.04
Development tools: Vscode 1.21
Middleware:. Net Core 2.0
2 .. Netcore Installation
See also: https://www.microsoft.com/net/learn/get-started/linux/ubuntu16-04
3. Vscode Installation
Download: https://code.visualstudio.com/, I am a direct download of the. tar.gz compressed package.
4 . The problem of serial communication
The original use of the SerialPort class, in. netcore2.0 is not, but in the official docs is introduced, such as:
I feel like this thing should be well integrated into the. Netcore, without change in the case of Mono cross-platform operation without any problems, is now the MS family, but not the problem.
Serversuperio in the serial port of the cross-platform temporary use of open source Serialportstream, if the. netcore2.1 version integrates SerialPort, then use the class. With Serialportstream, you need to be aware of the need to compile and installlibnserial.so
类库,如:
5 . Problems with network communication
Network communication is using the SocketAsyncEventArgs class library, and there is not much problem, in setting the parameters need to pay attention to the following:
6 . About. issue with version Netcore
I installed it on my computer. Netcore 2.1.4 version, can only use 2.0 version, do not know why, on the Linux platform, such as:
On the Windows platform, such as:
7 . Finally achieve results
Ubuntu Virtual serial port has not been tested, go home (is on business) take the tree strawbelly Pi test. Network communication effects such as:
1.[serial] "C # communication (Serial and network) framework design and implementation"
2.[Open source]c# cross-platform IoT communication Framework Serversuperio (Ssio) Introduction
2. Superio (SIO) and open-source cross-platform IoT framework Serversuperio (SSIO) building a system's overall solution
3.c# Technology Roadmap for industrial IoT and Integrated system solutions (data source, data acquisition, upload and receive, ActiveMQ, Mongodb, WEBAPI, mobile app)
5.github Address: Https://github.com/wxzz/ServerSuperIO
6. Help small and medium-sized enterprise cloud, promote industrial Internet platform flourish, complete solution.
Internet of Things & Integration technology (. NET) QQ Group:54256083
IoT framework Serversuperio in. Netcore implementation of cross-platform practice routes