Commit Graph

246 Commits

Author SHA1 Message Date
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
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
supowang
a3078ac232 add mqtt client example for evb_mx+
add mqtt client example for evb_mx+
2020-03-27 17:04:33 +08:00
supowang
8950decc44 add lorawan demo for evb_lx
add lorawan demo for evb_lx
2020-03-25 11:51:48 +08:00
jiejieTop
10bbb3db8d mqttclient supports at framework and add gokit3 board demo... 2020-03-22 12:24:29 +08:00
jiejieTop
476e0dec02 the push is modified as follows:
1. delete some junk files.
2. mqttclient added comments and updated to v1.0.2.
3. update README.md.
4. update the author's own server certificate.
5. minor changes to salof.
2020-03-21 21:53:10 +08:00
supowang
c0cb4460b7 add modbus demo for MX+
add modbus demo for MX+
2020-03-20 18:39:49 +08:00
Arthur
9675ebb11d Merge pull request #121 from acevest/onenet_mini
add support for OneNET Mini dev board
2020-03-15 23:51:24 +08:00
acevest
dfc59ab167 add support for OneNET Mini dev board 2020-03-15 18:20:41 +08:00
daishengdong
9d6dd6398e fix the bug of sd fatfs formated not recognized by windows
1. the address in tos_hal_sd_*(tos_hal_sd.c) is by byte, but address in HAL_SD_WriteBlocks/HAL_SD_ReadBlocks is by sector
2. convert address in tos_hal_sd_* from byte to sector( / 512)
2020-03-15 12:04:47 +08:00
daishengdong
cb2477f66e support RHF0M0E5 board with armcc v6
1. project, see TencentOS-tiny\board\RHF0M0E5_STM32WLE5xx\KEIL\hello_world
2020-03-12 20:10:27 +08:00
Arthur
6d0c6d3721 Merge pull request #117 from DavidLin1577/patch-2
Improve readability of codes
2020-03-07 10:47:51 +08:00
David Lin
6374890a72 Fixed bug of tcp receive
int tos_sal_module_recv_timeout(int sock, void *buf, size_t len, uint32_t timeout);
This 'len' is data buffer length.
2020-03-07 08:34:30 +08:00
David Lin
2956d75b37 Update readme.md 2020-03-06 23:33:41 +08:00