简体   繁体   English

如何从Linux上连接到I2C的摄像机读取流数据?

[英]How can I read streaming data from a camera connected to I2C on Linux?

I've looked for ways of reading camera data connected to I2C on Linux. 我一直在寻找在Linux上读取连接到I2C的相机数据的方法。

What is the normal way to achieve the goal? 实现目标的正常方法是什么?

Could you please show me a skeleton code or running code? 您能告诉我一个框架代码或运行代码吗?

You need to write a userspace program to talk to the i2c-driver . 您需要编写一个用户空间程序来与i2c-driver对话。 There are some SMbus functions defined to do the data read/write from the userspace to the device driver. 定义了一些SMbus函数,以进行从用户空间到设备驱动程序的数据读取/写入。

Read here for more: https://www.kernel.org/doc/Documentation/i2c/dev-interface 在此处阅读更多信息: https : //www.kernel.org/doc/Documentation/i2c/dev-interface

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM