Skip to content

Commit

Permalink
BugID:19084924:synchonize changes in network/umesh folder
Browse files Browse the repository at this point in the history
  • Loading branch information
Cheng-SG committed Mar 11, 2019
1 parent 913e47b commit 6952225
Show file tree
Hide file tree
Showing 13 changed files with 16 additions and 10 deletions.
6 changes: 6 additions & 0 deletions network/umesh/Config.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
config AOS_COMP_UMESH
bool "uMesh"
default n
select AOS_COMP_YLOOP
help
AliOS Things uMesh network protocol
4 changes: 4 additions & 0 deletions network/umesh/umesh.mk → network/umesh/aos.mk
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
NAME := umesh

$(NAME)_MBINS_TYPE := kernel
$(NAME)_VERSION := 1.0.0
$(NAME)_SUMMARY := uMesh provides the ability to form local area mesh network.
GLOBAL_INCLUDES += include
GLOBAL_DEFINES += CONFIG_AOS_MESH

Expand All @@ -10,6 +12,8 @@ else ifeq ($(COMPILER),iar)
$(NAME)_PREBUILT_LIBRARY := lib/$(HOST_ARCH)/iar/umesh.a
else ifeq ($(ENABLE_VFP),1)
$(NAME)_PREBUILT_LIBRARY := lib/$(HOST_ARCH)/VFP/gcc/umesh.a
else ifeq ($(ipv6),1)
$(NAME)_PREBUILT_LIBRARY := lib/$(HOST_ARCH)/IPv6/gcc/umesh.a
else
$(NAME)_PREBUILT_LIBRARY := lib/$(HOST_ARCH)/gcc/umesh.a
endif
2 changes: 2 additions & 0 deletions network/umesh/include/umesh.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,14 @@ bool umesh_is_initialized(void);
ur_error_t umesh_stop(void);
ur_error_t umesh_register_callback(ur_adapter_callback_t *callback);

#ifdef CONFIG_AOS_MESH_BCAST
/* provide broadcast transmit capability within the scope of overall
* mesh network in the case that leader has been offline.
*/
typedef void (* umesh_bcast_recv_t)(uint8_t *buf, uint32_t len);
ur_error_t umesh_register_bcast_callback(umesh_bcast_recv_t callback);
ur_error_t umesh_bcast_send(uint8_t *buf, uint32_t len);
#endif

/* per device API */
uint8_t umesh_get_device_state(void);
Expand Down
6 changes: 4 additions & 2 deletions network/umesh/include/umesh_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,14 @@
#define ATTACH_REQUEST_RETRY_TIMES 2
#define ATTACH_REQUEST_INTERVAL 1000

#ifdef CONFIG_AOS_MESH_BCAST
#define KEEP_ALIVE_COUNT 3 /* maximum retransmission count of keep alive msg */
#define KEEP_ALIVE_SHORT_TIMEOUT 3000 /* keep alive short interval in case that leader exists */
#define KEEP_ALIVE_LONG_TIMEOUT 10000 /* keep alive long interval during leader recover */

#define LEADER_RECOVER_COUNT 3 /* double check if leader has recovered really*/
#define LEADER_RECOVER_TIMEOUT 3000 /* leader recover timer timeout */
#define LEADER_RECOVER_COUNT 5 /* double check if leader has recovered really*/
#define LEADER_RECOVER_TIMEOUT 2000 /* leader recover timer timeout */
#endif

#ifdef CONFIG_AOS_MESH_LOWPOWER
#define SCHEDULE_SLOTS_SIZE 3
Expand Down
Binary file added network/umesh/lib/ANDES_N10/gcc/umesh.a
Binary file not shown.
Binary file modified network/umesh/lib/ARM968E-S/gcc/umesh.a
Binary file not shown.
Binary file added network/umesh/lib/Cortex-M4/IPv6/gcc/umesh.a
Binary file not shown.
Binary file modified network/umesh/lib/Cortex-M4/VFP/gcc/umesh.a
Binary file not shown.
Binary file modified network/umesh/lib/Cortex-M4/gcc/umesh.a
Binary file not shown.
Binary file modified network/umesh/lib/linux/gcc/umesh.a
Binary file not shown.
Binary file added network/umesh/lib/rockchiplinux/gcc/umesh.a
Binary file not shown.
Binary file modified network/umesh/lib/xtensa/gcc/umesh.a
Binary file not shown.
8 changes: 0 additions & 8 deletions network/umesh/ucube.py

This file was deleted.

0 comments on commit 6952225

Please sign in to comment.