当前位置:网站首页>(work record) March 11, 2020 to March 15, 2021
(work record) March 11, 2020 to March 15, 2021
2022-07-06 20:27:00 【Kshine2017】

1. Constant light source , Photoelectric acquisition board

1.1 plan
Just entered the company , Need to take over some work quickly .
1.2 Device version iteration

1.3 Commissioning problem record
1.3.1 Timed interrupt use , Do not enter interrupt ?

1.3.2 Sampling channel division

1.3.3 stay 20us Within the interruption of , Use SPI Communication read AD value

1.3.4 Keys and led

1.3.5 And PLC When communication , Cannot even respond PLC Orders sent

1.3.6 PLC The sent command could not be processed and returned .

1.3.7 MCU Send to PLC Of 11 The channel value is misaligned

1.3.8 After a period of equipment operation , Power on again , Not working properly

1.3.9 PID Adjustment time , It cannot be adjusted with a large span

1.3.10 Boot upgrade , Upgrade to midway , Stuck problem

1.3.11 When testing spectrometer communication , Find out DMA Sending will crash

1.3.12 modbus Serial transmission , Framing error .

1.3.13 After the temperature and humidity sensor works for a long time , The temperature value is full 65535

1.4 Modbus agreement

1.4.1 Modified frame protocol format

1.4.2 Industrial standards

1.4.3 Communication instructions

1.4.4 Spectrometer related instructions

1.5 Spectrometer related logic

1.6 Compile the generated

1.7 Transfer the size conversion of floating-point numbers

1.8 Bootloader engineering
1.8.1 Ymodem agreement

1.8.2 Flash operation

1.8.3 Serial port configuration

1.8.4 The problem record

1.8.5 stay Boot in , Whether it can be used F103 Read U disc ?

- Later supplement

2. pH/ORP Transmitter , Data acquisition instrument

2.1 Early preparation
- Interface display and touch functions . Tried UGUI, Final selection STemWin Graphics library .

2.1.1 The display shows relevant
- FSMC

- Display the time parameters of the chip

- About MCU Of FSMC Use division of address

- LCD Pin


- FSMC Understanding of address


2.1.2 Touch chip of touch screen

- GT9147 Capacitive touch

- XPT2046/HR2046 Resistive touch

- ADS7843 Resistance touch

2.2 Other preparations
2.2.1 EEprom The storage device ,AT24CXX
- Problems arise

- Solution

- EEPROM Store the parameters of calibration touch in

2.2.2 SD card /TF Cards and file systems

- SD card 4 A wide Parameter setting



- Driver code framework analysis

- SDIO Communication requires switch interruption

- SDIO The division coefficient of

2.2.3 AD Acquisition and DA Output
- AD collection

- DAC Output

2.2.4 RTC Time

2.2.5 A serial port

2.3 The initial development phase
2.3.1 Roma LCD Touch screen

- Initialization process

2.3.2 Project splitting

2.3.3 EmWin Interface design
- About migration add Emwin

- Flashing problem

- How to draw the effect of flashing pictures

- Show ghosting after switching sub pages

2.3.4 Interface problem record
Abnormal keypad input

The correction page lacks a button to save parameters

ADS1220 Read the temperature

There is no redirection fputc When , Not available printf.
ADS1220 The reading is abnormal , Jump between two numbers .


Some functions are realized

part BUG correct

PLL waiting ready Failure

Intraslice ADC collection pH emf , There is 1~2mV wave , Lead to pH The value is 0.04 Left and right fluctuations

LL Library dead cycle waiting

About pH The measurement of , Introduce temperature into the calculation

For on-chip AD Fluctuations , Consider delaying the number

W25Q128 chip , Store records according to timestamp

SD Card file system , Writing data 1 Hour or so , The file system will crash , Can't go on writing

Interface reading display , Start reading data by pressing the key

Time in the file system

RTC The question of time

Add time setting page

Switch “ God ”“ Hours ”, Create new folders and files

Record pH data , Abnormal values were found

After power failure ,RTC Time doesn't go

About off film FLASH The design of the



Divide the space

SPI Inverse initialization

Yes AD collection pH To optimize the code of


W25Q128 Final plan ( current version )

Hardware transformation

Log data format

Interface summary

3. Luat Script development
Hezhou Air724UG.
3.1 Function Overview

3.2 lua Grammar and framework design



3.3 Project requirement
3.3.1 Read device data and set parameters

3.3.2 The data acquisition instrument writes instructions to the analyzer

3.3.3 Collect data




3.3.4 Project code framework

3.3.5 About the use of serial port

3.3.6 Thread partition



3.4 Current progress

4. Real time systems RTOS Study and review
4.1 FreeRTOS
4.1.1 Core functions

4.1.2 memory management

heap1

heap2

heap3
A littleheap4

4.1.3 task management

4.2 LiteOS
4.2.1 brief introduction

4.2.2 CORE-A,R,M Three nuclei

4.2.3 What is? CMSIS

4.2.4 tickless Low power mode

4.2.5 LwM2M Lightweight machine to machine Protocol


