当前位置:网站首页>1313_ Pyserial installation and document generation
1313_ Pyserial installation and document generation
2022-07-28 02:41:00 【grey_ csdn】
All learning summary : GreyZhang/g_serial: Some serial learning notes which may be usefull in embedded system debugging. (github.com)
Serial port should be a very historical Technology , It should be widely used in the field of embedded . Because of the particularity of my own work , Engaged in automotive electronics , The development of previous years is a relatively mature software and hardware development platform that contacts others , Therefore, this aspect is basically not used in the process of work . When I really think serial port is a good thing, I'm actually playing with my Arduino When , It is very straightforward to find this way .
Nearly period of time , Serial port has given me a lot of help when I do software debugging . however , I think there is something missing in this , The main disadvantage should be that there is no Arduino So convenient . Maybe , I should find something on the upper computer , String my debugging and testing together . such , Find one. python The serial port transceiver scheme supported by script has become my first choice . I have found the : pyserial/pyserial: Python serial port access library (github.com)

The first is to install , pip install pyserial That's all right. . This installation is relatively simple , In the download repo There is another document in the compressed package that needs to be generated by yourself .

The document is located in the directory above , There are already written Makefile It can be done directly make Generate . however , You need to install a document generation tool when generating . Tools are based on python Realized Sphinx. When I first tried to install , Maybe the network quality is very poor , Failed all the time . later , A small script that I have been using before is enabled .

This is a small script for package management , For specific code, please refer to the end of the article . Now it looks like , It seems that the network quality has improved . The first installation is almost successful .
After the document management tool is successfully installed , You can switch to documentation Below directory , perform make html To generate html Documents . If in windows In the environment of , Pay attention to the need for bash Command environment support . The following is an implementation effect :

If you want to generate pdf, With the aid of latex. such , Input make latex You can generate . My computer WSL Configuration of the latex Environment , Here try to generate pdf file . Still in the directory above , Input make latex.

end of execution , There will be similar hints . There may be some warnings , But see that the final generation is successful , Leave it alone for the time being . Next , Switch to latex Continue to generate under the directory of the configuration file pdf.

such , It was generated pdf file .

above , Is the result of the generated document .
This time I'm in a bit of a hurry , It's getting late, and it's time to rest . For the time being, do the installation of this tool and the record of document generation , Later debugging .
Additional information and code :
python Forced installation of packages :
#!/usr/bin/python
import os
def SmartInstall(lib_name):
installed_flg = False
num = int(1)
while installed_flg == False:
print("the %dth time try to install %s" % (num, lib_name))
num = int(num + 1)
try:
exec('import ' + lib_name)
installed_flg = True
except:
os.system("pip install -U %s" % lib_name)
SmartInstall('sphinx')
边栏推荐
- 关于Sqli-labs单引号不报错的问题
- [advanced ROS chapter] Lecture 10 gadf integrated simulation process and examples based on gazebo
- mysql 如图所示,现有表a,表b,需求为 通过projectcode关联a、b表,查出address不同的 idcardnum。
- Usage of delegate
- MySQL blocking monitoring script
- Use of Day6 functions and modules
- Important arrangements - the follow-up live broadcast of dx12 engine development course will be held at station B
- Is the interface that can be seen everywhere in the program really useful? Is it really right?
- 2020.7.7 eth price analysis
- Digital empowerment and innovation in the future: hese eredi appears at the 5th Digital China Construction Summit
猜你喜欢

A 64 bit 8-stage pipelined adder based on FPGA

JVM tuning -xms -xmx -xmn -xss

Interviewer: what is the factory method mode?

初识C语言 -- 操作符和关键字,#define,指针

How MySQL uses indexes (glory Collection Edition)

mysql 如图所示,现有表a,表b,需求为 通过projectcode关联a、b表,查出address不同的 idcardnum。

Usage of delegate

When iPhone copies photos to the computer, the device connection often fails and the transmission is interrupted. Here's the way

MYSQL解决死锁之路 - 常见 SQL 语句的加锁分析

Deep Residual Learning for Image Recognition浅读与实现
随机推荐
Wechat campus maintenance and repair applet graduation design finished product of applet completion work (4) opening report
2022.7.8 supplement of empty Luna
Canonical Address
Use try-with-resources or close this
关于Sqli-labs单引号不报错的问题
初识C语言 -- 操作符和关键字,#define,指针
AWS elastic three swordsman
Canvas 从入门到劝朋友放弃(图解版)
特征值和特征向量
[hcip] BGP features
When iPhone copies photos to the computer, the device connection often fails and the transmission is interrupted. Here's the way
【图像隐藏】基于DCT、DWT、LHA、LSB的数字图像信息隐藏系统含各类攻击和性能参数附matlab代码
使用BigDecimal类型应该避免哪些问题?(荣耀典藏版)
JVM tuning -xms -xmx -xmn -xss
QT implementation disable shortcut key
How MySQL uses indexes (glory Collection Edition)
With elephant & nbsp; Eplato created by swap, analysis of the high premium behind it
MySQL是如何利用索引的(荣耀典藏版)
POC simulation attack weapon - Introduction to nucleus (I)
[data processing] boxplot drawing