启用第三个485通道,在该通道中控制压缩机驱动板

main
Zeng wei (曾威) 2 years ago
parent 3b2bf2e30e
commit b471a41323

@ -12,6 +12,9 @@ extern u8 gpio_state;
extern int T;
unsigned int num = 0;
PID pid;
u8 rs485speed[8] = {0x01, 0x06, 0x60, 0x00, 0x00, 0x09, 0xBB, 0xAA}; // speed control for compressor controller
int min_speed_count = 1500;
int max_speed_count = 6000;
void PID_Init()
{
@ -87,6 +90,7 @@ void PID_Calc() // pid
// 得到当前的偏差值设置温度大于实际温度1℃加热close compressoropen heater
/*GPIO1->报警铃 GPIO3->heater GPIO4—>新风风扇 GPIO5->加湿器 GPIO6->compressor */
HC595_Send_Byte(gpio_state &= 0xDF);//close compressor &=1101 1111 0xDF
num = 0;
TIM_SetCompare3(TIM3, 0);
HC595_Send_Byte(gpio_state |= 0x04); // open heater |=0000 0100 0x04
hot_clod_flag = 2;
@ -96,7 +100,6 @@ void PID_Calc() // pid
// 得到当前的偏差值设置温度小于实际温度制冷open compressorclose heater
HC595_Send_Byte(gpio_state &= 0xFB); // close heater &=1111 1011 0xFB
// 0-200对应0-100%如果pid.out=50,占空比就是25%//num=50*400/200=100100/400=25%
// TODO:: change maxinum from 400 to 300
num = (((pid.OUT * 400) / pid.pwmcycle) - 1); // pid.OUT与pwm占空比的值换算
TIM_SetCompare3(TIM3, num / 4);
// printf("%d\r\n",num);
@ -107,6 +110,7 @@ void PID_Calc() // pid
if (hot_clod_flag == 1 && T <= tem - 3) // 制冷过程中温度下降低于设定温度0.3℃
{
HC595_Send_Byte(gpio_state&=0xDB);// close compressor and heater &=1101 1011 0xDB
num = 0;
TIM_SetCompare3(TIM3, 0); // close compressor
hot_clod_flag = 0;
}
@ -114,8 +118,24 @@ void PID_Calc() // pid
if (hot_clod_flag == 2 && T >= tem) // while heat, T above tem
{
HC595_Send_Byte(gpio_state&=0xDB);//close compressor and heater &=1101 1011 0xDB
num = 0;
TIM_SetCompare3(TIM3, 0); // close compressor
hot_clod_flag = 0;
}
int out1 = pid.OUT;
// speed count
int speed_count = out1 / 200.0 * (max_speed_count - min_speed_count) + min_speed_count;
if (speed_count > 6000) {
speed_count = 6000;
}
rs485speed[4] = speed_count / 256;
rs485speed[5] = speed_count % 256;
RS485_3_Init(9600);
delay_xms(100);
RS485_3_Send_Data(rs485speed, 8);
// RS485_1_Send_Data_1(rs485speed, 8);
delay_xms(200);
RS485_1_Init(9600);
// HC595_Send_Byte(gpio_state&=0xDB);// close compressor and heater &=1101 1011 0xDB
}

@ -1,6 +1,8 @@
#ifndef _PID_H
#define _PID_H
#include "SysTick.h"
void PID_Init(void);
void PID_Calc(void);

