Commit Graph

458 Commits

Author SHA1 Message Date
daishengdong
b74cf8d598 Merge branch 'master' of https://github.com/Tencent/TencentOS-tiny 2020-05-07 15:09:14 +08:00
daishengdong
7fdfb8f1c5 add qcloud explorer ota sample 2020-05-07 15:09:09 +08:00
supowang
39173317db fix l073 lorawankeil project
fix l073 lorawankeil  project
2020-05-07 12:31:43 +08:00
daishengdong
3e631cd96a update qcloud sdk
1. iot-hub sdk update to 3.2.0
2. iot-explorer update to 3.1.1
2020-05-07 11:11:04 +08:00
Wayne Ren
86375271fc arch: arc: update the ARC port
* bug fix
* remove unused codes and definition
* optimize some codes

Signed-off-by: Wayne Ren <wren@synopsys.com>
2020-05-06 20:23:07 +08:00
Jingru
8c2af057f4 arch: arc: remove unused codes and definition
Signed-off-by: Jingru <jingru@synopsys.com>
2020-05-06 20:21:21 +08:00
Jingru
e64869280b arch: arc: fix jump instruction and remove unused codes
Signed-off-by: Jingru <jingru@synopsys.com>
2020-05-06 20:18:19 +08:00
Jingru
a0eca8f6eb board: nsim: remove wrong definition
Signed-off-by: Jingru <jingru@synopsys.com>
2020-05-06 20:14:57 +08:00
Watson Zeng
0d4593ee5e arch: arc: update the ARC port
* add basic synopsys arc em processor support
* add basic arc nsim em virtual board support
* add basic arc mwdt toolchain support

Signed-off-by: Watson Zeng <zhiwei@synopsys.com>
2020-05-06 17:59:22 +08:00
Jingru
13eaef3d46 board: nsim: add ide projects to debug demo with esclipse
Signed-off-by: Jingru <jingru@synopsys.com>
2020-05-06 17:57:52 +08:00
Jingru
bfe3ee1964 board: nsim: add nsim.props and fix libraries
Signed-off-by: Jingru <jingru@synopsys.com>
2020-05-06 17:56:42 +08:00
Jingru
7d7f67e32f board: nsim: sbrk.c:(.text+0x10) undefined reference to end
Signed-off-by: Jingru <jingru@synopsys.com>
2020-05-06 17:55:54 +08:00
Jingru
ddd2d53f06 boarc: nsim: add source code to initialize board and start os
Signed-off-by: Jingru <jingru@synopsys.com>
2020-05-06 17:54:28 +08:00
Jingru
65f55e73e5 arch :arc: add the ARC port
Signed-off-by: Jingru <jingru@synopsys.com>
2020-05-06 17:53:27 +08:00
mculover666
1eb296721c 增加BearPi+ESP8266+MQTT上云工程 2020-04-29 16:17:18 +08:00
acevest
861966412b add interface for lcd 2020-04-25 19:36:00 +08:00
daishengdong
2e8c8c19e6 fix some calloc bug
1. some calloc fix
2. fix some document error
3. refactor kv API, to be compatible with ota API
2020-04-24 11:58:42 +08:00
acevest
03b3141166 add lcd show nrf24 data 2020-04-21 21:04:07 +08:00
acevest
3c592b5f11 TencentOS tiny EVB_MX & Sipeed Longan nano support nrf24l01 2020-04-21 14:34:21 +08:00
acevest
0042676b27 move nrf24l01 code to devices 2020-04-21 14:34:21 +08:00
acevest
b3f83445ff send string data 2020-04-21 14:34:21 +08:00
acevest
ca2743c09d clean code 2020-04-21 14:34:21 +08:00
acevest
c3204264e9 add test nrf_rx nrf_tx test code 2020-04-21 14:34:21 +08:00
acevest
7e519fba6a fix bug in nrf_enable_rxaddr 2020-04-21 14:34:21 +08:00
acevest
1585e3731b sipeed longan nano support nrf24 & lcd & led 2020-04-21 14:34:21 +08:00
acevest
b962ab14f3 add led blink when recv data from nrf24l01 2020-04-21 14:34:21 +08:00
acevest
0b517ab630 nrf24l01 support irq recv 2020-04-21 14:34:21 +08:00
acevest
dde50162fb fix spi bug when read/write gd32v peripherals 2020-04-21 14:34:21 +08:00
acevest
81cf6f0c23 debug nrf24 on longan nano 2020-04-21 14:34:21 +08:00
acevest
5e87b05e0c sipeed longan nano add nrf24l01 2020-04-21 14:34:21 +08:00
acevest
cd3ab71eb7 add nrf24l01 tx 2020-04-21 14:34:21 +08:00
acevest
602ad7d308 detach nrf24l01 hal from nrf24l01 2020-04-21 14:34:21 +08:00
acevest
019b69f592 add reset nrf24l01 registers 2020-04-21 14:34:21 +08:00
acevest
522ebe4f9b support nrf24l01 rx 2020-04-21 14:34:21 +08:00
Arthur
29911c483a Merge pull request #140 from DavidLin1577/patch-5
Update lora_demo.h
2020-04-18 09:54:12 +08:00
Arthur
0e25478953 Merge pull request #139 from DavidLin1577/patch-4
Update fatfs_drv.c
2020-04-18 09:53:45 +08:00
David Lin
c51a9b32aa Update lora_demo.h
__APP_DEMO_H__ -> __LORA_DEMO_H__
2020-04-17 17:42:53 +08:00
supowang
3fd1d77373 add mqttclient examples for EVB_LN882x
add mqttclient examples for EVB_LN882x
2020-04-17 15:49:17 +08:00
David Lin
feeb55dced Update fatfs_drv.c 2020-04-17 15:48:01 +08:00
David Lin
2254327f47 Update fatfs_drv.c
增加异常处理,防止错误cmd值导致返回RES_OK
2020-04-17 12:36:30 +08:00
David Lin
a430718e4f Update README.md 2020-04-17 11:53:58 +08:00
daishengdong
5c21ce702f add IAP sample project, mini program manual
see:
doc/20.In_Application_Programming_based_EVB_MX_Plus.md
2020-04-15 18:11:13 +08:00
wuliang
895b8de45c Add tcp client/server echo example. @EVB_LN882x 2020-04-10 22:16:46 +08:00
wuliang
c6894019ec add wifi project.(board/EVB_LN882x, example/wifi_ln882x, platform/vendor_bsp) 2020-04-09 21:44:09 +08:00
daishengdong
8123240a91 add at socket keil project 2020-04-08 11:41:48 +08:00
Winfred LIN
b6cb7147cc added fuzzy matching feature to at_echo; added set some AT+ commands for RHF76; added support for LSM6DS3;
1. in tos_at.h, added int  fuzzy_matching; field into at_echo_st struct, if this field is set to K_TRUE, then if echo message contains the string in "echo_expect" field.
2. added __API__ int tos_at_echo_fuzzy_matching_create(at_echo_t *echo, char *buffer, size_t buffer_size, char *echo_expect_contains) api to tos_at.c, which will create an at_echo_t with fuzzy_matching = K_TRUE;
3. added RHF76_ATCMD_SET_DELAY and  rhf76_set_delay to RHF76.h to allow set/query RX delay config
4. added RHF76_ATCMD_SET_DATA_RATE and rhf76_set_data_rate to RHF76.h to allow set/query date rate config
5. added rhf76_at_cmd_exe for DEBUG purpose, so that user can execute any AT+ commands they want
6. added code in lora_demo.c to demonstrate package segmentation.
2020-04-06 23:11:48 +10:00
Winfred LIN
47d6313ba1 added reading flash functions for stm32l0xx series
1. implemented HAL_StatusTypeDef HAL_FLASH_ReadWord(uint32_t Address, uint32_t* Data); and HAL_StatusTypeDef HAL_FLASH_ReadHalfWord(uint32_t Address, uint16_t* Data); which allows user to read the internal FLASH (with out read protection)

