| | |
| | | const int RTK_PLATFORM_PORT = 12125; |
| | | const uint8_t phone[] = {0x20,0x19,0x10,0x15,0x00,0x00,0x00,0x01}; |
| | | |
| | | static void SendBootIndicate(union sigval sig); |
| | | |
| | | int DESEncrypt(const uint8_t *key, int key_length, |
| | | const uint8_t *plaintext, int plaintext_length, |
| | | uint8_t **ciphertext) |
| | |
| | | // 不能直接赋值(g_obj = ojb) |
| | | sg_obj = env->NewGlobalRef(thiz); |
| | | |
| | | MA_NdkStart(); |
| | | AppTimer_Init(); |
| | | ConfigMCU(); |
| | | DriverTestInit(); |
| | | ConfigRTKModule(); |
| | | |
| | | InitPlatform(phone, RTK_PLATFORM_IP, RTK_PLATFORM_PORT); |
| | | AppTimer_add(SendBootIndicate, 500); |
| | | } |
| | | |
| | | static void SendBootIndicate(union sigval sig) { |
| | | AppTimer_delete(SendBootIndicate); |
| | | MA_NdkStart(); |
| | | } |
| | | |
| | | extern "C" |