@ -429,34 +429,31 @@ void RS485_1_Send_Data_2(void) //
sendbuf[20] = hot_clod_flag; // hot clod state
sendbuf[21] = humidity_flag; // humidity state
sendbuf[22] = ALARM; // ALARM state
sendbuf[23] = (int)pid.Kp / 256; // Kp 110
sendbuf[24] = (int)pid.Kp % 256; // Kp 110
sendbuf[23] = (int)pid.Kp / 256; // Kp 110
sendbuf[24] = (int)pid.Kp % 256; // Kp 110
sendbuf[25] = ((int)(pid.Ki * 100000)) / 256; // Ti 0.001
sendbuf[26] = ((int)(pid.Ki * 100000)) % 256; // Ti 0.001
sendbuf[27] = (int)pid.Kd / 256; // Td 340
sendbuf[28] = (int)pid.Kd % 256; // Td 340
sendbuf[27] = (int)pid.Kd / 256; // Td 340
sendbuf[28] = (int)pid.Kd % 256; // Td 340
// num = (((pid.OUT * 350) / pid.pwmcycle) - 1);
sendbuf[29] = ((int)(pid.OUT * 1000)) / 256;
sendbuf[30] = ((int)(pid.OUT * 1000)) % 256;
int out1 = pid.OUT;
// speed count
int speed_count = out1 / 200.0 * (6000 - 1500) + 1500;
if (speed_count > 6000)
{
speed_count = 6000;
}
sendbuf[29] = (speed_count) / 256;
sendbuf[30] = (speed_count) % 256;
// sendbuf[29] = ((int)(pid.OUT * 1000)) / 256;
// sendbuf[30] = ((int)(pid.OUT * 1000)) % 256;
bufcut_Init(sendbuf_crc, sendbuf, 3, 31);
GetCRC16(sendbuf_crc, 28, &crc_num1, &crc_num2);
sendbuf[31] = crc_num1;
sendbuf[32] = crc_num2;
// for(int i=0;i<20;i++)
// {
// printf("%x ",sendbuf_crc[i]);
// }
//
// printf("\r\n");
// for(int i=0;i<29;i++)
// {
// printf("%x ",sendbuf[i]);
// }
// printf("%x\r\n",sendbuf[0]);
for (a = 0; a < 37; a++) // 循环发送数据
{
while (USART_GetFlagStatus(USART1, USART_FLAG_TC) == RESET)
@ -533,23 +530,23 @@ void RS485_1_Send_Data_3(void)
// RS485发送len个字节.
// buf:发送区首地址
// len:发送的字节数(为了和本代码的接收匹配,这里建议不要超过64个字节)
// void RS485_3_Send_Data(u8 *buf,u8 len)
//{
// u8 t;
// GPIO8_Init();
// GPIO_SetBits(GPIOB,GPIO_Pin_8);
// RS485_3_TX_EN=1; //设置为发送模式
// for(t=0;t<len;t++) //循环发送数据
// {
// while(USART_GetFlagStatus(USART1, USART_FLAG_TC) == RESET);
// USART_SendData(USART1,buf[t]);
// }
//
// while(USART_GetFlagStatus(USART1, USART_FLAG_TC) == RESET);
// RS485_RX_CNT=0;
// GPIO_ResetBits(GPIOB,GPIO_Pin_8);
// RS485_3_TX_EN=0; //设置为接收模式
// }
void RS485_3_Send_Data(u8 *buf,u8 len)
{
u8 t;
// GPIO8_Init();
// GPIO_SetBits(GPIOB,GPIO_Pin_8);
RS485_3_TX_EN=1; //设置为发送模式
for(t=0;t<len;t++) //循环发送数据
{
while(USART_GetFlagStatus(USART1, USART_FLAG_TC) == RESET);
USART_SendData(USART1,buf[t]);
}
while(USART_GetFlagStatus(USART1, USART_FLAG_TC) == RESET);
// RS485_RX_CNT=0;
// GPIO_ResetBits(GPIOB,GPIO_Pin_8);
RS485_3_TX_EN=0; //设置为接收模式
}
// RS485查询接收到的数据
// buf:接收缓存首地址

@ -24,7 +24,7 @@ void RS485_1_Send_Data_1(u8 *buf,u8 len);
//void RS485_3_Send_Data_1(void);
void RS485_1_Send_Data_2(void);
void RS485_1_Send_Data_3(void);
//void RS485_3_Send_Data(u8 *buf,u8 len);
void RS485_3_Send_Data(u8 *buf,u8 len);
void RS485_Receive_Data(u8 *buf,u8 *len);
void SN74CB3Q3253_Init(void);
u8 CRC16_check(u8 *puchMsg, u16 usDataLen);

@ -5,146 +5,130 @@
#include "rtc.h"
#include "SysTick.h"
#include "myfreertos.h"
extern u8 RS485_RX_BUF[128];//
//extern u8 buf[51];
extern u8 RS485_RX_BUF[128]; //
// extern u8 buf[51];
extern u8 store_stage;
u8 read_stage=1;//从flash读取出来的阶段号
u8 read_stage = 1; // 从flash读取出来的阶段号
extern u8 now_stage;
extern u8 chour;
extern u8 cminute;
u16 current_minute=0;
u16 total_minute=0;
u16 current_minute = 0;
u16 total_minute = 0;
/*
4
25
湿70
湿70
10
*/
u8 total[]={0xEE,0XEE,0x01,0x04,0x00,0x00,0xFA,0x02,0xBC,0x00,0x64,0x00,0x64,0x00,0x64,0xFF,0xFF,0xFF,
0xEE,0XEE,0x02,0x04,0x00,0x00,0xFA,0x02,0xBC,0x00,0x64,0x00,0x64,0x00,0x64,0xFF,0xFF,0xFF,
0xEE,0XEE,0x03,0x04,0x00,0x00,0xFA,0x02,0xBC,0x00,0x64,0x00,0x64,0x00,0x64,0xFF,0xFF,0xFF,
0xEE,0XEE,0x04,0x04,0x00,0x00,0xFA,0x02,0xBC,0x00,0x64,0x00,0x64,0x00,0x64,0xFF,0xFF,0xFF,
0xEE,0XEE,0x05,0x04,0x00,0x00,0xFA,0x02,0xBC,0x00,0x64,0x00,0x64,0x00,0x64,0xFF,0xFF,0xFF,
0xEE,0XEE,0x06,0x04,0x00,0x00,0xFA,0x02,0xBC,0x00,0x64,0x00,0x64,0x00,0x64,0xFF,0xFF,0xFF};
void Array(u8* n,u8 *hour,u8* min,u16* tem,u16* hum,u16* red,u16 *blue,u16* white)
u8 total[] = {0xEE, 0XEE, 0x01, 0x04, 0x00, 0x00, 0xFA, 0x02, 0xBC, 0x00, 0x64, 0x00, 0x64, 0x00, 0x64, 0xFF, 0xFF, 0xFF,
0xEE, 0XEE, 0x02, 0x04, 0x00, 0x00, 0xFA, 0x02, 0xBC, 0x00, 0x64, 0x00, 0x64, 0x00, 0x64, 0xFF, 0xFF, 0xFF,
0xEE, 0XEE, 0x03, 0x04, 0x00, 0x00, 0xFA, 0x02, 0xBC, 0x00, 0x64, 0x00, 0x64, 0x00, 0x64, 0xFF, 0xFF, 0xFF,
0xEE, 0XEE, 0x04, 0x04, 0x00, 0x00, 0xFA, 0x02, 0xBC, 0x00, 0x64, 0x00, 0x64, 0x00, 0x64, 0xFF, 0xFF, 0xFF,
0xEE, 0XEE, 0x05, 0x04, 0x00, 0x00, 0xFA, 0x02, 0xBC, 0x00, 0x64, 0x00, 0x64, 0x00, 0x64, 0xFF, 0xFF, 0xFF,
0xEE, 0XEE, 0x06, 0x04, 0x00, 0x00, 0xFA, 0x02, 0xBC, 0x00, 0x64, 0x00, 0x64, 0x00, 0x64, 0xFF, 0xFF, 0xFF};
void Array(u8 *n, u8 *hour, u8 *min, u16 *tem, u16 *hum, u16 *red, u16 *blue, u16 *white)
{
*hour=(total[3 + 18 * (*n - 1)]);
*min=(total[4 + 18 * (*n - 1)]);
*tem=(total[5 + 18 * (*n - 1)]<<8|total[6 + 18 * (*n - 1)]);//温度
*hum=(total[7 + 18 * (*n - 1)]<<8|total[8 + 18 * (*n - 1)]);//湿度
*red=(total[9 + 18 * (*n - 1)]<<8|total[10 + 18 * (*n - 1)]);//红光
*blue=(total[11 + 18 * (*n - 1)]<<8|total[12+ 18* (*n - 1)]);//蓝光
*white=(total[13 + 18 * (*n - 1)]<<8|total[14 + 18 * (*n - 1)]);//白光
*hour = (total[3 + 18 * (*n - 1)]);
*min = (total[4 + 18 * (*n - 1)]);
*tem = (total[5 + 18 * (*n - 1)] << 8 | total[6 + 18 * (*n - 1)]); // 温度
*hum = (total[7 + 18 * (*n - 1)] << 8 | total[8 + 18 * (*n - 1)]); // 湿度
*red = (total[9 + 18 * (*n - 1)] << 8 | total[10 + 18 * (*n - 1)]); // 红光
*blue = (total[11 + 18 * (*n - 1)] << 8 | total[12 + 18 * (*n - 1)]); // 蓝光
*white = (total[13 + 18 * (*n - 1)] << 8 | total[14 + 18 * (*n - 1)]); // 白光
}
uint8_t ArrayRead[108];
uint8_t ArrayWrite[108];
void Write_Init(void)
{
W25QXX_Init();
W25QXX_Erase_Sector(0x000000);
delay_ms(150);
W25QXX_Write_NoCheck(total,0x000000,108);//把数据写入flash
W25QXX_Write_NoCheck(&store_stage,0x00006D,1);//把当前运行阶段写入flash
W25QXX_Read(ArrayRead,0x000000,108);//把数据读出来
W25QXX_Write_NoCheck(total, 0x000000, 108); // 把数据写入flash
W25QXX_Write_NoCheck(&store_stage, 0x00006D, 1); // 把当前运行阶段写入flash
W25QXX_Read(ArrayRead, 0x000000, 108); // 把数据读出来
}
void Read_Init(void)
{
W25QXX_Init();
W25QXX_Read(ArrayRead,0x000000,108);//把数据读出来
bufcut_Init(total,ArrayRead,0,109);//把读出来的数据赋值给total数组
W25QXX_Read(&read_stage,0x00006D,1);
now_stage=read_stage;//读出来的阶段赋值给当前阶段
//printf("%d\r\n",now_stage);
//printf("\r\n");
//printf("\r\n");
// for(int i=0;i<108;i++)
// {
// printf("%d ",ArrayRead[i]);
// }
W25QXX_Read(ArrayRead, 0x000000, 108); // 把数据读出来
bufcut_Init(total, ArrayRead, 0, 109); // 把读出来的数据赋值给total数组
W25QXX_Read(&read_stage, 0x00006D, 1);
now_stage = read_stage; // 读出来的阶段赋值给当前阶段
// printf("%d\r\n",now_stage);
// printf("\r\n");
// printf("\r\n");
// for(int i=0;i<108;i++)
// {
// printf("%d ",ArrayRead[i]);
// }
}
void Analysis(u8* n,u16 *i,u8*rs485_rx_buf)//(阶段号,数组值序号,)解析函数
void Analysis(u8 *n, u16 *i, u8 *rs485_rx_buf) //(阶段号,数组值序号,)解析函数
{
*n=rs485_rx_buf[3];
*i=rs485_rx_buf[4];
*n = rs485_rx_buf[3];
*i = rs485_rx_buf[4];
if(*i==2)
if (*i == 2)
{
total[3 + 18 * (*n - 1)]=rs485_rx_buf[5];//
total[3 + 18 * (*n - 1)] = rs485_rx_buf[5]; //
}
if(*i==3)
if (*i == 3)
{
total[4 + 18 * (*n - 1)]=rs485_rx_buf[5];//
total[4 + 18 * (*n - 1)] = rs485_rx_buf[5]; //
}
if (*i>=4 && *i<=8) // 温湿度红蓝白光
if (*i >= 4 && *i <= 8) // 温湿度红蓝白光
{
total[(2 * (*i) - 3) + 18 * (*n - 1)]=rs485_rx_buf[5];
total[(2 * (*i) - 2) + 18 * (*n - 1)]=rs485_rx_buf[6];
total[(2 * (*i) - 3) + 18 * (*n - 1)] = rs485_rx_buf[5];
total[(2 * (*i) - 2) + 18 * (*n - 1)] = rs485_rx_buf[6];
}
}
void Batch_synchronization(u8 *n,u8*rs485_rx_buf)//批量同步
void Batch_synchronization(u8 *n, u8 *rs485_rx_buf) // 批量同步
{
*n=rs485_rx_buf[3];
u8 i=4;
for( i=4;i<16;i++)
*n = rs485_rx_buf[3];
u8 i = 4;
for (i = 4; i < 16; i++)
{
total[(i-1)+ 18 * (*n - 1)]=rs485_rx_buf[i];
total[(i - 1) + 18 * (*n - 1)] = rs485_rx_buf[i];
}
}
u8 timelong_Compare()
{
RTC_Get(&chour,&cminute);//获得当前小时与分钟
RTC_Get(&chour, &cminute); // 获得当前小时与分钟
current_minute = chour * 60 + cminute;
total_minute = total[18 * now_stage - 15] * 60 + total[18 * now_stage - 14];
if (current_minute >= total_minute)
if (current_minute >= total_minute)
{
RTC_synchronization_ins(2023,9,1,0,00,00);
RTC_synchronization_ins(2023, 9, 1, 0, 00, 00);
if (now_stage == 6)
{
store_stage=1;
store_stage = 1;
Write_Init();
return 1;
}
store_stage=now_stage + 1;
store_stage = now_stage + 1;
Write_Init();
return now_stage + 1;
}
store_stage=now_stage;
store_stage = now_stage;
return now_stage;
}
int isAllZeros(u8 arr[], int size)
int isAllZeros(u8 arr[], int size)
{
for (int i = 0; i < size; i++)
{
for (int i = 0; i < size; i++)
if (arr[i] != 0)
{
if (arr[i] != 0)
{
return 0; // 返回0表示不全为0
}
}
return 1; // 返回1表示全为0
return 0; // 返回0表示不全为0
}
}
return 1; // 返回1表示全为0
}

