Commit Graph

154 Commits

Author SHA1 Message Date
David Lin
a52cea4354 Fixed wrong parameters in debug output 2020-03-07 09:05:15 +08:00
David Lin
90c9cf9cbb Added missing parameter 2020-03-07 09:00:14 +08:00
David Lin
738b11f44b Update README.md 2020-03-06 10:29:46 +08:00
David Lin
2c9f8b2ff8 Update README.md 2020-03-06 09:05:03 +08:00
David Lin
3d95ace7fe Minor optimization to improve readability of code
mqtt_msg_handler_destory -> mqtt_msg_handler_destroy
2020-03-06 09:01:07 +08:00
Arthur
4dbfff0457 Merge pull request #109 from DavidLin1577/patch-2
Fixed the return errors of tencentCloud_SDK
2020-03-02 17:34:37 +08:00
Arthur
1c131b9f26 Merge pull request #110 from DavidLin1577/patch-3
Fixed the wrong return value in HAL_UDP_module.c
2020-03-02 17:34:03 +08:00
David Lin
b859935397 Fixed wrong output information 2020-03-02 08:47:07 +08:00
David Lin
06b7aea567 Fixed wrong output information 2020-03-02 08:44:29 +08:00
David Lin
d0d01f5ba2 Fixed the wrong return value in HAL_UDP_module.c
QCLOUD_ERR_TCP_WRITE_FAIL -> QCLOUD_ERR_UDP_WRITE_FAIL
QCLOUD_ERR_TCP_READ_FAIL -> QCLOUD_ERR_UDP_READ_FAIL
QCLOUD_ERR_TCP_NOTHING_TO_READ -> QCLOUD_ERR_UDP_NOTHING_TO_READ
2020-02-29 22:34:17 +08:00
David Lin
f751379338 Fixed notes errors 2020-02-29 22:24:17 +08:00
David Lin
88d5934e1c Fixed the wrong return value in HAL_UDP_module.c
QCLOUD_ERR_TCP_WRITE_FAIL -> QCLOUD_ERR_UDP_WRITE_FAIL
QCLOUD_ERR_TCP_READ_FAIL -> QCLOUD_ERR_UDP_READ_FAIL
QCLOUD_ERR_TCP_NOTHING_TO_READ -> QCLOUD_ERR_UDP_NOTHING_TO_READ
2020-02-29 22:13:23 +08:00
David Lin
6d626a7adc Fixed the wrong return value in osal_udp_module.c
QCLOUD_ERR_TCP_WRITE_FAIL -> QCLOUD_ERR_UDP_WRITE_FAIL
QCLOUD_ERR_TCP_READ_FAIL -> QCLOUD_ERR_UDP_READ_FAIL
QCLOUD_ERR_TCP_NOTHING_TO_READ -> QCLOUD_ERR_UDP_NOTHING_TO_READ
2020-02-29 21:48:26 +08:00
David Lin
97d271f62a Fixed the wrong return value in osal_udp_socket.c
QCLOUD_ERR_TCP_READ_FAIL -> QCLOUD_ERR_UDP_READ_FAIL
2020-02-29 21:37:07 +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
Supowang1989
79be128f5f update mqttclient doc
update mqttclient doc
2020-02-24 16:01:05 +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
jiejieTop
8f76e16646 add mqttclient to the component, and add fire stm32f429 board demo. 2020-02-20 00:12:30 +08:00
Arthur
dc2a4c4857 Merge pull request #95 from DavidLin1577/patch-10
Fixed wrong timer in radio
2020-02-16 20:16:19 +08:00
Arthur
7350af78ba Merge pull request #97 from DavidLin1577/patch-12
Fixed typo: 'lenght' in qclould-iot-explorer-sdk
2020-02-16 20:15:22 +08:00
David Lin
c02f1d796c Fixed typo: 'lenght' in qclould-iot-hub-sdk
Note that the word 'lenght' is wrong,
so that 'lenght' should been replaced with 'length'.
2020-02-16 17:40:47 +08:00
David Lin
a6c4f0e991 Fixed typo: 'lenght'
Note that the word 'lenght' is wrong,
so that 'lenght' should been replaced with 'length'.
2020-02-16 17:37:20 +08:00
David Lin
b63f03632d Fixed wrong timer in radio
Note that this is a tx function named RadioSetTxContinuousWave, 
so the timer 'RxTimeoutTimer' should been replaced with 'TxTimeoutTimer'.
2020-02-16 10:07:11 +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
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
Arthur
0825859a0c Merge pull request #86 from DavidLin1577/patch-4
优化HAL_UDP_Connect函数
2020-02-06 14:12:32 +08:00
blackwhite084
87298ea3e3 Update data_template_event.c
修复提交单事件时拼接的json多出一个“{”符号
2020-01-27 14:43:28 +08:00
LinPeng
e5a78b5e64 优化HAL_UDP_Connect函数
1.直接在初始化阶段清零char port_str[PORT_BUFF_LEN] = {0};,删除紧接着的memset操作
2.调整代码缩进对齐
2020-01-21 14:12:46 +08:00
Arthur
0eb8c18660 Merge pull request #83 from DavidLin1577/patch-2
Update qcloud_network.c
2020-01-20 13:58:36 +08:00
LinPeng
7e92ae86de Update qcloud_network.c
rearrange the spacing of this code
2020-01-20 11:54:39 +08:00
LinPeng
45dfc729fc Update HAL_TCP_module.c
1.in function HAL_TCP_Connect,  '    char port_str[PORT_BUFF_LEN];  memset(port_str, 0, PORT_BUFF_LEN);', we can direct to replace with  'char port_str[PORT_BUFF_LEN] = {0};'
2020-01-20 11:37:45 +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
daishengdong
72481955e2 a very simple shell framework
simple, clear, easy to DIY
2020-01-08 13:54:56 +08:00
daishengdong
c9556307df add tos_slist.h, rename tos.h to tos_k.h 2020-01-03 17:25:38 +08:00
Supowang1989
bac26a2964 Merge pull request #67 from royye62/master
add sensor_e53_ia1_e2e_demo
2019-12-21 13:38:54 +08:00
daishengdong
c4c60c3722 fix a bug
consider this situation: no more fresh block, meantime an item with such a big size come in, and currently no block inuse has sufficient space to save this item, the code will run into the modified line, and KV_MGR_WORKSPACE will be set to KV_BLK_INVALID. this will cause no matter what size of an item wanna come in again, kv_blk_search_suitable just return KV_BLK_INVALID because "if (KV_MGR_WORKSPACE == KV_BLK_INVALID)"  is true.
2019-12-20 11:20:30 +08:00
daishengdong
febcf10911 add kv fs component
1. a true wear-leveling kv fs for norflash, especially optimize for some onchip norflash with "write once on one single write unit" like stm32l4, a true "no earse before write" flash algorithm.
2. an "as less as possible" gc strategy, do best to save norflash's life.
3. full "power down protection" support
4. see "examples" of kv, project in "TencentOS_tiny_EVB_MX_Plus", with onchip flash and qspiflash sample.
2019-12-19 16:08:42 +08:00
royye
539dc6a152 add end-to-end example sensor_e53_ia1_e2e_demo 2019-12-17 19:53:58 +08:00
daishengdong
b2983383bb add nimble mesh example
need meshctl installed on raspberrypi. nimble offical samples have a lot of pit ...
2019-11-28 11:12:16 +08:00
daishengdong
bae04c6774 add nimble uart
download "nimble connect" on your phone, connect to "Nimble Uart", send byte array or uint8 to the board through the app
2019-11-15 15:37:06 +08:00
daishengdong
943db74fc7 merge new qcloud sdk
1. qcloud has a great revolution, the protocol has been changed to implement data template, so the old TencentCloud_SDK developed by us will not work fine now(mqtt still works, but data template will not works fine for recently created product/devices).

2. I merge the official qlcoud sdk(include both the iot-hub and iot-explorer sdk) into the componet/conectivity to support new protocol of data template

3. iot-hub sdk, supply the fundamental iot protocol(like mqtt coap, etc.)
iot-explorer sdk, supply the high level service like data template based on mqtt

4. To know how it works, see qcloud_iot_explorer_sdk_data_template、qcloud_iot_hub_sdk_mqtt example(keil project in board\TencentOS_tiny_EVB_MX_Plus\KEIL\qcloud_iot_explorer_sdk_data_template and  board\TencentOS_tiny_EVB_MX_Plus\KEIL\qcloud_iot_hub_sdk_mqtt)
2019-11-14 15:09:00 +08:00
daishengdong
0700d27b70 add more nimble example
1. make heart rate sensor example really work
using nRF Toolbox HRM
2. add master device scan example
3. add gatt server example(seems not working)
2019-11-12 19:56:52 +08:00
dcxajichu
8c24d921b0 support aliyun sdk on TencentOS tiny
sample: examples\aliyun_iotkit_csdk_mqtt
project: board\TencentOS_tiny_EVB_MX_Plus\KEIL\aliyun_iotkit_csdk_mqtt
2019-10-31 16:36:28 +08:00
daishengdong
d0b8d0675e add ring queue/message queue/mail queue, binary heap/priority queue/priority message queue/priority mail queue
1. remove the old msg queue and queue:
i. msg queue is not a common and reusable/flexible component(need user to config the msg pool size and this componet can only be used by tos_queue)
ii. tos_queue can only deliver the pointer message(cannot do a memory buffer deliver)

2. add ring queue(tos_ring_q) componet
rinq queue can be reused by tos_chr_fifi/tos_msg_q/tos_mail_q as the foundational data container

3. add message queue(tos_msg_q)
a little like the old queue mechanism, supply the capability to deliver a pointer message

4. add mail queue(tos_mail_q)
supply the capability to deliver a memory buffer

5. add binary heap(tos_bin_heap)
the basement componet to implement priority queue

6. add priority queue(tos_prio_q)
can be reused by the priority message/mail queue  as the foundational data container.

7. add priority message queue(tos_prio_msg_q)
a message(pointer) deliver mechanism, supply the capability of delivering the message with priority(message with higher priority comes faster to the pender than with lower)

8. add priority mail queue(tos_prio_mail_q)
a mail(memory buffer) deliver mechanism, supply the capability of delivering the mail with priority(mail with higher priority comes faster to the pender than with lower)
2019-10-28 15:50:46 +08:00
daishengdong
56f4f82dd2 make nrf51822 nimble blehr work 2019-10-14 19:45:24 +08:00
supowang
d6fef329f5 update lvgl demo 2019-10-12 16:54:39 +08:00
supowang
3260ba3161 add LittlevGL demo
add LittlevGL demo on stm32f746 discovery board
2019-10-12 14:57:31 +08:00
daishengdong
c13fb9a1fa make 51822 xxAC compile ok
currently we DONOT have a 51822 xxAC(we only have xxAA of which the ram is only 16k which is too small to porting nimble, means currently the nimble ble on 51822 probably may not work). xxAC is coming soon(on EMS), I will make nimble on 51822 xxAC later.
2019-10-12 12:17:17 +08:00