Search found 198 matches

by Kyson
2024年 Jan 19日 13:40
Forum: TuyaOS-网关中控开发
Topic: 【求助】【网关】【TuyaOS SDK】wifi+有线配网问题
Replies: 1
Views: 1292

Re: 【求助】【网关】【TuyaOS SDK】wifi+有线配网问题

接入有线会优先使用有线。你这个问题麻烦提供下完整的日志看看

by Kyson
2024年 Jan 5日 18:17
Forum: TuyaOS-网关中控开发
Topic: 【已解决】【网关】【TuyaOS SDK】无法触发本地日志上报
Replies: 7
Views: 1165

Re: 【求助】【网关】【TuyaOS SDK】无法触发本地日志上报

文档已上线,请参考 日志管理

提示:SDK 要更新到 3.9.10 版本。

by Kyson
2024年 Jan 3日 14:34
Forum: TuyaOS-网关中控开发
Topic: 【已解决】【网关】【TuyaOS SDK】无法触发本地日志上报
Replies: 7
Views: 1165

Re: 【求助】【网关】【TuyaOS SDK】无法触发本地日志上报

手机上触发不走这个回调,这个功能我们正在编写开发文档,等文档上线到文档中心参考文档开发,这周会上线。

by Kyson
2024年 Jan 3日 11:01
Forum: TuyaOS-网关中控开发
Topic: 【已解决】【网关】【TuyaOS SDK】子设备创建群组的时候,控制群组出现段错误
Replies: 1
Views: 1002

Re: 【求助】【网关】【TuyaOS SDK】子设备创建群组的时候,控制群组出现段错误

看栈顶的信息,段错误是出现在应用侧的,mg_sub_dev_managed.c 的代码中,请自行检查一下应用代码,可以借助 gdb 进一步排查。

by Kyson
2024年 Jan 3日 10:58
Forum: TuyaOS-网关中控开发
Topic: 【已解决】【网关】【TuyaOS SDK】无法触发本地日志上报
Replies: 7
Views: 1165

Re: 【求助】【网关】【TuyaOS SDK】无法触发本地日志上报

这个触发入口是在平台侧的,请问一下你是通过什么方式触发的?

by Kyson
2023年 Dec 1日 18:56
Forum: TuyaOS-Gateway&Central Control Device Development
Topic: How to Debug Segmentation Faults
Replies: 0
Views: 6757

How to Debug Segmentation Faults

In the daily process of software development, it is inevitable that we will encounter program crashes. During development and debugging, we can use tools such as GDB or GDB Server to reproduce the problem and perform stack tracing, making it easy to locate and solve problems. However, for occasional...
by Kyson
2023年 Dec 1日 18:46
Forum: TuyaOS-网关中控开发
Topic: 【分享】程序段错误分析
Replies: 0
Views: 6418

【分享】程序段错误分析

在日常的软件开发过程中,我们无可避免地会遇到程序崩溃的问题。在开发和调试阶段,我们可以利用如 GDB 或 GDB Server 这样的工具来重现问题并进行栈回溯,从而轻松定位并解决问题。 然而,对于在线产品中的偶发性崩溃问题,处理起来就显得较为困难。尽管我们可以通过 Linux 的 backtrace 功能,捕捉 SIGSEGV 信号,并在信号回调中调用 backtrace 和 backtrace_symbols 接口来进行栈回溯,但遗憾的是,许多工具链已经裁剪了这一功能,因此在大多数情况下,backtrace 功能无法使用。 本文将提供两种方法,以解决线上产品中偶尔出现的 crash 问题。...
by Kyson
2023年 Dec 1日 11:27
Forum: TuyaOS-Gateway&Central Control Device Development
Topic: Using the Address Sanitizer
Replies: 0
Views: 6846

Using the Address Sanitizer

C/C++ is commonly used as the preferred programming language for embedded development. We always encountering memory errors during the development. Memory errors are extremely fatal issues, and once it occurs, usually cause program crashes. Memory errors is extremely difficult to debug. Fortunately,...
by Kyson
2023年 Dec 1日 11:26
Forum: TuyaOS-网关中控开发
Topic: 【分享】内存错误分析 - AddressSanitizer
Replies: 0
Views: 6618

【分享】内存错误分析 - AddressSanitizer

C/C++ 通常作为嵌入式开发的首选编程语言,在开发过程中,碰到内存错误是很常见的。内存错误是非常致命的问题,一旦发生通常会引起程序奔溃,并且排查起来极其困难。 幸运的是,我们可以借助一些工具来检测此类错误,使用编译工具链内置的 AddressSanitize 功能是最佳的解决方案。 简介 AddressSanitizer (简称 ASan)是一种内存错误检测器,主要用于 C/C++ 程序。它可以在运行时检测出诸如缓冲区溢出、使用未初始化的内存、使用已释放的内存等常见内存错误。从 GCC 4.8 开始,AddressSanitizer 成为 GCC 的一部分。通过使用 AddressSanit...
by Kyson
2023年 Nov 24日 18:36
Forum: TuyaOS-Gateway&Central Control Device Development
Topic: How to make TuyaOS Gateway Device Development Standalone
Replies: 0
Views: 7440

How to make TuyaOS Gateway Device Development Standalone

Background Information The TuyaOS Gateway Development Framework uses xmake to compile the framework. After downloading the development framework from Tuya Wind IDE, you can directly compile the project for apps. Newly added source files will be compiled and linked, without having to worry about cum...