Binary file not shown.

@ -27,53 +27,60 @@ Project File Date: 01/08/2024
<h2>Output:</h2>
*** Using Compiler 'V5.06 update 4 (build 422)', folder: 'D:\Keil_v5\ARM\ARMCC\Bin'
Rebuild target 'LED'
compiling PID.c...
compiling MYSPI.c...
compiling iwdg.c...
compiling system_stm32f10x.c...
compiling main.c...
compiling stm32f10x_it.c...
compiling bufcut.c...
compiling write.c...
compiling MYSPI.c...
compiling stm32f10x_gpio.c...
compiling USART.c...
assembling startup_stm32f10x_md.s...
compiling core_cm3.c...
compiling Relays.c...
compiling write.c...
compiling main.c...
compiling stm32f10x_gpio.c...
compiling SysTick.c...
compiling PWMOUT.c...
compiling W25Q128.c...
compiling misc.c...
compiling stm32f10x_cec.c...
compiling bufcut.c...
compiling stm32f10x_bkp.c...
compiling OSC.c...
compiling stm32f10x_it.c...
compiling stm32f10x_dbgmcu.c...
compiling stm32f10x_rcc.c...
compiling stm32f10x_adc.c...
compiling PWM.c...
compiling rtc.c...
compiling stm32f10x_bkp.c...
compiling core_cm3.c...
compiling stm32f10x_usart.c...
compiling PID.c...
..\HARDWARE\PID.c(134): warning: #223-D: function "RS485_3_Init" declared implicitly
RS485_3_Init(9600);
..\HARDWARE\PID.c(136): warning: #223-D: function "RS485_3_Send_Data" declared implicitly
RS485_3_Send_Data(rs485speed, 8);
..\HARDWARE\PID.c(139): warning: #223-D: function "RS485_1_Init" declared implicitly
RS485_1_Init(9600);
..\HARDWARE\PID.c: 3 warnings, 0 errors
compiling W25Q128.c...
compiling system.c...
compiling stm32f10x_adc.c...
compiling stm32f10x_crc.c...
compiling PWMOUT.c...
compiling iwdg.c...
compiling misc.c...
compiling stm32f10x_dbgmcu.c...
compiling stm32f10x_dac.c...
compiling rtc.c...
compiling stm32f10x_usart.c...
compiling OSC.c...
compiling stm32f10x_exti.c...
compiling stm32f10x_cec.c...
compiling stm32f10x_dma.c...
compiling PWM.c...
compiling SysTick.c...
compiling stm32f10x_can.c...
compiling rs485.c...
compiling stm32f10x_exti.c...
compiling stm32f10x_flash.c...
compiling stm32f10x_pwr.c...
compiling stm32f10x_fsmc.c...
compiling rs485.c...
compiling stm32f10x_i2c.c...
compiling stm32f10x_iwdg.c...
compiling stm32f10x_pwr.c...
compiling stm32f10x_rtc.c...
compiling stm32f10x_i2c.c...
compiling stm32f10x_fsmc.c...
compiling stm32f10x_sdio.c...
compiling utility.c...
compiling stm32f10x_spi.c...
compiling utility.c...
compiling stm32f10x_wwdg.c...
compiling spi.c...
compiling socket.c...
compiling stm32f10x_tim.c...
compiling w5500api.c...
compiling socket.c...
compiling spi.c...
compiling w5500.c...
compiling cJSON.c...
..\MQTT\lib\cJSON.c(30): warning: #1293-D: assignment in condition
if (!(copy = (char*)cJSON_malloc(len)))
@ -86,12 +93,13 @@ compiling cJSON.c...
..\MQTT\lib\cJSON.c(511): warning: #1293-D: assignment in condition
if (!(new_item=cJSON_New_Item())) return 0; /* memory fail */
..\MQTT\lib\cJSON.c: 5 warnings, 0 errors
compiling w5500.c...
compiling w5500api.c...
compiling dns.c...
compiling dhcp.c...
compiling MQTTConnectClient.c...
compiling dhcp.c...
compiling MQTTConnectServer.c...
compiling MQTTDeserializePublish.c...
compiling MQTTSerializePublish.c...
compiling MQTTFormat.c...
..\MQTT\lib\MQTTFormat.c(122): warning: #550-D: variable "strindex" was set but never used
int strindex = 0;
@ -101,33 +109,32 @@ compiling MQTTFormat.c...
int strindex = 0;
..\MQTT\lib\MQTTFormat.c: 3 warnings, 0 errors
compiling MQTTPacket.c...
compiling MQTTSerializePublish.c...
compiling MQTTSubscribeClient.c...
compiling MQTTUnsubscribeClient.c...
compiling MQTTSubscribeServer.c...
compiling MQTTUnsubscribeClient.c...
compiling MQTTUnsubscribeServer.c...
compiling mqtt_api.c...
compiling md5.c...
compiling croutine.c...
compiling event_groups.c...
compiling list.c...
compiling tasks.c...
compiling timers.c...
compiling heap_4.c...
compiling tasks.c...
compiling queue.c...
compiling heap_4.c...
compiling port.c...
compiling myfreertos.c...
linking...
Program Size: Code=25748 RO-data=804 RW-data=1532 ZI-data=13228
Program Size: Code=26420 RO-data=804 RW-data=1552 ZI-data=13232
FromELF: creating hex file...
"..\OBJ\LED.axf" - 0 Error(s), 8 Warning(s).
"..\OBJ\LED.axf" - 0 Error(s), 11 Warning(s).
<h2>Collection of Component include folders:</h2>
.\RTE\_LED
D:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\2.3.0\Device\Include
<h2>Collection of Component Files used:</h2>
Build Time Elapsed: 00:00:04
Build Time Elapsed: 00:00:03
</pre>
</body>
</html>

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

