Commit Graph

217 Commits

Author SHA1 Message Date
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
David Lin b63867f519
Fixed the wrong indentation and typos 2020-03-06 23:23:28 +08:00
David Lin df17c82e52
Fixed the wrong indentation 2020-03-06 23:10:13 +08:00
Supowang1989 3087482e54 add TencentOS tiny Simulator project
add TencentOS tiny Simulator project
2020-03-06 13:46:35 +08:00
daishengdong 7e6ce005e6 support avr architecture based on ATMega32
1. IAR project, see TencentOS-tiny\board\ATMega32\IAR, both 4.12 and 7.20 is supplied.
2020-03-03 18:27:24 +08:00
Supowang1989 e40ef2019e add Gokit3 board support
add Gokit3 board support
2020-03-02 09:21:46 +08:00
daishengdong 40f55ec57b support posix
1. posix pthread.h: pthread, pthread_barrier, pthread_cond, pthread_mutex, , pthread_rwlock, pthread_spin, etc
2. posix semaphore.h: sem_*
3. posix mqueue.h: mq_*
4. posix time.h: timer_*
5. to support posix, add tos_barrier, tos_bitmap, tos_rwlock, tos_stopwatch, change name of k_task_t from a char * pointer to a char array.
6. sample, see examples\posix
7. project, see board\TencentOS_tiny_EVB_MX_Plus\KEIL\posix
2020-02-28 00:11:28 +08:00
Supowang1989 c6f45a4c2e update modbus project
update modbus project
2020-02-25 10:07:00 +08:00
Supowang1989 ef82dbfc6d add modbus slave support
add modbus slave support
2020-02-24 21:40:06 +08:00
caijie0513 8170a49366 del some file and fix uncontrollable log level when salof is not used... 2020-02-21 21:21:31 +08:00
caijie0513 f662bdc680 mqttclient uses mbedtls for tos, and updates the example... 2020-02-21 21:03:06 +08:00
caijie0513 324a1c0620 use mbedtls version in tos... 2020-02-21 18:30:23 +08:00
jiejieTop 8f76e16646 add mqttclient to the component, and add fire stm32f429 board demo. 2020-02-20 00:12:30 +08:00
daishengdong 3ddeb9c5cd support task self delete for STM8, add a sample of shell for STM8
1. sample project, see TencentOS-tiny\board\STM8L052R8T6\IAR\shell
2. ATTENTION: read TencentOS-tiny\board\STM8L052R8T6\IAR\shell\README.md first
2020-02-15 23:22:38 +08:00
Arthur 7a0966a2cc
Merge pull request #94 from supperthomas/master
ADD PROJECT
2020-02-15 20:51:28 +08:00
supperthomas 2028b11216 add aliyun
add aliyun project
2020-02-15 19:46:31 +08:00
supperthomas bffd1bd400 Revert "SDK: ADD the aliyunos project"
This reverts commit 07faecde78.
2020-02-15 18:34:01 +08:00
supperthomas b6083151e7 Merge branch 'master' of https://github.com/supperthomas/TencentOS-tiny 2020-02-15 18:33:43 +08:00
supperthomas 07faecde78 SDK: ADD the aliyunos project 2020-02-15 17:35:20 +08:00
daishengdong d8ca59bf65 remove dead code 2020-02-15 16:45:07 +08:00
daishengdong 405e5d970a support stm8
1. see: TencentOS-tiny\board\STM8L052R8T6\IAR\hello_world
2. compile/debug/run with IAR for STM8
2020-02-15 16:39:00 +08:00
thomas_li 97cb277bd8 SDK: add project of mqtt 2020-02-10 10:30:57 +08:00
niannianyouyu 52183c0b31 ADD NUCLEO_STM32F446RE BSP 2020-02-09 21:55:54 +08:00
niannianyouyu d2f38a016e Add NUCLEO_STM32F446RE BSP 2020-02-09 21:55:31 +08:00
daishengdong 8588240c82 extract exceptions.h 2020-01-19 20:37:57 +08:00
daishengdong 3d9d6198c8 add cortex-v7a support
How To Run:
    see TencentOS-tiny\board\ALPHA_I.MX_emmc_256ddr\README.md

TODO Next:
1. VFP support
2. fault diagnosis support
3. qemu vexpress ca9 support
4. raspberry pi support
5. SMP support
2020-01-19 19:06:24 +08:00
Supowang1989 08ab1d88e1
Merge pull request #79 from howardliu7874/master
Porting for NXP i.MX RT1010/1050/1060
2020-01-19 10:53:19 +08:00
Howard Liu d8f32035a1 1. Updated the BSP for i.MX RT1050
2. Added the Keil Workspace
3. Changed the hello_world.c for RT1050

Signed-off-by: Howard Liu <howardliu7874@hotmail.com>
2020-01-18 19:35:05 +08:00
Chan Luo 91c470239d Add NXP i.MXRT1060 EVK board bsp support and IAR demo 2020-01-16 19:33:15 +08:00
acevest cf668e190f fix spike gcc compile 2020-01-16 00:41:22 +08:00