Other Parts Discussed in Thread: PGA460, ENERGIA
Hi,
I am using a different controller as master for PGA460.(UART is initialized with 115200 baudrate, 2 stop bit, 8 data bit, UART_DIAG = 1)
From PGA460EnergiaLibrary_v1.0.2 i got .cpp and .h driver files, i converted .cpp driver to .c driver. I am able to write threshold, read threshold, write to eeprom, read from eeprom, write shadow register, read from shadow register but when i am using system diagnostics PGA460 will reply with 40 00 00 00 after this reply when ever i am trying to do any operation(read shadow reg ) its replying with 00 00 00 00. In case of pull echo data dump PGA460 will reply with 4C 00 00, after that no reading or writing commands are processed.
following are the fuctions called
initBoostXLPGA460(0,115200,0);
initThresholds(3); //3 - customized threshold value
readThresholds();
defaultPGA460(2); //2 - customized default value
burnEEPROM();
initTVG(3, 3); //3 - customized TVG value
read_shadow_register();
runEchoDataDump(0); //ultrasonicCmd(1, 1);
//ultrasonicCmd(0, 1);
//runDiagnostics(1,0);
pullEchoDataDump(0);
read_shadow_register();
for ultrasonicCmd(0, 1); UART data transmitted are ; 55 00 01 FE
for ultrasonicCmd(1, 1); UART data transmitted are ; 55 01 01 FD
for runDiagnostics(1, 0); UART data transmitted are ; 55 08 F7 reply is 40 00 00 00 after this command, no other commands are working correctly(read and write commands).
In GUI interface mode i am able to get valid reply from PGA460 for all the commands.
Can you help me with this situation
Thanks and Regards,