Binary file not shown.

Binary file not shown.

Binary file not shown.

@ -1,5 +1,5 @@
Dependencies for Project 'control', Target 'LED': (DO NOT MODIFY !)
F (.\main.c)(0x659BA5A8)(--c99 -c --cpu Cortex-M3 -D__MICROLIB -g -O0 --apcs=interwork --split_sections -I ..\USER -I ..\CORE -I ..\STM32F10x_FWLib\inc -I ..\HARDWARE -I ..\SYSTEM -I ..\dhcp -I ..\dns -I ..\md5 -I ..\MQTT -I ..\MQTT\lib -I ..\w5500 -I ..\FreeRTOS\include -I ..\FreeRTOS\portable\RVDS\ARM_CM3 -I ..\myfreertos -I.\RTE\_LED -ID:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\2.3.0\Device\Include -ID:\Keil_v5\ARM\CMSIS\Include -D__UVISION_VERSION="523" -DSTM32F10X_MD -DSTM32F10X_MD -DUSE_STDPERIPH_DRIVER -o ..\obj\main.o --omf_browse ..\obj\main.crf --depend ..\obj\main.d)
F (.\main.c)(0x65B762B8)(--c99 -c --cpu Cortex-M3 -D__MICROLIB -g -O0 --apcs=interwork --split_sections -I ..\USER -I ..\CORE -I ..\STM32F10x_FWLib\inc -I ..\HARDWARE -I ..\SYSTEM -I ..\dhcp -I ..\dns -I ..\md5 -I ..\MQTT -I ..\MQTT\lib -I ..\w5500 -I ..\FreeRTOS\include -I ..\FreeRTOS\portable\RVDS\ARM_CM3 -I ..\myfreertos -I.\RTE\_LED -ID:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\2.3.0\Device\Include -ID:\Keil_v5\ARM\CMSIS\Include -D__UVISION_VERSION="523" -DSTM32F10X_MD -DSTM32F10X_MD -DUSE_STDPERIPH_DRIVER -o ..\obj\main.o --omf_browse ..\obj\main.crf --depend ..\obj\main.d)
I (..\myfreertos\myfreertos.h)(0x656FE939)
I (..\FreeRTOS\include\FreeRTOS.h)(0x652F9ABE)
I (D:\Keil_v5\ARM\ARMCC\include\stddef.h)(0x57F606B8)
@ -44,7 +44,7 @@ I (..\FreeRTOS\include\task.h)(0x573F3A16)
I (..\FreeRTOS\include\list.h)(0x573F3A16)
I (..\SYSTEM\SysTick.h)(0x6530E176)
I (..\HARDWARE\W25Q128_Ins.h)(0x64D48CD3)
I (..\HARDWARE\rs485.h)(0x656565E2)
I (..\HARDWARE\rs485.h)(0x65B7945D)
I (..\HARDWARE\write.h)(0x6572E0DC)
I (..\HARDWARE\Relays.h)(0x6559CD68)
I (..\HARDWARE\OSC.h)(0x64E6C94A)
@ -52,7 +52,7 @@ I (..\HARDWARE\PWM.h)(0x655DC5F0)
I (..\HARDWARE\rtc.h)(0x656019C4)
I (..\HARDWARE\bufcut.h)(0x6537353D)
I (..\HARDWARE\iwdg.h)(0x64FC32D3)
I (..\HARDWARE\PID.h)(0x65AA5F50)
I (..\HARDWARE\PID.h)(0x65B78B73)
I (..\HARDWARE\PWMOUT.h)(0x659B5EBC)
I (..\w5500\w5500api.h)(0x65712928)
I (..\w5500\spi.h)(0x65093ED0)
@ -169,7 +169,7 @@ I (..\STM32F10x_FWLib\inc\misc.h)(0x4D783BB4)
I (..\SYSTEM\USART.h)(0x655DAB3D)
I (..\SYSTEM\system.h)(0x64BC0671)
I (D:\Keil_v5\ARM\ARMCC\include\stdio.h)(0x57F606B8)
I (..\HARDWARE\rs485.h)(0x656565E2)
I (..\HARDWARE\rs485.h)(0x65B7945D)
I (..\HARDWARE\iwdg.h)(0x64FC32D3)
F (..\HARDWARE\PWM.h)(0x655DC5F0)()
F (..\HARDWARE\MYSPI.c)(0x64D06481)(--c99 -c --cpu Cortex-M3 -D__MICROLIB -g -O0 --apcs=interwork --split_sections -I ..\USER -I ..\CORE -I ..\STM32F10x_FWLib\inc -I ..\HARDWARE -I ..\SYSTEM -I ..\dhcp -I ..\dns -I ..\md5 -I ..\MQTT -I ..\MQTT\lib -I ..\w5500 -I ..\FreeRTOS\include -I ..\FreeRTOS\portable\RVDS\ARM_CM3 -I ..\myfreertos -I.\RTE\_LED -ID:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\2.3.0\Device\Include -ID:\Keil_v5\ARM\CMSIS\Include -D__UVISION_VERSION="523" -DSTM32F10X_MD -DSTM32F10X_MD -DUSE_STDPERIPH_DRIVER -o ..\obj\myspi.o --omf_browse ..\obj\myspi.crf --depend ..\obj\myspi.d)
@ -321,14 +321,14 @@ I (..\FreeRTOS\portable\RVDS\ARM_CM3\portmacro.h)(0x573F3A17)
I (..\FreeRTOS\include\mpu_wrappers.h)(0x573F3A16)
I (..\FreeRTOS\include\task.h)(0x573F3A16)
I (..\FreeRTOS\include\list.h)(0x573F3A16)
I (..\HARDWARE\rs485.h)(0x656565E2)
I (..\HARDWARE\rs485.h)(0x65B7945D)
I (..\HARDWARE\write.h)(0x6572E0DC)
I (..\HARDWARE\Relays.h)(0x6559CD68)
I (..\HARDWARE\OSC.h)(0x64E6C94A)
I (..\HARDWARE\PWM.h)(0x655DC5F0)
I (..\HARDWARE\bufcut.h)(0x6537353D)
I (..\HARDWARE\iwdg.h)(0x64FC32D3)
I (..\HARDWARE\PID.h)(0x65AA5F50)
I (..\HARDWARE\PID.h)(0x65B78B73)
I (..\HARDWARE\PWMOUT.h)(0x659B5EBC)
I (..\w5500\w5500api.h)(0x65712928)
I (..\w5500\spi.h)(0x65093ED0)
@ -374,8 +374,8 @@ I (..\SYSTEM\system.h)(0x64BC0671)
I (D:\Keil_v5\ARM\ARMCC\include\stdio.h)(0x57F606B8)
I (..\SYSTEM\SysTick.h)(0x6530E176)
F (..\HARDWARE\OSC.h)(0x64E6C94A)()
F (..\HARDWARE\rs485.c)(0x65AA6099)(--c99 -c --cpu Cortex-M3 -D__MICROLIB -g -O0 --apcs=interwork --split_sections -I ..\USER -I ..\CORE -I ..\STM32F10x_FWLib\inc -I ..\HARDWARE -I ..\SYSTEM -I ..\dhcp -I ..\dns -I ..\md5 -I ..\MQTT -I ..\MQTT\lib -I ..\w5500 -I ..\FreeRTOS\include -I ..\FreeRTOS\portable\RVDS\ARM_CM3 -I ..\myfreertos -I.\RTE\_LED -ID:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\2.3.0\Device\Include -ID:\Keil_v5\ARM\CMSIS\Include -D__UVISION_VERSION="523" -DSTM32F10X_MD -DSTM32F10X_MD -DUSE_STDPERIPH_DRIVER -o ..\obj\rs485.o --omf_browse ..\obj\rs485.crf --depend ..\obj\rs485.d)
I (..\HARDWARE\rs485.h)(0x656565E2)
F (..\HARDWARE\rs485.c)(0x65B797C4)(--c99 -c --cpu Cortex-M3 -D__MICROLIB -g -O0 --apcs=interwork --split_sections -I ..\USER -I ..\CORE -I ..\STM32F10x_FWLib\inc -I ..\HARDWARE -I ..\SYSTEM -I ..\dhcp -I ..\dns -I ..\md5 -I ..\MQTT -I ..\MQTT\lib -I ..\w5500 -I ..\FreeRTOS\include -I ..\FreeRTOS\portable\RVDS\ARM_CM3 -I ..\myfreertos -I.\RTE\_LED -ID:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\2.3.0\Device\Include -ID:\Keil_v5\ARM\CMSIS\Include -D__UVISION_VERSION="523" -DSTM32F10X_MD -DSTM32F10X_MD -DUSE_STDPERIPH_DRIVER -o ..\obj\rs485.o --omf_browse ..\obj\rs485.crf --depend ..\obj\rs485.d)
I (..\HARDWARE\rs485.h)(0x65B7945D)
I (..\USER\stm32f10x.h)(0x4D783CB5)
I (..\CORE\core_cm3.h)(0x4D523B58)
I (D:\Keil_v5\ARM\ARMCC\include\stdint.h)(0x57F606B8)
@ -427,7 +427,7 @@ I (..\HARDWARE\PWM.h)(0x655DC5F0)
I (..\HARDWARE\rtc.h)(0x656019C4)
I (..\HARDWARE\bufcut.h)(0x6537353D)
I (..\HARDWARE\iwdg.h)(0x64FC32D3)
I (..\HARDWARE\PID.h)(0x65AA5F50)
I (..\HARDWARE\PID.h)(0x65B78B73)
I (..\HARDWARE\PWMOUT.h)(0x659B5EBC)
I (..\w5500\w5500api.h)(0x65712928)
I (..\w5500\spi.h)(0x65093ED0)
@ -438,7 +438,7 @@ I (..\dhcp\dhcp.h)(0x5F377F9A)
I (D:\Keil_v5\ARM\ARMCC\include\string.h)(0x57F606B8)
I (..\dns\dns.h)(0x5F377DE4)
I (..\MQTT\mqtt_api.h)(0x5F3A0FBC)
F (..\HARDWARE\rs485.h)(0x656565E2)()
F (..\HARDWARE\rs485.h)(0x65B7945D)()
F (..\HARDWARE\rtc.c)(0x657FEB48)(--c99 -c --cpu Cortex-M3 -D__MICROLIB -g -O0 --apcs=interwork --split_sections -I ..\USER -I ..\CORE -I ..\STM32F10x_FWLib\inc -I ..\HARDWARE -I ..\SYSTEM -I ..\dhcp -I ..\dns -I ..\md5 -I ..\MQTT -I ..\MQTT\lib -I ..\w5500 -I ..\FreeRTOS\include -I ..\FreeRTOS\portable\RVDS\ARM_CM3 -I ..\myfreertos -I.\RTE\_LED -ID:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\2.3.0\Device\Include -ID:\Keil_v5\ARM\CMSIS\Include -D__UVISION_VERSION="523" -DSTM32F10X_MD -DSTM32F10X_MD -DUSE_STDPERIPH_DRIVER -o ..\obj\rtc.o --omf_browse ..\obj\rtc.crf --depend ..\obj\rtc.d)
I (..\SYSTEM\system.h)(0x64BC0671)
I (..\USER\stm32f10x.h)(0x4D783CB5)
@ -504,7 +504,7 @@ I (..\STM32F10x_FWLib\inc\stm32f10x_usart.h)(0x504F415F)
I (..\STM32F10x_FWLib\inc\stm32f10x_wwdg.h)(0x4D783BB4)
I (..\STM32F10x_FWLib\inc\misc.h)(0x4D783BB4)
I (D:\Keil_v5\ARM\ARMCC\include\stdio.h)(0x57F606B8)
I (..\HARDWARE\rs485.h)(0x656565E2)
I (..\HARDWARE\rs485.h)(0x65B7945D)
F (..\HARDWARE\bufcut.h)(0x6537353D)()
F (..\HARDWARE\iwdg.c)(0x64FC32C4)(--c99 -c --cpu Cortex-M3 -D__MICROLIB -g -O0 --apcs=interwork --split_sections -I ..\USER -I ..\CORE -I ..\STM32F10x_FWLib\inc -I ..\HARDWARE -I ..\SYSTEM -I ..\dhcp -I ..\dns -I ..\md5 -I ..\MQTT -I ..\MQTT\lib -I ..\w5500 -I ..\FreeRTOS\include -I ..\FreeRTOS\portable\RVDS\ARM_CM3 -I ..\myfreertos -I.\RTE\_LED -ID:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\2.3.0\Device\Include -ID:\Keil_v5\ARM\CMSIS\Include -D__UVISION_VERSION="523" -DSTM32F10X_MD -DSTM32F10X_MD -DUSE_STDPERIPH_DRIVER -o ..\obj\iwdg.o --omf_browse ..\obj\iwdg.crf --depend ..\obj\iwdg.d)
I (..\HARDWARE\iwdg.h)(0x64FC32D3)
@ -538,9 +538,9 @@ I (..\STM32F10x_FWLib\inc\stm32f10x_usart.h)(0x504F415F)
I (..\STM32F10x_FWLib\inc\stm32f10x_wwdg.h)(0x4D783BB4)
I (..\STM32F10x_FWLib\inc\misc.h)(0x4D783BB4)
F (..\HARDWARE\iwdg.h)(0x64FC32D3)()
F (..\HARDWARE\PID.c)(0x65AF75D5)(--c99 -c --cpu Cortex-M3 -D__MICROLIB -g -O0 --apcs=interwork --split_sections -I ..\USER -I ..\CORE -I ..\STM32F10x_FWLib\inc -I ..\HARDWARE -I ..\SYSTEM -I ..\dhcp -I ..\dns -I ..\md5 -I ..\MQTT -I ..\MQTT\lib -I ..\w5500 -I ..\FreeRTOS\include -I ..\FreeRTOS\portable\RVDS\ARM_CM3 -I ..\myfreertos -I.\RTE\_LED -ID:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\2.3.0\Device\Include -ID:\Keil_v5\ARM\CMSIS\Include -D__UVISION_VERSION="523" -DSTM32F10X_MD -DSTM32F10X_MD -DUSE_STDPERIPH_DRIVER -o ..\obj\pid.o --omf_browse ..\obj\pid.crf --depend ..\obj\pid.d)
I (..\HARDWARE\PID.h)(0x65AA5F50)
I (..\HARDWARE\Relays.h)(0x6559CD68)
F (..\HARDWARE\PID.c)(0x65B794F2)(--c99 -c --cpu Cortex-M3 -D__MICROLIB -g -O0 --apcs=interwork --split_sections -I ..\USER -I ..\CORE -I ..\STM32F10x_FWLib\inc -I ..\HARDWARE -I ..\SYSTEM -I ..\dhcp -I ..\dns -I ..\md5 -I ..\MQTT -I ..\MQTT\lib -I ..\w5500 -I ..\FreeRTOS\include -I ..\FreeRTOS\portable\RVDS\ARM_CM3 -I ..\myfreertos -I.\RTE\_LED -ID:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\2.3.0\Device\Include -ID:\Keil_v5\ARM\CMSIS\Include -D__UVISION_VERSION="523" -DSTM32F10X_MD -DSTM32F10X_MD -DUSE_STDPERIPH_DRIVER -o ..\obj\pid.o --omf_browse ..\obj\pid.crf --depend ..\obj\pid.d)
I (..\HARDWARE\PID.h)(0x65B78B73)
I (..\SYSTEM\SysTick.h)(0x6530E176)
I (..\SYSTEM\system.h)(0x64BC0671)
I (..\USER\stm32f10x.h)(0x4D783CB5)
I (..\CORE\core_cm3.h)(0x4D523B58)
@ -570,9 +570,10 @@ I (..\STM32F10x_FWLib\inc\stm32f10x_tim.h)(0x64FD7190)
I (..\STM32F10x_FWLib\inc\stm32f10x_usart.h)(0x504F415F)
I (..\STM32F10x_FWLib\inc\stm32f10x_wwdg.h)(0x4D783BB4)
I (..\STM32F10x_FWLib\inc\misc.h)(0x4D783BB4)
I (..\HARDWARE\Relays.h)(0x6559CD68)
I (..\SYSTEM\USART.h)(0x655DAB3D)
I (D:\Keil_v5\ARM\ARMCC\include\stdio.h)(0x57F606B8)
F (..\HARDWARE\PID.h)(0x65AA5F50)()
F (..\HARDWARE\PID.h)(0x65B78B73)()
F (..\HARDWARE\PWMOUT.c)(0x659B5EBC)(--c99 -c --cpu Cortex-M3 -D__MICROLIB -g -O0 --apcs=interwork --split_sections -I ..\USER -I ..\CORE -I ..\STM32F10x_FWLib\inc -I ..\HARDWARE -I ..\SYSTEM -I ..\dhcp -I ..\dns -I ..\md5 -I ..\MQTT -I ..\MQTT\lib -I ..\w5500 -I ..\FreeRTOS\include -I ..\FreeRTOS\portable\RVDS\ARM_CM3 -I ..\myfreertos -I.\RTE\_LED -ID:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\2.3.0\Device\Include -ID:\Keil_v5\ARM\CMSIS\Include -D__UVISION_VERSION="523" -DSTM32F10X_MD -DSTM32F10X_MD -DUSE_STDPERIPH_DRIVER -o ..\obj\pwmout.o --omf_browse ..\obj\pwmout.crf --depend ..\obj\pwmout.d)
I (..\HARDWARE\PWMOUT.h)(0x659B5EBC)
I (..\SYSTEM\system.h)(0x64BC0671)
@ -604,7 +605,8 @@ I (..\STM32F10x_FWLib\inc\stm32f10x_tim.h)(0x64FD7190)
I (..\STM32F10x_FWLib\inc\stm32f10x_usart.h)(0x504F415F)
I (..\STM32F10x_FWLib\inc\stm32f10x_wwdg.h)(0x4D783BB4)
I (..\STM32F10x_FWLib\inc\misc.h)(0x4D783BB4)
I (..\HARDWARE\PID.h)(0x65AA5F50)
I (..\HARDWARE\PID.h)(0x65B78B73)
I (..\SYSTEM\SysTick.h)(0x6530E176)
F (..\HARDWARE\PWMOUT.h)(0x659B5EBC)()
F (..\SYSTEM\system.c)(0x64BC066E)(--c99 -c --cpu Cortex-M3 -D__MICROLIB -g -O0 --apcs=interwork --split_sections -I ..\USER -I ..\CORE -I ..\STM32F10x_FWLib\inc -I ..\HARDWARE -I ..\SYSTEM -I ..\dhcp -I ..\dns -I ..\md5 -I ..\MQTT -I ..\MQTT\lib -I ..\w5500 -I ..\FreeRTOS\include -I ..\FreeRTOS\portable\RVDS\ARM_CM3 -I ..\myfreertos -I.\RTE\_LED -ID:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\2.3.0\Device\Include -ID:\Keil_v5\ARM\CMSIS\Include -D__UVISION_VERSION="523" -DSTM32F10X_MD -DSTM32F10X_MD -DUSE_STDPERIPH_DRIVER -o ..\obj\system.o --omf_browse ..\obj\system.crf --depend ..\obj\system.d)
I (..\SYSTEM\system.h)(0x64BC0671)
@ -637,7 +639,7 @@ I (..\STM32F10x_FWLib\inc\stm32f10x_usart.h)(0x504F415F)
I (..\STM32F10x_FWLib\inc\stm32f10x_wwdg.h)(0x4D783BB4)
I (..\STM32F10x_FWLib\inc\misc.h)(0x4D783BB4)
F (..\SYSTEM\system.h)(0x64BC0671)()
F (..\SYSTEM\SysTick.c)(0x6520C033)(--c99 -c --cpu Cortex-M3 -D__MICROLIB -g -O0 --apcs=interwork --split_sections -I ..\USER -I ..\CORE -I ..\STM32F10x_FWLib\inc -I ..\HARDWARE -I ..\SYSTEM -I ..\dhcp -I ..\dns -I ..\md5 -I ..\MQTT -I ..\MQTT\lib -I ..\w5500 -I ..\FreeRTOS\include -I ..\FreeRTOS\portable\RVDS\ARM_CM3 -I ..\myfreertos -I.\RTE\_LED -ID:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\2.3.0\Device\Include -ID:\Keil_v5\ARM\CMSIS\Include -D__UVISION_VERSION="523" -DSTM32F10X_MD -DSTM32F10X_MD -DUSE_STDPERIPH_DRIVER -o ..\obj\systick.o --omf_browse ..\obj\systick.crf --depend ..\obj\systick.d)
F (..\SYSTEM\SysTick.c)(0x65B79248)(--c99 -c --cpu Cortex-M3 -D__MICROLIB -g -O0 --apcs=interwork --split_sections -I ..\USER -I ..\CORE -I ..\STM32F10x_FWLib\inc -I ..\HARDWARE -I ..\SYSTEM -I ..\dhcp -I ..\dns -I ..\md5 -I ..\MQTT -I ..\MQTT\lib -I ..\w5500 -I ..\FreeRTOS\include -I ..\FreeRTOS\portable\RVDS\ARM_CM3 -I ..\myfreertos -I.\RTE\_LED -ID:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\2.3.0\Device\Include -ID:\Keil_v5\ARM\CMSIS\Include -D__UVISION_VERSION="523" -DSTM32F10X_MD -DSTM32F10X_MD -DUSE_STDPERIPH_DRIVER -o ..\obj\systick.o --omf_browse ..\obj\systick.crf --depend ..\obj\systick.d)
I (..\SYSTEM\SysTick.h)(0x6530E176)
I (..\SYSTEM\system.h)(0x64BC0671)
I (..\USER\stm32f10x.h)(0x4D783CB5)
@ -2507,7 +2509,7 @@ I (..\FreeRTOS\portable\RVDS\ARM_CM3\portmacro.h)(0x573F3A17)
I (..\FreeRTOS\include\mpu_wrappers.h)(0x573F3A16)
I (..\FreeRTOS\include\task.h)(0x573F3A16)
I (..\FreeRTOS\include\list.h)(0x573F3A16)
F (..\myfreertos\myfreertos.c)(0x65AE5EE8)(--c99 -c --cpu Cortex-M3 -D__MICROLIB -g -O0 --apcs=interwork --split_sections -I ..\USER -I ..\CORE -I ..\STM32F10x_FWLib\inc -I ..\HARDWARE -I ..\SYSTEM -I ..\dhcp -I ..\dns -I ..\md5 -I ..\MQTT -I ..\MQTT\lib -I ..\w5500 -I ..\FreeRTOS\include -I ..\FreeRTOS\portable\RVDS\ARM_CM3 -I ..\myfreertos -I.\RTE\_LED -ID:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\2.3.0\Device\Include -ID:\Keil_v5\ARM\CMSIS\Include -D__UVISION_VERSION="523" -DSTM32F10X_MD -DSTM32F10X_MD -DUSE_STDPERIPH_DRIVER -o ..\obj\myfreertos.o --omf_browse ..\obj\myfreertos.crf --depend ..\obj\myfreertos.d)
F (..\myfreertos\myfreertos.c)(0x65B79A1A)(--c99 -c --cpu Cortex-M3 -D__MICROLIB -g -O0 --apcs=interwork --split_sections -I ..\USER -I ..\CORE -I ..\STM32F10x_FWLib\inc -I ..\HARDWARE -I ..\SYSTEM -I ..\dhcp -I ..\dns -I ..\md5 -I ..\MQTT -I ..\MQTT\lib -I ..\w5500 -I ..\FreeRTOS\include -I ..\FreeRTOS\portable\RVDS\ARM_CM3 -I ..\myfreertos -I.\RTE\_LED -ID:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\2.3.0\Device\Include -ID:\Keil_v5\ARM\CMSIS\Include -D__UVISION_VERSION="523" -DSTM32F10X_MD -DSTM32F10X_MD -DUSE_STDPERIPH_DRIVER -o ..\obj\myfreertos.o --omf_browse ..\obj\myfreertos.crf --depend ..\obj\myfreertos.d)
I (..\myfreertos\myfreertos.h)(0x656FE939)
I (..\FreeRTOS\include\FreeRTOS.h)(0x652F9ABE)
I (D:\Keil_v5\ARM\ARMCC\include\stddef.h)(0x57F606B8)
@ -2552,7 +2554,7 @@ I (..\FreeRTOS\include\task.h)(0x573F3A16)
I (..\FreeRTOS\include\list.h)(0x573F3A16)
I (..\SYSTEM\SysTick.h)(0x6530E176)
I (..\HARDWARE\W25Q128_Ins.h)(0x64D48CD3)
I (..\HARDWARE\rs485.h)(0x656565E2)
I (..\HARDWARE\rs485.h)(0x65B7945D)
I (..\HARDWARE\write.h)(0x6572E0DC)
I (..\HARDWARE\Relays.h)(0x6559CD68)
I (..\HARDWARE\OSC.h)(0x64E6C94A)
@ -2560,7 +2562,7 @@ I (..\HARDWARE\PWM.h)(0x655DC5F0)
I (..\HARDWARE\rtc.h)(0x656019C4)
I (..\HARDWARE\bufcut.h)(0x6537353D)
I (..\HARDWARE\iwdg.h)(0x64FC32D3)
I (..\HARDWARE\PID.h)(0x65AA5F50)
I (..\HARDWARE\PID.h)(0x65B78B73)
I (..\HARDWARE\PWMOUT.h)(0x659B5EBC)
I (..\w5500\w5500api.h)(0x65712928)
I (..\w5500\spi.h)(0x65093ED0)

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

@ -1,6 +1,6 @@
..\obj\pid.o: ..\HARDWARE\PID.c
..\obj\pid.o: ..\HARDWARE\PID.h
..\obj\pid.o: ..\HARDWARE\Relays.h
..\obj\pid.o: ..\SYSTEM\SysTick.h
..\obj\pid.o: ..\SYSTEM\system.h
..\obj\pid.o: ..\USER\stm32f10x.h
..\obj\pid.o: ..\CORE\core_cm3.h
@ -31,5 +31,6 @@
..\obj\pid.o: ..\STM32F10x_FWLib\inc\stm32f10x_usart.h
..\obj\pid.o: ..\STM32F10x_FWLib\inc\stm32f10x_wwdg.h
..\obj\pid.o: ..\STM32F10x_FWLib\inc\misc.h
..\obj\pid.o: ..\HARDWARE\Relays.h
..\obj\pid.o: ..\SYSTEM\USART.h
..\obj\pid.o: D:\Keil_v5\ARM\ARMCC\Bin\..\include\stdio.h

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

@ -31,3 +31,4 @@
..\obj\pwmout.o: ..\STM32F10x_FWLib\inc\stm32f10x_wwdg.h
..\obj\pwmout.o: ..\STM32F10x_FWLib\inc\misc.h
..\obj\pwmout.o: ..\HARDWARE\PID.h
..\obj\pwmout.o: ..\SYSTEM\SysTick.h

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

