Mikhail Cherkashin [Tue, 8 Aug 2017 16:22:34 +0000 (19:22 +0300)]
Fixing build issue of fs_close.c when NFILE_DESCRIPTORS == 0
Most common problem with build fixed: in file fs_close.c an undefined
variable appears when NFILE_DESCRIPTORS=0 and NSOCKET_DESCRIPTORS != 0.
Change-Id: Ia7f2417a37ad3052a04c119b330b41a401de40a1
Signed-off-by: Mikhail Cherkashin <m.cherkashin@partner.samsung.com>
Jin-Seong Kim [Tue, 8 Aug 2017 08:29:58 +0000 (17:29 +0900)]
netutils/libcoap : bug fixes for CoAP over TCP
This commit is patch for bug fixes for CoAP over TCP
1. patch for memory leakage issue
- some pdus are not freed when coap_send returns COAP_INVALID_TID
2. add waiting routine on libcoap-server
- waiting until g_operating_status is SERVER_STOPPED state
- duplicated libcoap-server process can cause abort during long-run test
3. add debug logs for further tracing
Change-Id: Ib1173a6f24691eebae5860727227d85c09972ef3
Signed-off-by: Jin-Seong Kim <jseong82.kim@samsung.com>
EunBong Song [Mon, 7 Aug 2017 22:18:04 +0000 (15:18 -0700)]
iperf: Fix data abort in iperf client.
Following test cause data abort of iperf client.
iperf -s
iperf -c 127.0.0.1
iperf -c 127.0.0.1
Data abort can happen when iperf_run_client returns negative value.
In this case, iperf calls iperf_free_test -> iperf_client_end ->
iperf_free_test. This cause data abort because test is already freed
in iperf_free_test however iperf_client_end tries to use test pointer.
And also iperf_free_test tries to free again test pointer.
This patch re-organize the process this procedure.
Change-Id: I0ad6d986cd2457648eb2a99a078b8fa3af9e3ed7
Signed-off-by: EunBong Song <eunb.song@samsung.com>
EunBong Song [Mon, 7 Aug 2017 22:14:27 +0000 (15:14 -0700)]
iperf: test->ctrl_sck exists per test not a stream.
iperf_client_end tries to close test->ctrl_sck per stream.
This is not correct because test->ctrl_sck exists per test.
Change-Id: I2a29de218381fe84dcfdc60a82be0d769341de2b
Signed-off-by: EunBong Song <eunb.song@samsung.com>
Mikhail Cherkashin [Fri, 14 Jul 2017 10:24:33 +0000 (13:24 +0300)]
artik053: Introduce hello config
hello config includes only features which are needed for just running
hello app. This config shows minimal footprint of artik053 board.
Change-Id: Iba063d06557f3ad4095734397769a30724a574bf
Signed-off-by: Mikhail Cherkashin <m.cherkashin@partner.samsung.com>
Signed-off-by: EunBong Song <eunb.song@samsung.com>
Jin-Seong Kim [Mon, 7 Aug 2017 01:03:16 +0000 (10:03 +0900)]
netutils/libcoap : patch for parsing error on CoAP over TCP
This commit is patch for parsing error on CoAP over TCP
When parse transport type of TCP header,
coap_get_tcp_header_type_from_initbyte should be used
The size used on coap_get_tcp_header_type_from_size means that
option and payload length except for header and token
(size = pdu->length - size of header - length of token)
problem 1. Token value is not parsed properly on CoAP over TCP case
- coap_convert_to_tcp_pdu has bugs to find start potiner of token
problem 2. Code value is not parsed proplery on CoAP over TCP case
- node->pdu is created accordingly its transport type
- when coap_get_code called, wrong tranport type is used
Change-Id: Iddec317f797fe5934a1025acc60a3ffe9608c747
Signed-off-by: Jin-Seong Kim <jseong82.kim@samsung.com>
bossjisu [Fri, 4 Aug 2017 06:23:38 +0000 (23:23 -0700)]
app/example: nettest app for linux
nettest sample application for linux.
Change-Id: Idf328c93dbea9adf8de68c647cf7e8388863df12
Signed-off-by: bossjisu <jisuu.kim@samsung.com>
EunBong Song [Mon, 7 Aug 2017 02:05:23 +0000 (19:05 -0700)]
iperf: prevent client infinite loop
Sometimes iperf client's write_set fds are never cleared and this can cause
infinite loop. This situation can happen when write_set is not cleared but
test's state is not running because clear write_set is only done in running
state. This patch adds clear write_set fds if test state is TEST_END and th
ere is not cleared write_fds and this can prevent infinite loop.
Change-Id: I3329fc1fa2454793ab2dfcd16eab177294fe3a31
Signed-off-by: EunBong Song <eunb.song@samsung.com>
Jin-Seong Kim [Fri, 4 Aug 2017 00:21:24 +0000 (09:21 +0900)]
netutils/libcoap : patch for parsing of COAP_UDP options
This commit is patch for parsing of COAP_UDP options
- coap_option_interator_init2 doesn't have COAP_UDP case
it causes un-expected memory access
- coap_add_option2 doesn't have COAP_UDP case,
it causes failed to adding option field on PDU
Change-Id: I6982d3e2c71d01a8cea4a6b7c83a199f0a1ac506
Signed-off-by: Jin-Seong Kim <jseong82.kim@samsung.com>
Jin-Seong Kim [Wed, 2 Aug 2017 01:41:01 +0000 (10:41 +0900)]
fixup! netutils/webserver : Fix problems from static analysis tool.
Add return value check for pthread_attr_init.
Change-Id: Ie15633d16881934eeb2a1fab3775fb1f378d8330
Signed-off-by: Jin-Seong Kim <jseong82.kim@samsung.com>
Signed-off-by: EunBong Song <eunb.song@samsung.com>
Jin-Seong Kim [Wed, 2 Aug 2017 00:26:12 +0000 (09:26 +0900)]
netutils/webserver : Fix problems from static analysis tool
This commit is patch for fixing problems from static analysis tool
- to resolve issues of unchecked function returns
Change-Id: I456698096d4887d8f64c896db4f614cea692ca40
Signed-off-by: Jin-Seong Kim <jseong82.kim@samsung.com>
Signed-off-by: EunBong Song <eunb.song@samsung.com>
Jin-Seong Kim [Tue, 1 Aug 2017 08:40:48 +0000 (17:40 +0900)]
netutils/libcoap : Fix problem from static analysis tool
This commit is patch for fixing problems fro static analysis tool
- Add check return value of pthread_attr_init
Change-Id: I7ae7369c0c0cfbabcd9c0298836943d5260e7e4e
Signed-off-by: Jin-Seong Kim <jseong82.kim@samsung.com>
Signed-off-by: EunBong Song <eunb.song@samsung.com>
Jin-Seong Kim [Tue, 1 Aug 2017 08:38:55 +0000 (17:38 +0900)]
netutils/libcoap : patch to add timeout on accept socket
This commit is patch to add timeout on accept socket
- to prevent holding socket on libcoap-server, added timeout on socket
Change-Id: Ibd40f9ba9c69f272f10af91bed900a0b8faa40b8
Signed-off-by: Jin-Seong Kim <jseong82.kim@samsung.com>
Junyeon LEE [Tue, 1 Aug 2017 04:57:11 +0000 (13:57 +0900)]
examples/tls_server: fix unclosed socket problem.
If tls server would be executed double at the same time,
bind or listen socket can't be released properly.
Change the client_fd and listned_fd values from global
to local variable.
Change-Id: I0c3d97b5ade7692e92fa4967f04763d2295ab14f
Signed-off-by: Junyeon LEE <junyeon2.lee@samsung.com>
Wonsang Ryou [Wed, 2 Aug 2017 08:18:52 +0000 (17:18 +0900)]
s5j: add exception handling codes in spi and i2c drivers
This patch adds the codes in order to check if the port number is valid
in spi and i2c drivers. If the port is invalid, the exception handling
code returns NULL.
Change-Id: I9c5360ce58cd0c3778e048377ea92472ac31e21b
Signed-off-by: Wonsang Ryou <wonsang.yoo@samsung.com>
Wonsang Ryou [Tue, 1 Aug 2017 05:06:43 +0000 (14:06 +0900)]
netutils/mqtt: add exception handling code
This patch adds exception handling code in mosquitto library.
Change-Id: I6e1c0fe678e266f9de7d117251bbf69a521f676e
Signed-off-by: Wonsang Ryou <wonsang.yoo@samsung.com>
Wonsang Ryou [Tue, 1 Aug 2017 05:01:09 +0000 (14:01 +0900)]
netutils/mdns: add exception handling codes
This patch adds exception handling codes in mdns.c and mdnsd.c.
Change-Id: I27ae07c1b34638faee7bc3a1cd8b33bde4f761ea
Signed-off-by: Wonsang Ryou <wonsang.yoo@samsung.com>
Jin-Seong Kim [Mon, 31 Jul 2017 09:32:40 +0000 (18:32 +0900)]
fixup! netutils/libcoap : TCP patch for CoAP observe mode
Change-Id: I56051750d8a69d71bb9a0425999986be2605fc5c
Signed-off-by: Jin-Seong Kim <jseong82.kim@samsung.com>
EunBong Song [Mon, 31 Jul 2017 08:25:54 +0000 (01:25 -0700)]
wifi driver: Fix problem of multiple declaration of cm_ctx
This patch fixes multiple declaration of fn_destroy. This can cause linking
error when kasan is enabled.
Change-Id: I3674f0e6726ff82b65ce20be46884e3f0463beea
Signed-off-by: EunBong Song <eunb.song@samsung.com>
EunBong Song [Mon, 31 Jul 2017 08:24:22 +0000 (01:24 -0700)]
wap supplicant: Fix problem of multiple declaration of fn_destroy
This patch fixes multiple declaration of fn_destroy. This can cause linking
error when kasan is enabled.
Change-Id: I07221ca05b3952b42ddae247b307cd2909a909d2
Signed-off-by: EunBong Song <eunb.song@samsung.com>
EunBong Song [Mon, 31 Jul 2017 08:22:50 +0000 (01:22 -0700)]
wifi driver: move STRUCT_PACKED to compiler.h
There are duplication define for STRUCT_PACKED in wifi driver.
This patch moves STRUCT_PACKED define to compiler.h.
Change-Id: Ie9af489177364347e3a9c7e260f64df7104ffe95
Signed-off-by: EunBong Song <eunb.song@samsung.com>
Jin-Seong Kim [Mon, 31 Jul 2017 07:52:07 +0000 (16:52 +0900)]
netutils/libcoap : add listen_sockfd on coap_context_t structure
This commit is patch to add listen_sockfd on coap_context_t structure
- To close or reuse listen socket, add listen_sockfd on coap_context_t
Change-Id: Idd4297a181715c85549e53348c96200e309f2848
Signed-off-by: Jin-Seong Kim <jseong82.kim@samsung.com>
Jin-Seong Kim [Mon, 31 Jul 2017 07:30:32 +0000 (16:30 +0900)]
netutils/libcoap : TCP patch for CoAP observe mode
This commit is TCP patch for CoAP observe mode
Change-Id: Ie6617414b3674bee73997d071ccba034ea1d4bf2
Signed-off-by: Jin-Seong Kim <jseong82.kim@samsung.com>
kim jin hong [Fri, 28 Jul 2017 09:45:39 +0000 (18:45 +0900)]
filesystem : add test application
add : procfs_test.c : procfs test application
ramfs_test.c : ramfs test application
romfs_test.c : romfs test application
write_remove_test.c : smartfs test application
Change-Id: Ic729e154335245368cb5030836cb861a3e6a03bd
Signed-off-by: kim jin hong <jh0703.kim@samsung.com>
Jin-Seong Kim [Fri, 28 Jul 2017 07:13:40 +0000 (16:13 +0900)]
netutils/libcoap : major patches to handle TCP packets on libcoap
This commit is major patches to handle TCP packets on libcoap
Change-Id: I4c760487fd83f3d49611c2dbe3b91f860ba02680
Signed-off-by: Jin-Seong Kim <jseong82.kim@samsung.com>
Jin-Seong Kim [Thu, 27 Jul 2017 10:27:55 +0000 (19:27 +0900)]
netutils/libcoap : Introduce new APIs for CoAP over TCP
This commit is patch to introduce new APIs for CoAP over TCP
- newly added API list
1. coap_convert_to_tcp_pdu : converts UDP pdu to TCP pdu
2. coap_debug_pdu_print : print CoAP pdu in details
Change-Id: I1a2e6c9167309b1676071818ef1bfaeb2b34552c
Signed-off-by: Jin-Seong Kim <jseong82.kim@samsung.com>
Jin-Seong Kim [Wed, 5 Jul 2017 07:51:20 +0000 (16:51 +0900)]
netutils/libcoap : introduce patch to support TCP
This commit is to add patch to support TCP (iotivity 1.3.0-rel)
- https://github.com/iotivity/iotivity
Change-Id: I2b10530c0e152663b3360f6e3247154f7769102e
Signed-off-by: Jin-Seong Kim <jseong82.kim@samsung.com>
Mikhail Cherkashin [Fri, 28 Jul 2017 11:14:25 +0000 (14:14 +0300)]
Do not include shell when not enabled
Excluding shell when ENABLE_SHELL config is undefined.
Change-Id: I94dfbc5155d5ccbdd012294ec0848c7f6e4836b3
Signed-off-by: Mikhail Cherkashin <m.cherkashin@partner.samsung.com>
Wonsang Ryou [Thu, 27 Jul 2017 09:10:15 +0000 (18:10 +0900)]
examples/mdns_test: netutils/mdns: add 'mdns register' command
This patch adds 'mdns register' command in order to test the API
that is for registering mdns service. And, some exception handling
codes are also added to mdnsd_register_service() function.
Change-Id: Ib9e3ca938c060a1be5e08381b2e7107f06d06aeb
Signed-off-by: Wonsang Ryou <wonsang.yoo@samsung.com>
Mikhail Cherkashin [Mon, 24 Jul 2017 15:00:23 +0000 (18:00 +0300)]
s5j/serial: Do not register uart devices without file descriptors
Device nodes can only be accessed through file descriptors,
so when they are disabled (through CONFIG_NFILE_DESCRIPTORS=0)
we do not register uart device nodes.
Change-Id: I44ff2c8cfe0d6e4f4961bb1f6e570abb1dc31d3e
Signed-off-by: Mikhail Cherkashin <m.cherkashin@partner.samsung.com>
EunBong Song [Mon, 24 Jul 2017 10:57:29 +0000 (03:57 -0700)]
apps iperf: Fix abort when iperf_connect fails
if iperf_connect fails, it crashes in test->reporter_callback functions.
This patch fixes this problem.
And current iperf_client_end() try to send state after close ctrl socket.
This problem is also fixed by this patch.
Change-Id: I965e3e2b40f1e7e19d913342888c6fc43fa12675
Signed-off-by: EunBong Song <eunb.song@samsung.com>
Junyeon LEE [Tue, 18 Jul 2017 04:59:11 +0000 (13:59 +0900)]
include/tls: summarize all error symbols in mbedTLS
This commit integrates all error symbols in mbedTLS for
easy searching error number.
Change-Id: Ia7cff5b8380e6bee939e91143e27be2872c01675
Signed-off-by: Junyeon LEE <junyeon2.lee@samsung.com>
Wonsang Ryou [Mon, 24 Jul 2017 06:14:34 +0000 (15:14 +0900)]
drivers/sensors: s5j/ppd42ns: modify ppd42ns dust sensor driver
This patch modifies ppd42ns driver according to Tizen RT device driver
model. The previous ppd42ns driver has implemented according to common
sensor API definition (os/include/tinyara/sensors/sensor.h). The common
sensor API will be removed.
The details are as follows.
1. remove common sensor API definition
: os/include/tinyara/sensors/sensor.h
2. modify ppd42ns driver according to Tizen RT device driver model
- implement open, close and read operations
- implement board dependent functions as callback
- implement the function for registering character driver
: os/drivers/sensors/ppd42ns.c
os/include/tinyara/sensors/ppd42ns.h
3. add Samsung S5JT200 code for implementing board dependent callback
: os/arch/arm/src/s5j/s5j_ppd42ns.c
os/arch/arm/src/s5j/s5j_ppd42ns.h
4. add sensor driver registering code on board initialization
: os/arch/arm/src/artik053/src/artik053_boot.c,
os/arch/arm/src/sidk_s5jt200/src/s5jt200_boot.c
5. modify ppd42ns example application using file operation
: apps/examples/sensor_test/ppd42ns_test.c
Change-Id: I14ae5e10a3624cf8bb7125137323fcc3bb6c50ca
Signed-off-by: Wonsang Ryou <wonsang.yoo@samsung.com>
Wonsang Ryou [Tue, 18 Jul 2017 10:27:08 +0000 (19:27 +0900)]
examples/dnsclient_test: make dns server port configurable in .config
This patch enables dnsclient_test app's server port to be configurable
in .config. You can set dns server's port number using the following
config variable.
- CONFIG_EXAMPLES_DNSCLIENT_TEST_SERVER_PORT
CONFIG_EXAMPLES_DNSCLIENT_TEST_SERVER_PORT can be configurable only
when CONFIG_NETDB_DNSSERVER_IPv4 is enabled.
Change-Id: I9fae97c85ab3fe91a7e3be0cb1f9534255072370
Signed-off-by: Wonsang Ryou <wonsang.yoo@samsung.com>
Wonsang Ryou [Tue, 18 Jul 2017 09:40:16 +0000 (18:40 +0900)]
netutils/ntpclient: make debug message option configurable in .config
This patch enables ntpclient's debug message option to be configurable
in .config. You can set debug message option using the following config
variable.
- CONFIG_NETUTILS_NTPCLIENT_DEBUG
Change-Id: Idff252265478b6006fe1995ac33e094c097b03e1
Signed-off-by: Wonsang Ryou <wonsang.yoo@samsung.com>
Wonsang Ryou [Tue, 18 Jul 2017 09:50:26 +0000 (18:50 +0900)]
examples/ntpclient_test: make ntp server port configurable in .config
This patch enables ntp server's port number to be configurable in
.config. You can set ntp server's port number using the following
config variable.
- CONFIG_EXAMPLES_NTPCLIENT_TEST_SERVER_PORT
Change-Id: I39e8f46cbfc677449771016ac4048abcc9165e78
Signed-off-by: Wonsang Ryou <wonsang.yoo@samsung.com>
Jin-Seong Kim [Tue, 18 Jul 2017 05:32:00 +0000 (14:32 +0900)]
netutils/libcoap : patch to prevent memory leakage caused by observers
This commit is patch to prevent memory leakage caused by observers
- there is no routine to free observers for libcoap-server
- remained observers in a resource can cause memory leakage
Change-Id: Ib2aefc9cd5f9572f5170fc96f0f832e02692dfc9
Signed-off-by: Jin-Seong Kim <jseong82.kim@samsung.com>
bossjisu [Tue, 18 Jul 2017 13:05:35 +0000 (06:05 -0700)]
netutils/tls: fix error print
make tls_handshake error print intuitive.
this makes error messages are matched with tls error codes directly.
Change-Id: Iafdc99ffa588318008d63078f0517af7bf241145
Signed-off-by: bossjisu <jisuu.kim@samsung.com>
bossjisu [Mon, 17 Jul 2017 12:39:39 +0000 (05:39 -0700)]
apps/webserver: misc change on callbacks
update websocket callbacks in webserver with the recent one.
Change-Id: I106dd779e45232f2a75f562adb23bec7f51b054c
Signed-off-by: bossjisu <jisuu.kim@samsung.com>
bossjisu [Mon, 17 Jul 2017 10:40:11 +0000 (03:40 -0700)]
netutil/webserver,websocket: wrong initializing
websocket_find_table() set the state to WEBSOCKET_RUN_SERVER, but
webserver cleans the structure after websocket_find_table().
Change-Id: I6c59d18159860afb066ce7a99e99bb77b9e0bb57
Signed-off-by: bossjisu <jisuu.kim@samsung.com>
EunBong Song [Fri, 14 Jul 2017 13:04:48 +0000 (06:04 -0700)]
sidk_s5jt200/hello defconfig: enable CONFIG_NOPRINTF_FIELDWIDTH and
CONFIG_NOPRINTF_LONGLONG_TO_ASCII
This feature reduce hello config size up to 14KB.
Change-Id: Iacceb6d265d7aa2b70c4551b5ce7d6d230fb6e24
Signed-off-by: EunBong Song <eunb.song@samsung.com>
EunBong Song [Fri, 14 Jul 2017 13:20:23 +0000 (06:20 -0700)]
libc: netdb: Fix bugs in lib_gethostbynamer.c
This fix sets h_name in struct hostent returned by gethostbyname()
This patch comes from Nuttx community.
Commit id:
6ccc01ad
Change-Id: I8a92e862081e62ec2fa09c378eb86bb7c5736182
Signed-off-by: EunBong Song <eunb.song@samsung.com>
EunBong Song [Fri, 14 Jul 2017 13:03:04 +0000 (06:03 -0700)]
libc: introduce NOPRINTF_LONGLONG_TO_ASCII
This patch introduces NOPRINTF_LONGLONG_TO_ASCII config.
If you don't need to support long long type in printf, enable
this feature.
Change-Id: If01bf473292eec5525645cfff2c79d1c48297e1f
Signed-off-by: EunBong Song <eunb.song@samsung.com>
Jin-Seong Kim [Thu, 13 Jul 2017 02:20:03 +0000 (11:20 +0900)]
netutils/libcoap : introduce CoAP over DTLS support
This commit is to introduce CoAP over DTLS support
Known issues on libcoap-server example :
- CoAP over DTLS supports NON message only
- CoAP over DTLS supports only one transaction so, server should restart
after a data transaction
Change-Id: Iec0fd57e3d2366a3af3bf88553b1ff6a13bb4df8
Signed-off-by: Jin-Seong Kim <jseong82.kim@samsung.com>
EunBong Song [Fri, 14 Jul 2017 09:02:41 +0000 (02:02 -0700)]
sidk_s5jt200/hello defconfig: remove unnecessary config for hello app.
This patch removes unnecessary configs for hello app.
After applying this patch, binary size reduced to 17KB from 31KB.
Change-Id: I9262989cc1025e2324f56eae553fb1a51a7510fb
Signed-off-by: EunBong Song <eunb.song@samsung.com>
EunBong Song [Fri, 14 Jul 2017 09:01:11 +0000 (02:01 -0700)]
Build: change CONFIG_NSOCKET_DESCRIPTORS to CONFIG_NET in Makefile
ifeq ($(CONFIG_NSOCKET_DESCRIPTORS), xx) does not work properly because
CONFIG_NSOCKET_DESCRIPTORS is defined automatically to zero when CONFIG_NET
is disable. So this should be changed to compare with CONFIG_NET.
Change-Id: I4d8acec4a71f01d6065b001b5a154c018891d671
Signed-off-by: EunBong Song <eunb.song@samsung.com>
EunBong Song [Fri, 14 Jul 2017 08:40:24 +0000 (01:40 -0700)]
fs: driver: Make configurable BCH driver
BCH driver is always compiled. This patch makes BCH driver is
configurable.
Change-Id: I918e90d154f7fe2d361b2cd3d74915291b8ea449
Signed-off-by: EunBong Song <eunb.song@samsung.com>
Junyeon LEE [Thu, 13 Jul 2017 14:00:36 +0000 (23:00 +0900)]
netutils/webserver: Add config parameter for setting client handler.
This commit addes Webserver's CLIENT_HANDLER number in Kconfig.
Because of this commit, it is more easy to set client handler number.
Change-Id: I785805865b3fb1e1e9673c7376a73c4f58ddee20
Signed-off-by: Junyeon LEE <junyeon2.lee@samsung.com>
Junyeon LEE [Tue, 11 Jul 2017 13:17:07 +0000 (22:17 +0900)]
kernel/sched: remove maximum boundary check for pid
This commit fixes maximum boundary checking in sched_gettcb().
If thread or task was created over 32767, g_lastpid value returns
to lower value and it makes wrong comparision in sched_gettcb().
For example)
System thread (pid = 32767) was already created and user creates
one more thread, then user's pid will be allocated lower than system's
thread (1 or above). In this case, not that g_lastpid is same with
user's pid, system's pid can not fit below condition.
(pid > 0 && pid <= g_lastpid)
Change-Id: I9a6d164dd5d7b49e7920e1f597015bd8211b1297
Signed-off-by: Junyeon LEE <junyeon2.lee@samsung.com>
Jin-Seong Kim [Mon, 10 Jul 2017 08:29:55 +0000 (17:29 +0900)]
examples/libcoap : increase pthread stack size to support security
This commit is to increase pthread stack size to support security
- to support security through mbedTLS libarary,
pthread stack size should be (16 * 1024) at least
Change-Id: Ic01b803dcb0b4bf3d6e4a0c2e8f3b6e5546ab434
Signed-off-by: Jin-Seong Kim <jseong82.kim@samsung.com>
Jin-Seong Kim [Mon, 10 Jul 2017 02:37:59 +0000 (11:37 +0900)]
netutils/libcoap : fixes, including path of libcoap headers
This commit is to fix including header path
- header including path is fixed to absoulte path
to give same experiences to developers as other netutil libraries
Change-Id: Idf5aa0c5e4684e9d206f8018e4532949eb410ed1
Signed-off-by: Jin-Seong Kim <jseong82.kim@samsung.com>
bossjisu [Fri, 7 Jul 2017 10:51:53 +0000 (03:51 -0700)]
netutils/websocket: add websocket state
add state to let application know websocket_handler is stopped for error.
Change-Id: I6d21fe8f68e6947fbf2000253ad767ccb04a330c
Signed-off-by: bossjisu <jisuu.kim@samsung.com>
bossjisu [Thu, 6 Jul 2017 09:21:39 +0000 (02:21 -0700)]
netutils/websocket: separate state
running state is splitted to run_client state and run_server state.
it's because mbed_tls function varies between client and server.
TLS code will be separated with websocket code in next update.
Change-Id: I0a7c2cff335a6b92e18cb0d1b52c1f28d4811f16
Signed-off-by: bossjisu <jisuu.kim@samsung.com>
bossjisu [Wed, 5 Jul 2017 17:44:48 +0000 (10:44 -0700)]
netutils/websocket: multi client is not supported
Change-Id: I9eef55cb8ad93581f87c3ccaa6444340048ae526
Signed-off-by: bossjisu <jisuu.kim@samsung.com>
bossjisu [Wed, 5 Jul 2017 13:58:08 +0000 (06:58 -0700)]
netutils/websocket: Use defined free and close
Use defines to close the socket and free the memory.
misc changes to organize codes
Change-Id: I826e3aff984883e614e6666de8e9c602d1ff798d
Signed-off-by: bossjisu <jisuu.kim@samsung.com>
bossjisu [Wed, 5 Jul 2017 13:34:25 +0000 (06:34 -0700)]
netutils/websocket: misc changes in handling loop
websocket state is supposed to be changed at the last.
Otherwise, it can happen memory leaks.
Change-Id: I32d82a77dae1c17406c485a21f9b7d098da8a89e
Signed-off-by: bossjisu <jisuu.kim@samsung.com>
bossjisu [Wed, 5 Jul 2017 13:17:34 +0000 (06:17 -0700)]
netutils/websocket: set TCP_NODELAY
TCP_NODELAY option is recommended for the user application like websocket.
https://developers.slashdot.org/comments.pl?sid=174457&threshold=1&commentsort=0&mode=thread&cid=
14515105
Change-Id: I1fa04271fa3b62a35221551670b0aa6fc024da0d
Signed-off-by: bossjisu <jisuu.kim@samsung.com>
Junyeon LEE [Tue, 4 Jul 2017 11:15:31 +0000 (20:15 +0900)]
examples/websocket: set default TLS debug level.
This commit set default tls debug level to zero. Because of too
much debug log, socket recv function sometimes makes timeout error.
Change-Id: Icf51b8d6eedc36469b019b1b7e756706d8d9e2ec
Signed-off-by: Junyeon LEE <junyeon2.lee@samsung.com>
EunBong Song [Tue, 4 Jul 2017 06:01:34 +0000 (15:01 +0900)]
vfs: fdopen: add missing file stream flags clearing.
Clear file stream structure regardless of config options.
Structure clearing is needed as previous use of stream
list entry might leave fs_flags set.
Thia patch comes from nuttx community commit id:
b8b9309d
Change-Id: I072757f092cedc179982af736d6d9a48ee90c97b
Signed-off-by: EunBong Song <eunb.song@samsung.com>
EunBong Song [Tue, 4 Jul 2017 04:11:26 +0000 (13:11 +0900)]
libc netdb: gethostbyname_r: Fix check for space in buffer.
This patch comes from Nuttx commit id:
ee7217be
Change-Id: Ifc2b1973978b1b16e7fa1795a6009717bd67aa51
Signed-off-by: EunBong Song <eunb.song@samsung.com>
EunBong Song [Tue, 4 Jul 2017 02:19:30 +0000 (11:19 +0900)]
MTD M2PX: Fix read problem when write/erase is pending
If we READ while a write/erase is pending, the command is ignored
and the write/erase continues. If we dont catch this situation we will
return garbage to the user because the flash will not execute the command.
So READ MUST wait for write completion, and before that, the bus must be
locked since it's a precondition to calling waitwritecomplete().
This patch comes from Nuttx commit id:
2851959d
Change-Id: I2934f7d5d96048a6a97a272d84267ae8551d1198
Signed-off-by: EunBong Song <eunb.song@samsung.com>
Vyacheslav Tyrtov [Tue, 6 Jun 2017 08:50:12 +0000 (11:50 +0300)]
memstats_gnueabil.py: minor fix
Drop subSymbol value at level1
Otherwise there is possibility of a bug during parsing of "fill" line.
Change-Id: I6800ced4cdf2143bb7a0dacc88f887b817d5e38a
Signed-off-by: Vyacheslav Tyrtov <v.tyrtov@samsung.com>
Junyeon LEE [Mon, 3 Jul 2017 14:13:26 +0000 (23:13 +0900)]
netutils/webserver: fix chunked-encoding problem.
This commit fixes chunked encoding problem in webserver. Webserver
sometimes misunderstood received data whether chunked or content-length.
This problem is caused by uninitialized request structure and fixed it.
Additinally, chunked routine added in PUT callback.
Change-Id: If63dace52e03feb3b71a4fc18f957c8822ec13d3
Signed-off-by: Junyeon LEE <junyeon2.lee@samsung.com>
Junyeon LEE [Wed, 28 Jun 2017 19:57:55 +0000 (04:57 +0900)]
examples/tls_benchmark: introduce new benchmark app
This commit introduce a new crypto benchmark application.
You can get a each crypto's performance with this app.
MD5 : 24017 Kb/s
SHA-1 : 15548 Kb/s
SHA-256 : 7518 Kb/s
3DES : 1103 Kb/s
DES : 2714 Kb/s
AES-CBC-128 : 4202 Kb/s
AES-CBC-192 : 3991 Kb/s
AES-CBC-256 : 3538 Kb/s
AES-GCM-128 : 1789 Kb/s
..........
Change-Id: I67fd6a9139e404208a02397c7fc49f1fe4e6905b
Signed-off-by: Junyeon LEE <junyeon2.lee@samsung.com>
Seongeun Choi [Fri, 23 Jun 2017 12:06:54 +0000 (21:06 +0900)]
external/wakaama : change type to fix a error.
This commit is to fix a logical error.
Expression 'len < ((1 << 16) + 269)' is always true,
which may be caused by a logical error.
Change-Id: I07408010f17ff85458fd666baaedce7f8571f343
Signed-off-by: Seongeun Choi <seongeun.choi@samsung.com>
Wonsang Ryou [Mon, 19 Jun 2017 06:11:10 +0000 (15:11 +0900)]
drivers/sensors: introduce ppd42ns dust sensor driver
This commit introduces the sensor driver that controls ppd42ns dust
sensor.
Change-Id: Ic3781eeeb5c898a7cd9ab3b52dbf0788d36e168d
Signed-off-by: Wonsang Ryou <wonsang.yoo@samsung.com>
sunghan-chang [Wed, 30 Aug 2017 03:50:48 +0000 (12:50 +0900)]
Merge pull request #439 from junmin-kim/qemu_tc
Add qemu tc build config
sunghan-chang [Wed, 30 Aug 2017 03:39:21 +0000 (12:39 +0900)]
Merge pull request #452 from iamsanjeev/master
Fix Artik Demo example.
sunghan-chang [Wed, 30 Aug 2017 03:34:47 +0000 (12:34 +0900)]
Merge pull request #464 from pmarcinkiew/gcc720_double_t
Fix compilation of arm-linux-gnueabi-gcc-
sunghan-chang [Wed, 30 Aug 2017 03:31:01 +0000 (12:31 +0900)]
Merge pull request #460 from jeongarmy/ttrace
Fix incorrect logics and somethings in t-trace
btheosam [Wed, 30 Aug 2017 02:02:22 +0000 (11:02 +0900)]
Merge pull request #449 from sunghan-chang/s5jt200_romfs
romfs
btheosam [Wed, 30 Aug 2017 02:02:00 +0000 (11:02 +0900)]
Merge pull request #458 from jeongchanKim/kernel_tc
Modify libgen tc to avoid constant string modification
sangwon03 [Tue, 29 Aug 2017 23:23:40 +0000 (08:23 +0900)]
Merge pull request #454 from pillip8282/svace_fix
Svace Bug Fix
Jaroslaw Pelczar [Tue, 29 Aug 2017 08:26:18 +0000 (10:26 +0200)]
Fix compilation of arm-linux-gnueabi-gcc-
When compiling with Linux toolchain, there are build errors like:
math/lib_j1.c: In function ‘pone’:
math/lib_j1.c:363:2: error: unknown type name ‘double_t’; did you mean
‘double’?
double_t z;
^~~~~~~~
This patch solves compilation using modern v7.2.0 toolchain.
Signed-off-by: Jaroslaw Pelczar <j.pelczar@samsung.com>
Sanjeev BA [Mon, 28 Aug 2017 09:38:22 +0000 (18:38 +0900)]
Fix Artik demo example link error by
1. fixing typos in wifi API.
2. Replacing an get_security_config with getSecurityConfig.
3. Making 'dm' a dependency for this example.
Signed-off-by: Sanjeev BA <iamsanjeev@gmail.com>
Ahreum Jeong [Tue, 29 Aug 2017 08:38:20 +0000 (17:38 +0900)]
Change tash command to excute ttrace testcase and fix typo in ttrace testcase
junmin kim [Tue, 22 Aug 2017 05:36:59 +0000 (22:36 -0700)]
Add qemu tc build config
Ahreum Jeong [Tue, 29 Aug 2017 08:17:49 +0000 (17:17 +0900)]
Move logic of checking whether the tag is valid or not to upper level
When tag is invalid, ttrace ioctl returns -1 and it is considered as error in upper level
But It is not failure of ioctl operation
So I changed that ioctl just returns value and a function which calls it should check whether ths tag is valid or not
jc_.kim [Tue, 29 Aug 2017 08:12:07 +0000 (17:12 +0900)]
Modify libgen tc to avoid constant string modification
sunghan-chang [Tue, 29 Aug 2017 07:55:25 +0000 (16:55 +0900)]
Merge pull request #436 from JeonginKim/master
External API -> Internal API for DM_Connectivity
JeonginKim [Fri, 25 Aug 2017 00:42:42 +0000 (09:42 +0900)]
External API -> Internal API for DM_Connectivity
sunghan-chang [Tue, 29 Aug 2017 07:30:03 +0000 (16:30 +0900)]
Merge pull request #455 from jeongchanKim/kernel_svace
Modify tc and mm_heapinfo.c based on svace
davidfather [Tue, 29 Aug 2017 07:03:33 +0000 (16:03 +0900)]
Merge pull request #456 from sunghan-chang/makefile
Deliver the EXTDIR definition for external folder path on Makefile
pillip8282 [Tue, 29 Aug 2017 07:00:57 +0000 (16:00 +0900)]
Merge pull request #457 from HONGCHAEHEE/lwip-sem
Fix a lwip semaphore issue
jc_.kim [Tue, 29 Aug 2017 06:30:26 +0000 (15:30 +0900)]
Modify tc and mm_heapinfo.c based on svace
tc_libc_syslog.c : Use of vulnerable function 'sprintf' at tc_libc_syslog.c:90. This function is unsafe, use snprintf instead.
tc_libc_unistd.c : Use of vulnerable function 'sprintf' at tc_libc_unistd.c:279. This function is unsafe, use snprintf instead.
tc_pthread.c : No unlock for mutex 'g_mutex' at tc_pthread.c:1284 after lock at tc_pthread.c:1278 by calling function 'pthread_mutex_lock'.
tc_sched.c : Dynamic memory referenced by 'status' was allocated at tc_sched.c:306 by calling function 'malloc' and lost at tc_sched.c
mm_heapinfo.c : Return value of a function 'sched_gettcb' is dereferenced at mm_heapinfo.c:277 without checking, but it is usually checked for this function
chaehee.hong [Tue, 29 Aug 2017 06:50:44 +0000 (23:50 -0700)]
Fix a lwip semaphore issue
sunghan [Tue, 29 Aug 2017 06:35:03 +0000 (15:35 +0900)]
Deliver the EXTDIR definition for external folder path on Makefile
The external and apps folder need to use the external folder path.
kang [Tue, 29 Aug 2017 05:25:31 +0000 (14:25 +0900)]
Svace Bug Fix
btheosam [Tue, 29 Aug 2017 01:38:38 +0000 (10:38 +0900)]
Merge pull request #453 from GalkinIvan/audio
Initial complete commit to test audio through i2schar path.
Ivan [Mon, 28 Aug 2017 20:26:24 +0000 (05:26 +0900)]
i2schar: added code to enable I2Schar on Artik
Signed-off-by: Ivan <ivan.galkin@samsung.com>
Ivan [Mon, 28 Aug 2017 20:25:33 +0000 (05:25 +0900)]
TizenRT: Fix code errors
Signed-off-by: Ivan <ivan.galkin@samsung.com>
btheosam [Mon, 28 Aug 2017 06:52:39 +0000 (15:52 +0900)]
Merge pull request #429 from sunghan-chang/0818
change a file permission to 644
btheosam [Mon, 28 Aug 2017 06:52:12 +0000 (15:52 +0900)]
Merge pull request #447 from sunghan-chang/gitignore
add .gitignore to block adding built file for specific configs
sunghan [Mon, 28 Aug 2017 06:36:19 +0000 (15:36 +0900)]
tools/fs: add x option, messages and modify volume name on mkromfsimg.sh
1. Because the .gitignore should not be included at romfs.img, x option
is added.
2. Messages are added to know the start and end of making romfs.
3. The volume name is changed to "TinyAraROMVol" from "NuttXBootVol".
sunghan [Mon, 28 Aug 2017 06:12:01 +0000 (15:12 +0900)]
remove usages of res folder on making romfs
We don't need to copy contents of romfs to res folder.
Let's make a romfs image in contents folder directly.
sunghan [Mon, 28 Aug 2017 06:05:14 +0000 (15:05 +0900)]
add .gitignore at contents
Currently we don't need to add any contents on remote.
Let's ignore everything in contents except .gitignore.
sunghan [Mon, 28 Aug 2017 05:50:54 +0000 (14:50 +0900)]
move mkromfsimg.sh script and contents folder to tools/fs folder
The location of them is not correct. ROMFS is not a part of application and
external so that we move them to under tools folder.
Bongryul Lee [Thu, 17 Aug 2017 05:01:43 +0000 (14:01 +0900)]
audio: fix compile error when enable sensorbd
Fixed a problem where alc5658char.c was not built
Change-Id: Icd908920c028bb359ed596b7c6f46770502ae2a9
Signed-off-by: Bongryul Lee <bongryul.lee@samsung.com>
Ivan [Wed, 16 Aug 2017 06:11:33 +0000 (15:11 +0900)]
examples/i2schar: add i2s character device example
Example for checking i2s rx / tx behavior
Change-Id: If7b367bdeb1d166ea1bced83c2d17bd637e982c9
Signed-off-by: Bongryul Lee <bongryul.lee@samsung.com>
Bongryul Lee [Wed, 16 Aug 2017 06:09:11 +0000 (15:09 +0900)]
audio: fix to use i2s character device
Change-Id: Ie7d5c45aba10e8831506eb6d0c32b58f431fbd92
Signed-off-by: Bongryul Lee <bongryul.lee@samsung.com>