当前位置:网站首页>(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

边栏推荐
- POJ 3207 Ikki' s Story IV – Panda' s Trick (2-SAT)
- Use of OLED screen
- 系统与应用监控的思路和方法
- [weekly pit] output triangle
- Rhcsa Road
- 01 基础入门-概念名词
- BUUCTF---Reverse---easyre
- 02 basic introduction - data package expansion
- Appx code signing Guide
- Unity writes a timer tool to start timing from the whole point. The format is: 00:00:00
猜你喜欢

Value of APS application in food industry

电子游戏的核心原理

【GET-4】
Tencent byte and other big companies interview real questions summary, Netease architects in-depth explanation of Android Development

5. Nano - Net in wireless body: Top 10 "is it possible?" Questions

深度学习分类网络 -- ZFNet

Tencent T3 Daniel will teach you hand-in-hand, the internal information of the factory

Use of OLED screen

How to upgrade high value-added links in the textile and clothing industry? APS to help

Why do novices often fail to answer questions in the programming community, and even get ridiculed?
随机推荐
Introduction of Xia Zhigang
Force deduction brush question - 98 Validate binary search tree
Tencent byte and other big companies interview real questions summary, Netease architects in-depth explanation of Android Development
Rhcsa Road
5. 無線體內納米網:十大“可行嗎?”問題
[network planning] Chapter 3 data link layer (3) channel division medium access control
Anaconda安装后Jupyter launch 没反应&网页打开运行没执行
22-07-05 upload of qiniu cloud storage pictures and user avatars
5. 无线体内纳米网:十大“可行吗?”问题
JMeter server resource indicator monitoring (CPU, memory, etc.)
Tencent T3 Daniel will teach you hand-in-hand, the internal information of the factory
[DIY]如何制作一款个性的收音机
2022 nurse (primary) examination questions and new nurse (primary) examination questions
Continuous test (CT) practical experience sharing
Logic is a good thing
Extraction rules and test objectives of performance test points
[DSP] [Part 2] understand c6678 and create project
In unity space, an object moves around a fixed point on the sphere at a fixed speed
Technology sharing | packet capturing analysis TCP protocol
String length limit?