×

Serial line protocol for embedded devices

  • US 8,504,737 B2
  • Filed: 09/01/2010
  • Issued: 08/06/2013
  • Est. Priority Date: 09/23/2009
  • Status: Active Grant
First Claim
Patent Images

1. A method of processing, by a media controller, a command received from a host device coupled to the media controller by a communication link, the method comprising:

  • normalizing, by a first command processing module, the received command from a host specific protocol to a common command format;

    generating, by a first interrupt generator, a first interrupt when the command is received;

    providing, by a host command processing and scheduler module, the received normalized command to a common command processing module;

    transmitting an acknowledge signal to the host device;

    if the received command includes a data transfer from the host device;

    allocating, by the common command processing module, memory in a receive buffer for the command;

    transferring data from the host device to the receive buffer;

    processing, by the common command processing module of the media controller, the received command including the transferred data, if present;

    transferring, by an application programming interface, data from the receive buffer to a processing module of the media controller corresponding to received command;

    processing, by the corresponding processing module of the media controller, the transferred data;

    if the received command includes a data transfer to the host device;

    receiving a data request from the host device;

    providing, by the corresponding processing module of the media controller, data corresponding to the data request to the common command processing module by the application programming interface;

    providing, by the common command processing module, data corresponding to the data request to the transmit buffer; and

    generating, by a second interrupt generator, a second interrupt when the data corresponding to the data request in the transmit buffer is ready for transmission;

    providing, by a datagram generator of the media controller, datagram data to the transmit buffer, wherein the datagram data comprises logging data of the media controller and wherein the datagram data is generated substantially independently of processing commands received from the host device, wherein the datagram data is of variable length and the datagram data comprises one or more of a timestamp, a sequence number of a process operating on the media controller, and log data documenting statistics of the media controller, the statistics comprising at least one of error codes and operating statistics; and

    interleaving, by the transmit buffer, transmission of i) the data corresponding to the data request and ii) the datagram data on the communication link, wherein the data corresponding to the data request is transmitted to the host device by a synchronous protocol and the interleaving of datagram data is performed asynchronously with respect to the transmission of the data corresponding to the data request,wherein the host command processor and scheduler module validates the received command, schedules the command processing, completes the received command, and performs a command error handling.

View all claims
  • 9 Assignments
Timeline View
Assignment View
    ×
    ×