update p cmd reply and V cmd reply

This commit is contained in:
Yunhorn 2023-06-01 17:45:49 +08:00
parent 2603a41306
commit 4ce915e27f
6 changed files with 45 additions and 43 deletions

View File

@ -98,8 +98,8 @@ uint32_t MCU_UID(void);
#define Max_Period 20
#define Radar_frame_len 36
#define MajorVer 23U
#define MinorVer 02U
#define SubMinorVer 21U
#define MinorVer 06U
#define SubMinorVer 01U
#define senddataport 10U //STS_O1 SEND DATA PORT
#define sendhtbtport 5U //STS_O2 send heart beat port

File diff suppressed because one or more lines are too long

View File

@ -49,7 +49,7 @@
<InvalidFlash>1</InvalidFlash>
</TargetStatus>
<OutputDirectory>LED_M100C_WS2812\</OutputDirectory>
<OutputName>STS_OO_F103_O1O2O3O5O6_V2_2023</OutputName>
<OutputName>STS_OO_F103_O1O2O3O5O6_V2_2023R6</OutputName>
<CreateExecutable>1</CreateExecutable>
<CreateLib>0</CreateLib>
<CreateHexFile>1</CreateHexFile>

View File

@ -17,7 +17,7 @@
"led_m100c_ws2812\stm32f1xx_ll_tim.o"
"led_m100c_ws2812\stm32f1xx_ll_usart.o"
"led_m100c_ws2812\system_stm32f1xx.o"
--library_type=microlib --nodebug --strict --scatter "LED_M100C_WS2812\STS_OO_F103_O1O2O3O5O6_V2_2023.sct"
--library_type=microlib --strict --scatter "LED_M100C_WS2812\STS_OO_F103_O1O2O3O5O6_V2_2023.sct"
--summary_stderr --info summarysizes --map --load_addr_map_info --xref --callgraph --symbols
--info sizes --info totals --info unused --info veneers
--list "STS_OO_F103_O1O2O3O5O6_V2_2023.map" -o LED_M100C_WS2812\STS_OO_F103_O1O2O3O5O6_V2_2023.axf

Binary file not shown.

View File

@ -390,9 +390,11 @@ void hex2str(char* hex , char* str )
void Reply_Version_Info()
{
Node_Send_Data(userappctrlport, UnConfirmed , 0x56, MajorVer, MinorVer, SubMinorVer);
//Node_Send_Data(userappctrlport, UnConfirmed , 0x56, MajorVer, MinorVer, SubMinorVer);
printf("AT+LRSEND=%d,0,4,<%02x%02x%02x%02x\r\n",userappctrlport, 0x56, MajorVer, MinorVer, SubMinorVer); //2023-06-01
/* V 2.1.2 {56 02 01 02} */
/* V 2.1.2 {56 23 06 01} */
}
void Set_PCR_Parameter(char *str,uint8_t len)
@ -437,8 +439,8 @@ void Set_PCR_Parameter(char *str,uint8_t len)
LL_mDelay(500);
// printf("AT+LRSEND=10,0,2,<4F4B\r\n"); "OK" printf("AT+LRSEND=%d,%d,%d,<00\r\n",port,confirm,1); break; }
printf("AT+LRSEND=%d,0,7,<%04x%04x%04x%02x\r\n",cmdreplyport, /* change to port 13= cmdreplyport to align with other config£¬ 2022-09-21 sundp */
PCR_parameter.Start,PCR_parameter.End,PCR_parameter.Threshold,PCR_parameter.Gain);
printf("AT+LRSEND=%d,0,15,<%02x%d%d%d%d\r\n",cmdreplyport,0x50, /* change to port 13= cmdreplyport to align with other config£¬ 2023-06-1 sundp */
PCR_parameter.Start,PCR_parameter.End,PCR_parameter.Threshold, PCR_parameter.Gain);
//change to port 13= cmdreplyport to align with other config /* 2022-09-21 sundp */
PCR PCR_parameter;
printf("Set Start=%dmm\r\n",PCR_parameter.Start);