4.2.6 NB-IOT Narrow band Internet of things

4.2.7 mbedTLS (SSL/TLS Algorithm library )

4.2.8 lwIP
4.2.9 mqtt
4.2.10 LiteOS transplant

4.3 RT-thread

4.3.1 Source transplantation
- Header file path
- Source files that need to be included

4.3.2 Dynamic task thread creation

4.3.3 Shell How to add to the system ?
- Realization UART Console

- add to FinSH Components

- Shell How to start

4.3.4 Component initialization sequence

4.3.5 brief introduction


4.3.6 kernel

4.3.7 Startup file

4.3.8 Object container

4.3.9 Kernel thread scheduler

4.3.10 Task switching , Context switch



4.3.11 Thread management


4.3.12 Synchronization between threads


4.3.13 Inter thread communication

4.3.14 Timer

5. Serial port expansion board
5.1 summary
be based on F103RCT6,RT-thread Real time systems .
5.2 Serial port division

5.3 Running indicator light

5.4 Thread partition

5.5 Use of message queuing

5.6 PLC Messages sent

5.6.1 Function code

5.6.2 Register definition


5.7 Start implementation
5.7.1 Main serial port (usart1)
Receive from PLC Message of :

use 485 signal communication ,DMA Send and receive .

DMA Register structure of

5.7.2 Business logic

5.7.3 Software version number definition

5.8 The problem record
5.8.1 Message queue get message , The message length is variable

5.8.2 Host computer interface design


5.8.3 DMA Sending data is incomplete

5.8.4 keil Compilation problems

5.8.5 Output data definition

5.8.6 rtos Start the software timer , Slow response

5.8.7 Check the station address of the slave serial port

5.8.8 Current progress

5.8.9 A special case , A serial port 5 No, DMA

5.8.10 ADC calibration

5.8.11 Hardware CRC32 Can't be used modbus Calculation

5.8.12 Download debugging exception

6. The screen uses - Devon

6.1 Basic introduction
- DMG12720 T 050

- DMG10600 T070

6.2 Use of software

6.3 Software icons

6.4 Pop up menu

6.5 RAM Variable address range

6.6 other


7. The screen uses - Big color
7.1 brief introduction

7.2 The development of preparation

7.3 Visual TFT Use

8. Humidity transmitter
8.1 Resource allocation

8.2 Heating unit

8.3 Humidity pulse count
- 100ms Number of pulses in

8.4 watchdog
- 40KHz
8.5 transplant Rt-thread
- See above
8.6 Create thread

8.7 The problem record - The serial port receives all data 0

8.8 Functions to be completed

8.9 The problem record
8.9.1 Input capture

8.9.2 Capacitance and frequency

8.9.3 PID Parameter estimation

8.9.4 PWM Use PB12,IO simulation

8.9.5 Temperature control

边栏推荐
- 报错分析~csdn反弹shell报错
- Synchronization of data create trigger synchronization table for each site
- 2022 Guangdong Provincial Safety Officer C certificate third batch (full-time safety production management personnel) simulation examination and Guangdong Provincial Safety Officer C certificate third
- Redisson bug analysis
- Node. Js: express + MySQL realizes registration, login and identity authentication
- Leetcode question 283 Move zero
- Tencent T4 architect, Android interview Foundation
- 2022 nurse (primary) examination questions and new nurse (primary) examination questions
- BeagleBoneBlack 上手记
- Boder radius has four values, and boder radius exceeds four values
猜你喜欢

报错分析~csdn反弹shell报错

Gui Gui programming (XIII) - event handling

“罚点球”小游戏

逻辑是个好东西

I've seen many tutorials, but I still can't write a program well. How can I break it?

JMeter server resource indicator monitoring (CPU, memory, etc.)

Jupyter launch didn't respond after Anaconda was installed & the web page was opened and ran without execution

An East SMS login resurrection installation and deployment tutorial

RT thread I2C tutorial

What programming do children learn?
随机推荐
BeagleBoneBlack 上手记
Tencent Android development interview, basic knowledge of Android Development
Cesium Click to draw a circle (dynamically draw a circle)
JMeter server resource indicator monitoring (CPU, memory, etc.)
Rhcsa Road
I've seen many tutorials, but I still can't write a program well. How can I break it?
22-07-05 七牛云存储图片、用户头像上传
02 基础入门-数据包拓展
报错分析~csdn反弹shell报错
HMS core machine learning service creates a new "sound" state of simultaneous interpreting translation, and AI makes international exchanges smoother
【每周一坑】信息加密 +【解答】正整数分解质因数
Tips for web development: skillfully use ThreadLocal to avoid layer by layer value transmission
[Yann Lecun likes the red stone neural network made by minecraft]
recyclerview gridlayout 平分中间空白区域
Logic is a good thing
JVM_常见【面试题】
What happened to the kernel after malloc() was transferred? Attached malloc () and free () implementation source
Boder radius has four values, and boder radius exceeds four values
5. 无线体内纳米网:十大“可行吗?”问题
Learn to punch in Web