ServalPal Package Error Codes
Antwort
30.04.19 00:19

Hi,

I am using HTTP client in XDK to connect to a platform through REST API. It worked fine for a period and disconnected with the error codes below.

Looking in XdkCommonInfo.h and BCDS_ServalPal, I could find that the package is ServalPal and the module is BCDS_SERVALPAL_MODULE_ID_SERVALPALWIFISOCKET(33) and SERVALPALWIFITCPADAPTER (30). 

However, the error code 12 and 3 are unknown.

What could be the root cause of the failed request?

 INFO | XDK DEVICE 1: [DEBUG, C:/Users/parkchuanchi/XDK_Workspace2/XDKREST_Gyro_Temp_Acoustic_new/src-gen/base/ConnectivityHttpRestClientRestxdk.c:225] Send HTTP request OK
 INFO | XDK DEVICE 1: {"transId" : 97, "gyro_x" : 0, "gyro_y" : 0, "gyro_z" : 0, "gyro_y" : 0, "temperature" : 29070, "acoustic" : 0.0104224, "battery" : 100}
 INFO | XDK DEVICE 1: [DEBUG, C:/Users/parkchuanchi/XDK_Workspace2/XDKREST_Gyro_Temp_Acoustic_new/src-gen/base/ConnectivityHttpRestClientRestxdk.c:225] Send HTTP request OK
 INFO | XDK DEVICE 1: {"transId" : 98, "gyro_x" : 0, "gyro_y" : 0, "gyro_z" : 0, "gyro_y" : 0, "temperature" : 29100, "acoustic" : 0.00568803, "battery" : 100}
 INFO | XDK DEVICE 1: Error in ServalPAL package.
 INFO | XDK DEVICE 1: 	Package ID: 30
 INFO | XDK DEVICE 1: 	Module ID: 33
 INFO | XDK DEVICE 1: 	Severity code: 2
 INFO | XDK DEVICE 1: 	Error code: 12
 INFO | XDK DEVICE 1: Error in ServalPAL package.
 INFO | XDK DEVICE 1: 	Package ID: 30
 INFO | XDK DEVICE 1: 	Module ID: 28
 INFO | XDK DEVICE 1: 	Severity code: 2
 INFO | XDK DEVICE 1: 	Error code: 3
 INFO | XDK DEVICE 1: {"transId" : 99, "gyro_x" : 0, "gyro_y" : 0, "gyro_z" : 0, "gyro_y" : 0, "temperature" : 29130, "acoustic" : 0.00909039, "battery" : 100}
 INFO | XDK DEVICE 1: [DEBUG, C:/Users/parkchuanchi/XDK_Workspace2/XDKREST_Gyro_Temp_Acoustic_new/src-gen/base/ConnectivityHttpRestClientRestxdk.c:225] Send HTTP request FAILED

 

0 (0 Stimmen)
RE: ServalPal Package Error Codes
Antwort
02.05.19 08:00 als Antwort auf Park Chuan Chiu.

Hello Park,

I am not an expert in using the HTTP client of the XDK. But maybe I am able to help you with your error codes.

Error code 3: RETCODE_INVALID_PARAM

Error code 12: RETCODE_TIMEOUT

So it seems you might have an invalid parameter in one function you call in your programm.

I hope this was helpfull. If you have any further questions dont hesitate to ask.

Best regards,

Christian

0 (0 Stimmen)