| | |
| | | } |
| | | |
| | | |
| | | //ÃÜÂëÑéÖ¤ |
| | | //?ÃÜÂëÑéÖ¤ |
| | | if(uc_recv_data_union_p->uc_protocol_head_s.uc_admin==UC_SUPPER_ADMIN) |
| | | { |
| | | //²»ÐèÒªÑéÖ¤ÃÜÂë |
| | |
| | | uc_respond_data_p->uc_recv_buf[crc_len] = send_crc_check >> 8; //¸ßλ |
| | | uc_respond_data_p->uc_recv_buf[crc_len + 1] = send_crc_check &0xff; |
| | | |
| | | UARTx_SendData_Normal(UART0,(uint8_t *)uc_respond_data_p,crc_len + 2); |
| | | UC_SEND_NORMAL((uint8_t *)uc_respond_data_p,crc_len + 2); |
| | | } |
| | | |
| | | |
| | |
| | | { |
| | | data_category_ID= BSWAP_16(uc_recv_data_union_p->uc_protocol_head_s.data_table_id); |
| | | data_p = uc_recv_data_union_p->uc_recv_buf + UC_PROTOCOL_HEAD_LENGTH +sizeof (uc_recv_data_union_p->uc_protocol_head_s.data_table_id); |
| | | switch(data_category_ID) |
| | | switch(data_category_ID)//?ÐèÒªÍêÉÆ |
| | | { |
| | | case EQUIPMENT_BASIC_INF_ID : COM_equipment_basic_inf_handle(uc_recv_data_union_p->uc_protocol_head_s.cmd_code,data_category_ID,data_p,uc_respond_data_p) ;break; |
| | | // case MAIN_EQUIPM_HARDWARE_SOFTWARE_INF_ID : COM_main_equipment_hardware_software_inf_handle(WriteOrRead,com_frame_receive_inf_in.data_category_ID,(DataPtr +2)) ;break; |
| | |
| | | |
| | | void upperComPro(void) |
| | | { |
| | | //DMA½ÓÊÕÊý¾ÝÅÐ¶Ï |
| | | //?DMA½ÓÊÕÊý¾ÝÅÐ¶Ï |
| | | |
| | | |
| | | //Ö¡¸ñʽ½âÎöÅÐ¶Ï |
| | |
| | | break; |
| | | case UC_CMD_GET_LOG_RECENT: //°´×î½ü |
| | | break; |
| | | case UC_CMD_GET_LOG_TIME: //°´Ê±¼ä |
| | | case UC_CMD_GET_LOG_TIME: //?°´Ê±¼ä |
| | | // if (uc_login_state_g == UC_OK && local_random_code_g == uc_rec_para_p->uc_recv_buf_union.uc_protocol_head_s.random_number) |
| | | // { |
| | | // uc_rw_result_g = Upper_ComputerLogProcess(Upper_ComputerPermissionsGet(uc_rec_para_p->uc_recv_buf_union.uc_recv_buf[2]), |
| | |
| | | // __SYS_DELAY_SEC_TIME_SET_(UC_active_time,UC_ACTIVE_TIME);//ÉèÖü¤»îʱ¼ä//ÖØÖü¤»îʱ¼ä |
| | | // } |
| | | break; |
| | | case UC_CMD_IAP: |
| | | case UC_CMD_IAP://? |
| | | // uc_rw_result_g = Upper_ComputerIapProcess(uc_table_id, &uc_rec_para_p->uc_recv_buf_union.uc_recv_buf[UC_PROTOCOL_HEAD_LENGTH + UC_DATA_TABLE_BYTES_LENGTH]); |
| | | // __SYS_DELAY_SEC_TIME_SET_(UC_active_time,UC_ACTIVE_TIME);//ÉèÖü¤»îʱ¼ä//ÖØÖü¤»îʱ¼ä |
| | | break; |