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.
Part Number: PGA460
Hi,
We are using PGA460 with ESP32 arduino for ultasonic sensor control.
We are able to send the data from ESP32 to PGA460, but unable to receive the acknowledgement from PGA.
Kindly let us know the solution.
In reply to Akeem Whitehead:
Hi sir,
Thank you for your reply.
We are using UART 2 from esspressif. Data sending is alright, checked in serial terminal window.
An example of writing threshold for UART address is:
0x55, 0x50 , data0 , data1..........0x35(checksum).
But while in threshold bulk read address to UART 2 is:
0x55, 0x4F,0xBO
I am not able to read proper threshold data's , and I m getting only 0xFF........
Is the command is right for UART2 address?
In reply to padmaraj Chipre:
Hi Padmaraj,
If I understand correctly, you are trying to execute a threshold bulk read command 15 on PGA460 UART_ADDR 2.
You are sending the correct UART sequence for this particular command: 0x55, 0x4F, 0xB0
Have you confirmed that your master is using a baud rate between 9.6-115.2kBaud, 8 data bits, 2 stop bits, no parity, and no flow control?
Are you certain the TXD of the master is connected to the RXD of the PGA460, and vice-versa?
Are you able to get any response from the PGA460? The default address is '0', so try sending 0x55, 0x0F, 0xF0 instead for the same command.
Hello Akeem,
As per your suggestion, we tried with UART0 of ESP arduino it is working fine, but we cannot use UART0 as it is already occupied.
We already designed for UART2 instead of UART0 to PGA460. We are unable get respond from PGA over UART2.
Please let us know what we need to change in our code to get it work.
Kindly requesting you to reply for our query asap. we require it to be done immediately.
Hi Akeem,
I attempted to communicate to PGA460 UART address '0' using UART2, but with UART 2 of ESP it is not working.
I am able to get result with UART0 with junk ( as I am using same UART for dumping and to print ) but not with UART2.
Below is the log,
Configuring the PGA460 with the selected settings. Wait...ERROR - Did not receive data!System Diagnostics - Frequency (kHz): infSystem Diagnostics - Decay Period (us): 0.00ERROR - Did not receive data!System Diagnostics - Temperature (C): -42.67ERROR - Did not receive data!System Diagnostics - Noise Level: 0.00Retrieving echo data dump profile. Wait...255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,EEPROM programmed successfully.ERROR - Did not receive data!ERROR - Did not receive data!Error reading measurement results...
Kindly requesting you to reply asap.
We are using latest version of PGA code.
While using UART2, i am updating .cpp file too, but still it is not working.
One more thing we discovered is after 2 minutes it gives some random data.
Please suggest something to get it work. We are struggling since many days.
Kindly requesting you to reply asap, as we want this to be work soon. We are already into production, but got stuck because of this UART issue.
Please revert back us.