0%

webServer

搭建web服务器
[嵌入式web服务器](https://blog.csdn.net/fzk0813/article/details/90644970) 嵌入式WEB服务器常见的有:Lighttpd, Shttpd, Thttpd, Boa, Mini_httpd, Appweb, Goahead [阿里云服务器上安装hexo服务器](https://www.jianshu.com/p/271a1649a853)
本地文件上传VPS

server端

#!/usr/bin/env python3
#-- coding: utf-8 -
author = ‘Xiaodong Lv’
from collections import deque
from threading import Lock, Thread
import threading
import socket
import time
import os

def main():
address = (‘本地公网IP’,31508)
server = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) #SOCK_DGRAM UDP SOCK_STREAM TCP
server.bind(address)
while True:
ra,client_addr = server.recvfrom(10)
print(ra,client_addr)
if name == ‘main‘:
main()

client端

#!/usr/bin/env python3
#-- coding: utf-8 --
import socket
import sys, getopt
def main():
address = (‘阿里云公网IP’,31508)
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
while True:
inputDATA = input(“please input send data:”)
if inputDATA==’’:
break
else:
inputDATA = str(inputDATA)
s.sendto(inputDATA.encode(),address)
print(inputDATA)
s.close()
if name == “main“:
main()

BOA WEB server移植

一。BOA
1.download boa文件
2.修改 #define TIMEZONE_OFFSET(foo) foo##->tm_gmtoff 避免编译器无法识别
=> #define TIMEZONE_OFFSET(foo) (foo)->tm_gmtoff
3.在系统的etc文件夹下面,创建/etc/boa用来存放boa.conf
创建目录
3.修改生成的Makefile中的编译器
加载css mime.type text.plain改为text/css
二。GCI

安装arm-linux-gcc
export PATH=/root/ZYNQ_gcc/gcc-linaro-arm-linux-gnueabihf-4.9-2014.07_linux/bin:$PATH
arm-arago-linux-gnueabi-gcc
https://blog.csdn.net/kunkliu/article/details/79813121

boa及CGI移植到FPGA
https://blog.csdn.net/weixin_41922484/article/details/103343012
https://blog.csdn.net/a642960662/article/details/66473794

Qt教程

JKQTPlotter

QCustomPlot

官网下载文件
https://www.qcustomplot.com/index.php/introduction
QT5要添加printsupport变量在.pro文件中

1
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets printsupport

实时动态显示曲线
https://blog.csdn.net/qq_28877125/article/details/102948574

https://github.com/deeplyembeddedWP/Plot-Real-Time-Graphs-Qt-Embedded-Linux/tree/master/Plot-Real-Time-Graphs-Qt-Example/Qt_Test

坚持原创技术分享,您的支持将鼓励我继续创作!