sensord: resize message size 20/160520/2
authorkibak.yoon <kibak.yoon@samsung.com>
Thu, 16 Nov 2017 12:06:48 +0000 (21:06 +0900)
committerkibak.yoon <kibak.yoon@samsung.com>
Mon, 20 Nov 2017 02:34:03 +0000 (11:34 +0900)
- if there are so many sensors in the device, memory size 4096 is too
  small to contain all of that sensor information. for example, Gear S3
  has 43 sensors including virtual sensors. it needs 7000 byte for
  information of all sensors.
- so message size should be resized from 4096(4kB) to 10240(10kB).

Change-Id: Ied553e260216258295d2337a6f0c468e4a2490cc
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
src/shared/command_types.h
src/shared/message.h

index a994f29..34cb5fc 100644 (file)
@@ -24,7 +24,7 @@
 #include "sensor_info.h"
 
 #define SENSOR_CHANNEL_PATH            "/run/.sensord.socket"
-#define MAX_BUF_SIZE 4096
+#define MAX_BUF_SIZE 10240
 
 /* TODO: OOP - create serializer interface */
 enum cmd_type_e {
index 111cd9b..3b8fb67 100644 (file)
@@ -23,7 +23,7 @@
 #include <stdlib.h> /* size_t */
 #include <atomic>
 
-#define MAX_MSG_CAPACITY 4096
+#define MAX_MSG_CAPACITY 10240
 #define MAX_HEADER_RESERVED 3
 
 namespace ipc {