This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

PGA460-Q1: Serial communication

Part Number: PGA460-Q1
Other Parts Discussed in Thread: PGA460, ENERGIA

Hi team,

One of our customers wants to control the PGA460 by using the MSPF5529 to output "echo data dump" to the computer via a serial port. The customer asks how to modify the program.  Is there anything to suggest to the customer?

Best Regards,

Amy Luo

  • Hi Amy,

    The “GetDistance” Energia example already supports showing the results of an echo data dump.  You can do this by running the code example, opening the terminal, and providing numerical inputs to the terminal to configure the device settings.  The below picture shows an example response that is printed to the Energia serial port.

    For item #9 shown in the picture, which is next to the blue arrow, entering a value of 1 (P1 burst and listen) or 2 (P2 burst and listen) would configure the device to do an echo data dump operation.  The result of this operation is shown in the picture in the line next to the red arrow.

    The following code snippet within the GetDistance file would specifically start and print the echo data dump results, where edd=1 for a P1 burst and listen operation and edd=2 for a P2 burst and listen operation:

    Serial.println("Retrieving echo data dump profile. Wait...");
    
    ussc.runEchoDataDump(edd-1); // run preset 1 or 2 burst and/or listen command
    
    Serial.print(ussc.pullEchoDataDumpBulk());
    
    Serial.println("");
     

    Regards,

    Mekre