make functions static
remove magic number (CAN data position) and fix fault in process_received_data function