2. implemeted device_config struct to store device configurations, e.g. magnetometer fullscale, report period, etc.

3. added demonstration code of using flash reading apis in lora_demo.c, in which the configuration sent from the cloud is stored into the internal Data EEPROM bank1, and each time when the device is booted, the configurations would be loaded from the Data EEPROM and used to initialize the application.
2020-04-03 18:21:16 +11:00
Winfred LIN
cafe9c8a87 added sending unconfirmed message for RHF76
1. added AT+ command "AT+MSGHEX" and change previous RHF76_ATCMD_FMT_SEND_MSGHEX to RHF76_ATCMD_FMT_SEND_CMSGHEX

2. implement send_unconfirmed with a non-breaking approach: added int (*send_unconfirmed)(const void *buf, size_t len); event handle in lora_module_st; added int tos_lora_module_send_unconfirmed(const void *buf, size_t len); in lora_module_wrapper.c; and implement static int rhf76_send_unconfirmed(const void *buf, size_t len) in RHF76.c

3. added { "+MSGHEX: PORT:", rhf76_incoming_data_process } in event array rhf76_at_event so that the device is able to process the downlink data when it is configurated to send unconfirmed message.

4. added AT+ command "AT+REPT", and implement the static int rhf76_set_repeat(uint8_t num) to enable user to set repeat times (1-15) while using "unconfirmed message"

5. updated the instructions of implemeting up-link parser and downlink parser on the server in the file "..\board\NUCLEO_STM32L073RZ\BSP\Src\lora_demo.c"
2020-04-01 18:47:45 +11:00
Winfred LIN
eb6ffc8e95 added downlink data parser
1. modified code in recv_callback, which allows user to set the fullscale magnetometer and report period
2. modified the sample javascript code for uplink and downlink data parser on the cloud
2020-04-01 01:07:50 +11:00
Winfred LIN
da5884920a added lorawan example in IAR, and added support for LIS3MDL and LPS22HB sensors
1. modified the HTS221: removed magic numbers, added a sensor_tempnhumi_t struct to accommodate temperature and humidity data
2. added .h and .c files for LIS3MDL magnetic sensor
3. added .h and .c files for LPS22HB pressure sensor
3. added IAR (EWARM) project for lorawan example
4. added bsp.c and bsp.h to manager the sensors
2020-03-31 17:48:27 +11:00