Code Monkey home page Code Monkey logo

nettyserver_java's Introduction

NettyServer

介绍

服务器主要包括三个方面的功能——从设备端接收原始数据并进行解析;将解析后的数据转发给PC上位机;将解析后的数据存储在服务器的MongoDB数据库中。

  • 数据接收

设备通过TCP或者UDP(可手动设置)连接服务器,并传输数据到服务器。

  • 数据转发

PC上位机通过TCP连接服务器8080端口,实施接受经过服务器转发的设备采集数据。

  • 数据存储

服务器接受设备数据,并存储在MongoDB数据库中。

存储格式:

{
	"_id" : ObjectId("5b90c70aa7986c262ff73c34"),
	"wifi_client_id" : 48,
	"yyyy_mm_dd" : NumberLong(842084913),
	"headtime" : NumberLong(842084913),
	"adc_count_short" : NumberLong(2),
	"io1" : 48,
	"io2" : 48,
	"adc_val" : {
		"ch1" : [
			787,
			771
		],
		"ch2" : [
			787,
			771
		],
		"ch3" : [
			787,
			803
		],
		"ch4" : [
			771,
			803
		]
	}
}

参考

Netty实战精髓-w3cSchool

Netty实战-何平译

对Netty组件的理解

Netty笔记

Java菜鸟教程

Java笔记

Maven笔记

MongoDB菜鸟教程

MongoDB笔记

nettyserver_java's People

Contributors

neyzoter avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.