File diff suppressed because it is too large Load Diff

@ -17,7 +17,7 @@ int main(void)
TimePwm_init(400 - 1, 360 - 1); // 72M/400/360=500HZ
// GPIO_ResetBits(GPIOB,GPIO_Pin_0);
// TIM_SetCompare3(TIM3,0);
RS485_1_Init(4800);
RS485_1_Init(9600);
HC595_Pin_Init();
RTC_Init(); // 需要放在HC595_Pin_Init()后面
TIM2_Init();

@ -54,7 +54,8 @@ u8 hour, min;
u8 change_stage_rev1 = 0;
u8 change_stage_rev2 = 0;
u8 change_stage_rev3 = 0;
u8 rs485buf[8] = {0x01, 0x03, 0x00, 0x01, 0x00, 0x09, 0xD4, 0x0C}; // 传感器交换数据
u8 rs485buf[8] = {0x02, 0x03, 0x00, 0x01, 0x00, 0x09, 0xD4, 0x3F}; // 传感器交换数据
u16 sync_cnt = 0; // 同步环境控制参数的计数器到0同步
int T = 0, H = 0, C = 0, G = 0, current_T = 0;
extern u8 total[];
float Humidity = 0;
@ -159,18 +160,24 @@ void Sensor_Communication_task(void *pvParameters)
// printf("send finish\r\n");
delay_xms(200);
// RX_BUF_Printf(128);
RS485_1_Send_Data_3();
if (sync_cnt <= 0)
{
RS485_1_Send_Data_3();
sync_cnt = 600;
}
else
{
sync_cnt--;
}
delay_xms(200);
// RX_BUF_Printf(128);
bufcut_Init(RS485_RX_BUF_COPY, RS485_RX_BUF, 0, 128);
RS485_RX_CNT = 0;
// HC595_Send_Byte(0x00); // close all
while ((isAllZeros(RS485_RX_BUF_COPY, 128) == 0))
// while(!(RS485_RX_BUF[0]==0x00 && RS485_RX_BUF[1]==0x00&&RS485_RX_BUF[2]==0x00 && RS485_RX_BUF[3]==0x00))
{
// printf("enter while\r\n");
if (RS485_RX_BUF_COPY[0] == 0x01 && RS485_RX_BUF_COPY[1] == 0x03) // 判断是否校验成功
if (RS485_RX_BUF_COPY[0] == 0x02 && RS485_RX_BUF_COPY[1] == 0x03) // 判断是否校验成功
{
// -21
// RS485_RX_BUF_COPY[3] = 0xFF;
@ -179,7 +186,8 @@ void Sensor_Communication_task(void *pvParameters)
T = RS485_RX_BUF_COPY[3];
T = T << 8 | RS485_RX_BUF_COPY[4];
// 支持负数温度
if (T & 0x8000) {
if (T & 0x8000)
{
T = ((~T + 1) & 0xFFFF);
}
@ -189,8 +197,6 @@ void Sensor_Communication_task(void *pvParameters)
C = RS485_RX_BUF_COPY[19];
C = C << 8 | RS485_RX_BUF_COPY[20];
// printf("now_tem=%d.%d℃,now_hum=%d.%d%% ,co2=%d\r\n",T/10,T%10,H/10,H%10,C);
/*GPIO1->报警铃 GPIO3->加热棒 GPIO4—>新风风扇 GPIO5->加湿器 GPIO6->压缩机 */
if ((T < (tem - 20) || T > (tem + 20) || H < (hum - 100) || H > (hum + 100)) && (tick > 600)) // 温度偏差2℃报警湿度偏差10报警
@ -213,6 +219,9 @@ void Sensor_Communication_task(void *pvParameters)
pid.set_tem = tem / 10.0;
pid.now_tem = T / 10.0;
PID_Calc();
// send sign to 485
// out: 0-200
// num=(((pid.OUT*400)/pid.pwmcycle)-1);//请问这个pid.OUT与pwm占空比的值是如何换算过来的
// TIM_SetCompare3(TIM3,num);
// TIM_SetCompare3(TIM3,0.845*num);
@ -248,66 +257,47 @@ void Sensor_Communication_task(void *pvParameters)
humidity_flag = 0;
}
RS485_1_Send_Data_2(); // 上传参数
delay_xms(200);
RX_BUF_Transfer(0, 23);
// RX_BUF_Printf(128);
}
else if (RS485_RX_BUF_COPY[0] == 0xEE && RS485_RX_BUF_COPY[1] == 0xB6 && RS485_RX_BUF_COPY[2] == 0x03)
{
Analysis(&n, &i, RS485_RX_BUF_COPY);
// printf("B6 03 cmd: batch sync\r\n");
Array(&now_stage, &hour, &min, &tem, &hum, &red, &blue, &white); // 更新对应阶段号的参数
Write_Init();
RX_BUF_Transfer(0, 11);
// printf("batch sync over\r\n");
// RX_BUF_Printf(128);
}
else if (RS485_RX_BUF_COPY[0] == 0xEE && RS485_RX_BUF_COPY[1] == 0xB6 && RS485_RX_BUF_COPY[2] == 0x04)
{
change_stage_rev1 = RS485_RX_BUF_COPY[3];
// printf("B6 04 cmd: change stage\r\n");
RTC_synchronization_ins(2023, 9, 1, 0, 00, 00);
now_stage = change_stage_rev1;
store_stage = change_stage_rev1;
Write_Init();
RX_BUF_Transfer(0, 8);
// printf("change stage over\r\n");
// RX_BUF_Printf(128);
}
else if (RS485_RX_BUF_COPY[0] == 0xEE && RS485_RX_BUF_COPY[1] == 0xB6 && RS485_RX_BUF_COPY[2] == 0x01)
{
Batch_synchronization(&n, RS485_RX_BUF_COPY);
// printf("B6 01 cmd: get one %d\r\n", n);
Array(&now_stage, &hour, &min, &tem, &hum, &red, &blue, &white); // 更新对应阶段号的参数
// Write_Init();减少擦写的次数
// printf("get one over\r\n");
RX_BUF_Transfer(0, 20);
// RX_BUF_Printf(128);
}
else if (RS485_RX_BUF_COPY[0] == 0xEE && RS485_RX_BUF_COPY[1] == 0xB1 && RS485_RX_BUF_COPY[2] == 0x11 && RS485_RX_BUF_COPY[15] == 0xFF && RS485_RX_BUF[16] == 0xFF)
{
// printf("cut overdata of B6 03 \r\n");
RX_BUF_Transfer(0, 17);
}
else if (RS485_RX_BUF_COPY[0] == 0xEE && RS485_RX_BUF_COPY[1] == 0xB1 && RS485_RX_BUF_COPY[2] == 0x11 && RS485_RX_BUF_COPY[14] == 0xFF && RS485_RX_BUF[15] == 0xFF)
{
// printf("cut overdata of B6 03 \r\n");
// RX_BUF_Printf(128);
RX_BUF_Transfer(0, 16);
// RX_BUF_Printf(128);
}
else if (RS485_RX_BUF_COPY[0] == 0xEE && RS485_RX_BUF_COPY[1] == 0xB1 && RS485_RX_BUF_COPY[2] == 0x11 && RS485_RX_BUF_COPY[12] == 0xFF && RS485_RX_BUF[13] == 0xFF)
{
// printf("cut overdata of B6 04 \r\n");
// RX_BUF_Printf(128);
RX_BUF_Transfer(0, 14);
}
else if (RS485_RX_BUF_COPY[0] == 0xEE && RS485_RX_BUF_COPY[1] == 0xB1 && RS485_RX_BUF_COPY[2] == 0x01 && RS485_RX_BUF_COPY[7] == 0xFF && RS485_RX_BUF_COPY[8] == 0xFF)
{
// printf("cut overdata of Upper computer \r\n");
// RX_BUF_Printf(128);
RX_BUF_Transfer(0, 9);
// RX_BUF_Printf(128);
}
else
{
@ -323,27 +313,17 @@ void Sensor_Communication_task(void *pvParameters)
ZERO_Count++;
}
RX_BUF_Transfer(0, ZERO_Count);
// printf("previous array cut\r\n");
// RX_BUF_Printf(128);
}
// HC595_Send_Byte(0x0F);
}
// HC595_Send_Byte(0x0F); // close all
// printf("%d,%d,%d\r\n",T,H,C);
// printf("current params: %d:%d,hot or cold flag:%d, humidity flag:%d, alarm: %d\r\n",chour, cminute, hot_clod_flag, humidity_flag, ALARM);
// printf("led!!!\r\n");
if (red <= 1000 && blue <= 1000)
{
PWM_SetCompare1((red / 100.0 * 3.5 + 28)); // J9
PWM_SetCompare2((blue / 100.0 * 3.5 + 28)); // J11
PWM_SetCompare4((white / 100.0 * 3.5 + 28)); // J10
// printf("red=%d\r\n",red);
// printf("bule=%d\r\n",blue);
}
RS485_RX_CNT = 0;
// printf("end data to serial monitor end");
}
}

Loading…
Cancel
Save