我希望能够通过硬件时间戳来捕捉相机触发的时间,我曾尝试使用hte来捕捉相机的外部触发pwm的时间戳,但是好像并没有成功,而且似乎会有误差,我看论坛有关于tsc的时间戳来专门捕捉相机的触发是吗?请问这个功能模块应该如何使用?有没有相关的操作文档
*** Please note that this reply is generated by LLM automatically ***
The provided context does not contain any information about “htepwmtsc” related to Jetson AGX Orin. It seems to be a typo or an unknown term.
However, I can provide information about Jetson AGX Orin. The Jetson AGX Orin is a high-performance AI computing module developed by NVIDIA. It is part of the Jetson Orin series, which also includes the Jetson Orin NX and Jetson Orin Nano.
The Jetson AGX Orin module features a powerful NVIDIA Ampere GPU, a high-performance CPU, and a rich set of interfaces for connecting peripherals and sensors. It is designed for a wide range of applications, including robotics, autonomous vehicles, medical devices, and more.
In terms of software, the Jetson AGX Orin supports the NVIDIA JetPack SDK, which provides a comprehensive set of tools and libraries for developing AI applications. The module also supports the Linux operating system and a variety of other software frameworks and tools.
If you are looking for information on a specific topic related to Jetson AGX Orin, please let me know and I’ll do my best to provide a comprehensive answer.
*** Please give the thumbs up if you get answers you like. Or provide feedback to help us improve the answer. ***
我看官方有做TSC相关的捕捉相机触发的时间戳,或许需要真人来进行解答一下
please see-also forum topics for reference.
such as..
目前的话我是已经能够得到时间戳,但是当我将pwm和输入引脚断开的时候我的hte时间戳还是在捕获时间戳,因此我有点奇怪这是因为什么造成的,这会对我去同步相机的时间造成误差
hello Edsonsl111,
you may refer to Enabling the HTE Driver to review your pin connections.
是我输入引脚周边的电平干扰到造成的吗
hello Edsonsl111,
please review your device tree settings, and also exclude the peripherals interference.
你好这个似乎并没有详细介绍我应该如何去使用tsc去捕捉相机的时间戳,请问官网有相关的案例文档能够学习吗?
你好,我不确定我在论坛了解的这些是否正确请问你们可以为我做一些参考吗,我的理解是将pinmux中能够作为TSC_EDGE_OUT的引脚设置为以下状态
soc_gpio50_pbb2 {
nvidia,pins = “soc_gpio50_pbb2”;
nvidia,function = “tsc_edge_out0”;
nvidia,pull = <TEGRA_PIN_PULL_NONE>;
nvidia,tristate = <TEGRA_PIN_DISABLE>;
nvidia,enable-input = <TEGRA_PIN_DISABLE>;
然后在核心设备树中添加节点
tsc_sig_gen@c6a0000 {
compatible = “nvidia,tegra234-cdi-tsc”;
ranges = <0x0 0x0 0xc6a0000 0x10000>;
reg = <0x0 0xc6a0000 0x0 0x18>;
#address-cells = <1>;
#size-cells = <1>;
status = “okay”;
/* EDGE_OUT #0 */
generator@380 {
reg = <0x380 0x80>;
freq_hz = <30>;
duty_cycle = <50>;
offset_ms = <0>;
status = “okay”;
};
}
这样的话是否就可以使用tsc来捕捉相机的时间戳了呢?将tsc的out引脚和解串器的触发引脚进行连接,除此之外我还需要做一些其他的更改吗?比如驱动文件或者其他的什么?另外我还想知道如果我们设计的是以PWM来进行触发的话能不能将该pwm引脚模拟成tsc_edge_out的引脚来进行使用?我们期望的是该引脚能够控制4个解串器的触发引脚
hello Edsonsl111,
unfortunately, there’s no such developer guide for reference.
you should use TSC_EDGE_OUT for camera synchronization.
see-also.. $public_sources/kernel_src/kernel/nvidia/drivers/media/platform/tegra/cdi/cdi_tsc.c
那我是否只需要将核心设备树里添加上述的节点信息然后将支持tsc的pinmux修改为tsc_edge_out,驱动的话是否不需要做更改就可以了呢?
hello Edsonsl111,
you’ll need to have camera configuration as external trigger, see-also Topic 293252 for reference.
我已经将相机配置为了外部触发的模式,因为我们的相机设计的是使用pwm进行的外部触发,因此我们的设想是通过hte捕捉pwm的上升沿的时间戳信息,在使用hte去捕捉pwm的时间戳信息的时候我们成功的捕捉到了上升沿的时间戳信息,但是我们不希望通过dmesg来进行查看这个时间戳信息,这会对内核的log分析带来很大的工作量,所以我们期望的是能够通过用户空间去访问这个时间戳信息,但是我们目前使用fifo去搬运硬件时间戳信息的时候会有偶尔一帧的丢失,请问你们有相关的更为安全的案例吗
hello Edsonsl111,
we don’t have such sample for reference, please test with lower frame-rate to check you still seeing frame-drops.