Skip to content

UDS Client #37

@guru0808

Description

@guru0808

Hi
I cannot find any example related to UDS Client usage. However i have figured out a way to read the response data and would like to verify if there is any other way. In simple terms I wait for idle state after executing request then read data from buffer

 case JOB_FUNC_W8_RESP:
            // IVEC_BSW_LOG(LOG_STRING, "Waiting for resp %d\n", l_i32Error);
            if(UDSClientPoll(&__gprv_UdsClient)==UDS_CLIENT_IDLE)
            {
                IVEC_BSW_LOG(LOG_STRING, "Request Complete.\n");
                **for (int i = 0; i < __gprv_UdsClient.recv_size; i++) 
                    printf("%02X ", __gprv_UdsClient.recv_buf[i]); // my data
                printf("\n");**//
                 __lprv_i32JobStepNo = JOB_FUNC_FINISH;
            }
        
        break;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions