News

通用usb驱动libusb介绍和使用示例

通用usb驱动libusb介绍和使用示例

sudo insmod /lib/modules/2.6.22-14-generic/kernel/drivers/usb/serial/usbserial.ko vendor=0×8086 product=0xd001
同时插上ttyUSB0和ttyUSB1(ch341),obm可以将dkb下载下去,但是自动重起之后,就不能下载接下来的东西了,所以应该,需要close(ttyUSB0_handle);
然后进行接下来的下载,分别调用两次不过应该自动关闭了,所以可能还是不能同时插上ttyUSB0和ttyUSB1
lsusb 显示usb设备   … … … …   阅读更多

Linux, News, usb

vc6 & libusb

偶然间把一个usbbulk 的实验在java 里实现了,刚才又在VC 下用libusb 做了一个,虽然很简单,但也是遇到一个问题,在这里记下,为了备忘,也为了让同路人少走弯路。
首先 把usb.h ,libusb0.dll ,libusb.lib 放到工程目录里,然后就是要在project setting 里添加libusb.lib 如下图:

然后就是写代码了,开始的时候不知道流程,总提示 could not claim interface 0 , 却不知道怎么办,偶尔在http://lists.alioth.debian.org/pipermail/sane-devel/2003-Fe   … … … …   阅读更多

News, usb

基于libusb的无驱设计(二)

Libusb库的使用使用libusb之前你的linux系统必须装有usb文件系统,这里还介绍了使用hiddev设备文件来访问设备,目的在于不仅可以比较出usb的易用性,还提供了一个转化成libusb驱动的案例。3.1 find设备任何驱动第一步首先是寻找到要操作的设备,我们先来看看HID驱动是怎样寻找到设备的。我们假设寻找设备的函数Device_Find(注:代码只是为了方便解说,不保证代码的健全)/* 我们简单看一下使用hid驱动寻找设备的实现,然后在看一下libusb是如何寻找设备的 */int Device_Find(){char dir_str[100]; /* 这个变量我们用来保存设   … … … …   阅读更多

Linux, News, usb

基于libusb的无驱设计(转帖)

驱动开发向来是内核开发中工作量最多的一块,随着USB设备的普及,大量的USB设备的驱动开发也成为驱动开发者手头上做的最多的事情。本文主要介绍Linux平台下基于libusb的驱动开发,希望能够给从事Linux驱动开发的朋友带来些帮助,更希望能够给其他平台上的无驱设计带来些帮助。文章是我在工作中使用libusb的一些总结,难免有错误,如有不当的地方,还请指正。
Linux 平台上的usb驱动开发,主要有内核驱动的开发和基于libusb的无驱设计。
对于内核驱动的大部分设备,诸如带usb接口的hid设备,linux本身已经自带了相关的驱动,我们只要操作设备文件便可以完成对设备大部分的操作,而另外一   … … … …   阅读更多

Linux, News, usb

Wordpress模板标签大全–制作修改模板必看

Wordpress模板标签大全-制作修改模板必看
Wordpress模板基本文件style.css 样式表文件index.php 主页文件single.php 日志单页文件page.php 页面文件archvie.php 分类和日期存档页文件searchform.php 搜索表单文件search.php 搜索页面文件comments.php 留言区域文件(包括留言列表和留言框)404.php 404错误页面header.php 网页头部文件sidebar.php 网页侧边栏文件footer.php 网页底部文件
Wordpress Header头部 PHP代码
注: 也就是位于<head   … … … …   阅读更多

News, 未分类

Curved Surfaces Ahead

Curved Surfaces Ahead
Rather than use numerous triangles to express a curved surface, 3D artists and programmers have another tool at their disposal: higher-order surfaces. These are curved primitives that have more complex mathematical descriptions, but in some cases, this added complexity is still   … … … …   阅读更多

News, Tutorial

You Down With LOD?

You Down With LOD?
Another method for avoiding excessive work is what’s called object Level of Detail, referred to as LOD. This technique is lossy, though given how it’s typically used, the loss of model detail is often imperceptible. Object models are built using several discrete LOD le   … … … …   阅读更多

Embedded GPU, News, OpenGL, Tutorial

3D Pipeline Data Flow

3D Pipeline Data Flow
In some sense, 3D chips have become physical incarnations of the pipeline, where data flows “downstream” from stage to stage. It is useful to note that most operations in the application/scene stage and the early geometry stage of the pipeline are done per vertex, w   … … … …   阅读更多

Embedded GPU, News, OpenGL, Tutorial

Deeper Into Space

Deeper Into Space
Clip Space: Similar to View Space, but the frustum is now “squished” into a unit cube, with the x and y coordinates normalized to a range between -1 and 1, and z is between 0 and 1, which simplifies clipping calculations. The “perspective divide” performs th   … … … …   阅读更多

Embedded GPU, News, OpenGL, Tutorial

Space Invaders

Space Invaders
Before we dive into pipeline details, we need to first understand the high level view of how 3D objects and 3D worlds are defined and how objects are defined, placed, located, and manipulated in larger three-dimensional spaces, or even within their own boundaries. In a 3D rendering sy   … … … …   阅读更多

Embedded GPU, News, OpenGL, Tutorial