Commit Graph

503 Commits

Author SHA1 Message Date
royye62 3500ccd27c miniprogram: add iap mp for ble OTA 2020-04-14 16:50:37 +08:00
Arthur e5c71448c7
Merge pull request #136 from DavidLin1577/patch-7
Update HAL_Device_tencentos_tiny.c
2020-04-14 16:15:27 +08:00
David Lin 7c0af9e2d4
Update HAL_Device_tencentos_tiny.c
HAL_GetDevInfo  ->  HAL_GetGwDevInfo
2020-04-13 11:25:33 +08:00
Supowang1989 cdff2bd2e9
Merge pull request #135 from DavidLin1577/patch-6
Fixed some stackover flow bugs in  tcp_client.c/tcp_server.c
2020-04-13 10:19:42 +08:00
Supowang1989 4beb1b019f
Merge pull request #134 from DavidLin1577/patch-5
Fixed  param[in] infomation in lora_module_wrapper.h
2020-04-13 10:18:14 +08:00
Supowang1989 9bfa0347d5
Merge pull request #133 from DavidLin1577/patch-4
Update tos_at.h
2020-04-13 10:16:45 +08:00
Supowang1989 7328f33030
Merge pull request #132 from DavidLin1577/patch-3
Update lora_demo.h
2020-04-13 10:16:21 +08:00
Supowang1989 68180dc57d
Merge pull request #131 from jdi058/master
Add tcp client/server echo example. @EVB_LN882x
2020-04-13 10:16:01 +08:00
David Lin 23313e8567
Update tcp_server.c
Fixed a stackover flow bug.
2020-04-12 11:12:24 +08:00
David Lin 8832a6477f
Update tcp_client.c 2020-04-12 10:57:12 +08:00
David Lin bdb1c540e4
Update lora_module_wrapper.h
Note error: this param[in]  is 'recv_callback':
mcps_indication -> recv_callback
2020-04-12 10:05:02 +08:00
David Lin 479f2a4ad1
Update tos_at.h
__AT_AGENT_H_ -> _TOS_AT_H_
2020-04-12 09:51:48 +08:00
David Lin 3b85266611
Update lora_demo.h
__APP_DEMO_H__ -> __APP_DEMO_H__
2020-04-12 09:03:00 +08:00
royye62 3e757c1688 mini program: add qcloud_device_linkage_demo 2020-04-12 03:24:18 +08:00
wuliang 895b8de45c Add tcp client/server echo example. @EVB_LN882x 2020-04-10 22:16:46 +08:00
Arthur ccde26c1e9
Merge pull request #130 from jdi058/master
add wifi(ln882x) project.
2020-04-10 10:42:20 +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
daishengdong 032af66467 add socket wrapper for at framework
you can use at framework to send/recv data in socket API
example: see examples\tcp_through_module_based_at_socket
project: see board\TencentOS_tiny_EVB_MX_Plus\KEIL\tcp_through_module_based_at_socket
2020-04-07 16:39:13 +08:00
Supowang1989 f14e7b1753
Merge pull request #128 from jieranzhi/master
added reading internal flash functions for stm32l0xx series
2020-04-07 10:09:08 +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
Supowang1989 ad2774a51f
Merge pull request #127 from jieranzhi/master
enable the device to send unconfirmed message for RHF76...
2020-04-01 19:01:16 +08: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
Supowang1989 45473e0129
Merge pull request #126 from jieranzhi/master
for NUCLEO_STM32L073RZ board, added lorawan example in IAR, and added support for LIS3MDL and LPS22…
2020-03-31 17:38:48 +08: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
Arthur 88bfcdd333
Merge pull request #124 from DavidLin1577/patch-2
Update HAL_Device_tencentos_tiny.c
2020-03-23 10:25:16 +08:00
Arthur eaba373ad5
Merge pull request #125 from jiejieTop/master
update mqttclient to version 1.0.2 and add gokit demo...
2020-03-23 10:24:41 +08:00
jiejieTop 787046eddb update mqttclient README.md 2020-03-22 12:46:06 +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
David Lin 6d6b86f367
Update light_data_template_sample.c 2020-03-20 22:01:00 +08:00
David Lin 474c37d147
Update HAL_Device_tencentos_tiny.c
Fixed hidden bug may cause stackover flow
2020-03-20 21:32:33 +08:00
supowang c0cb4460b7 add modbus demo for MX+
add modbus demo for MX+
2020-03-20 18:39:49 +08:00
Arthur a2c60e626f
Merge pull request #123 from DavidLin1577/patch-1
Update string_utils.c
2020-03-18 10:25:08 +08:00
David Lin 8d273fc02b
Update string_utils.c 2020-03-17 21:18:34 +08:00
David Lin e8b6f7042d
Update json_token.c 2020-03-17 21:16:54 +08:00
David Lin ccec7a25b6
Update json_token.c 2020-03-17 21:10:01 +08:00
David Lin e28acb8a2a
Update string_utils.c 2020-03-17 21:06:04 +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
Arthur c5a972b9ac
Merge pull request #122 from DavidLin1577/patch-5
Fixed  stackover flow bug in qcloud_json_token.c
2020-03-15 23:50:47 +08:00
David Lin 9e146a68f6
Fixed stackover flow bug in qcloud_string_utils.c
Add if ‘NULL’:

            if (NULL == tmp) {
                return NULL;
            }
2020-03-15 21:53:39 +08:00
David Lin cc88371d7d
Fixed stackover flow bug in qcloud_json_token.c
Add if ‘NULL’:
            if (NULL == entry) {
                return NULL;
            }
2020-03-15 21:47:54 +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
daishengdong 441f57c837 fix "redefinition of typedef 'k_task_t'"
1. remove re-typedef of k_task_st to k_task_t in tos_task.h
2. add "typedef struct k_task_st k_task_t" to tos_ktypes.h
2020-03-12 11:04:17 +08:00