About USB Data Link Cable API

The text on this webpage is licensed under the Creative Commons Attribution-Sharealike 3.0 Unported License (CC-BY-SA) and  GNU Free Documentation License

About USB Data Link Cable Application Programming Interface (API)

2013-10-17

 

KEYUSB Data Link Cable, USB Data Transfer Cable, USB File Transmitter Cable, USB PC to PC Data Link Adapter Cable, USB Data Link Cable API, USB easy cable, SMART KM LINK keyboard and mouse sharing, USB Data Cable, USB shared cable.

1、Overview

Current computer 's USB port has become commonplace , USB2.0 theoretical transfer rate of up to 480Mbps, ie 60MB/s, USB3.0 theoretical transfer rate of up to 5Gbps, ie 625MB/s. Currently the USB port is mainly used for U disk, USB hard disk, USB keyboard, USB mouse, USB camera , USB CD-ROM、USB DVD drive, etc.

In fact, with a USB data link cable using the USB port can also achieve USB-based internal and external network isolation,USB pc to pc communication, USB point-to-point communications, USB point-to-multipoint communications, USB-based small-scale distributed server, USB file transfer, USB CD-ROM sharing, HD data sharing, HD data sync, network sharing, KM(key/mouse) sharing, clipboard sharing, file sharing,etc.

USB data link cable also called USB transfer cable, USB easy cable, USB shared cable, USB connection cable, USB interconnection cable, USB copy cable, USB networking cable, etc.

Typically, USB data link cable are configured dedicated software. These cables are not providing application programming interface (API), with them developers can not implement their own applications, for example: internal and external network isolation, USB communication, USB file transfer, USB data sharing, USB device sharing, etc. For the needs of developers, Shijiazhuang ZhongZhi Electronic Technology Development Center has developed a USB data link cable application programming interface (API), and provide support for developers to develop their applications.

USB data link cable API provide usb host to usb host transparent transmission, users can develop a variety of itself with its. Such as: encryption transmission, the internal and external network isolation etc.. For the internal and external network isolation , two PC data transmitting and receiving totally self control, and has high security, akin to physical isolation completely, but more convenient to use than the physical isolation.

A friend in need, please contact, tel:86-311-87024917, mobile:86-13803113171, QQ:1561724180, email: kaifaliu@yahoo.com  1561724180@qq.com.


2ZhongZhi USB Data Link API

/*****************************************************************************
Filename: zzUsbAPI.h
Function: USB Data Link Cable API(Application Programming Interface).
                Ver1.1  2013.7.26
Editor:   LiuYaoKai
Date:     2012.6.28 2013.7.26
               Copyright(C) by LiuYaoKai 86-13803113171 86-311-87024917
******************************************************************************/
 
int u2u_init()
DESCRIPTION:
    Initialization API, get the device ID and packet size. maximum packet size is 64K.
Return Values:
    See the API defined constants related series
 
BOOL u2u_Open() 
DESCRIPTION:
    Open the device of USB data link cable.
Return Values:
    True     success 
    False    failure
 
BOOL u2u_RecvData(LPBYTE lpBuf, int& len, int& ret)
DESCRIPTION:
    Receive data from usb.
Parameters:
    lpBuf
        [out]Pointer to the buffer that receives the data from the USB port. The size of the receive buffer should be greater than or equal packet size.
    Len
        [in]Specifies the number of bytes to be receive from the USB port. 
    Ret
        [out]Return an error code or receive buffer remaining number of 
Return Values:
    True    success 
    False   failure, cause see ret return value.
 
BOOL u2u_SendData(LPBYTE lpData, int len, int& ret)
DESCRIPTION:
    Transmit data from usb port
Parameters:
    lpBuf
        [in]Transmit data buffer pointer. the transmit buffer size should be less than equal to the packet size. If lpBuf = NULL, the function returns the remaining unprocessed number of packets in the transmit buffer.
    Len
        [in] Specifies Length of data want to send(in byte).
    Ret 
        [out]Return an error code or receive buffer remaining number of unprocessed packets.
Return Values:
    True    Success 
    False   Failure, cause see ret return value.
 
void u2u_Close()
DESCRIPTION:
    Close USB device of data link cable.
 
void u2u_Exit()
DESCRIPTION:
    Unload API. Usb device of data link cable should be closed, then perform this operation. 
 
DWORD u2u_getLastErr()
DESCRIPTION:
    Get the last error code of api operation error 
 
void u2u_FreeTxRxBuf()
DESCRIPTION:
    Empty the transmit and receive buffers

3AboutUSBdata linkcable

USB data link cable and ordinary USB cable are different, there is a chip in data link cable middle. Because the USB bus system can have only one host, usually the computer's USB port are the host interface, so you can not simply connect them together. A transformation is needed between PC USB port and PC USB port, the chip in the middle of  cable is to complete this conversion, this has a USB data link cable generation. There is a small pimple in the middle of a USB data link cable, or one end of USB data link cable is similar to the U disk, and some cable itself can also be used as U disk.
1 USB cable linknetworking cable = 2 net card + 1 net wire, and the rate is much faster than the network card, and can isolate viruses, network attacks, very safe.

   
USB data link cable applications:
  • USB point-point communication
  • USB point-to-multipoint communication
  • Internal and external network isolation
  • Small distributed server
  • High speed transfer files or copy files between two computers
  • Synchronize files or documents between two computers
  • Sharing IP Internet (without card, through another computer on the Internet)
  • Shared device(For example: keyboard, mouse,CD-ROM,DVD,etc.)
  • USB file transfer, USB data transfer
.......

About USB Data Link Cable API的更多相关文章

  1. 谈谈网络协议 - 数据链路层( Data Link)

    数据链路层( Data Link) 链路:从1个节点到相邻节点的一段物理线路(有线或无线),中间没有其他交换节点 案例 上图可以看出,总共由5条链路组成: 第1条:计算机0 => 路由器0,使用 ...

  2. EF Code First 学习笔记:约定配置 Data Annotations+Fluent API

    要更改EF中的默认配置有两个方法,一个是用Data Annotations(在命名空间System.ComponentModel.DataAnnotations;),直接作用于类的属性上面;还有一个就 ...

  3. USB DATA Toggle

    For bulk and interrupt transfers, the data toggle resets <0> only on Set Configuration, Set In ...

  4. Inside a low budget consumer hardware espionage implant

    The following analysis was performed on a S8 data line locator which replied to the hidden SMS comma ...

  5. Use API to retrieve data from internet

    Reference: Working with APIs Many big companies and organizations provide API for us to retrieve dat ...

  6. View and Data API Tips : Conversion between DbId and node

    By Daniel Du In View and Data client side API, The assets in the Autodesk Viewer have an object tree ...

  7. Sending data to USB printer in C#?

    using System; using System.Drawing; using System.Drawing.Printing; using System.IO; using System.Run ...

  8. 翻译Android USB HOST API

    翻译Android USB HOST API 源代码地址:http://developer.android.com/guide/topics/connectivity/usb/host.html 译者 ...

  9. (Solved) Nexiq USB link with CAT ET: connection error 149

    User issue: I'm using a Nexiq USB link with CAT ET 2011b and I need some help with connection settin ...

随机推荐

  1. [Leetcode][016] 3Sum Closest (Java)

    题目: https://leetcode.com/problems/3sum-closest/ [标签]Array; Two Pointers [个人分析] 这道题和它的姊妹题 3Sum 非常类似, ...

  2. python 登陆一个网站

    今天想用python写一个登陆的脚本,搜了一下,网上挺多的,看了一些后写了个登陆虎扑论坛的脚本. 原理: 只要在发送http请求时,带上含有正常登陆的cookie就可以了. 1.首先我们要先了解coo ...

  3. php 之 数据访问 增删改查练习题

    练习题内容: 一.查看新闻页面-----主页面: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" ...

  4. 《图解CSS3》——笔记(二)

    作者:大漠 勘误:http://www.w3cplus.com/book-comment.html 2014年7月15日15:58:11 第二章  CSS3选择器 2.1  认识CSS选择器 2.1. ...

  5. 导入IP安全策略图解

    导入IP安全策略图解 点击“开始菜单”→点击“运行”→输入gpedit.msc并回车 →点击“计算机配置”→“windows设置”→“安全设置”,用鼠标右键点击“IP安全策略”,在弹出菜单中点击“所有 ...

  6. python 如何重新加载有修改过的模块(module)

    写 Python 程序的时候,一边写模块一边调试.调试是在 Python 自身的命令行终端进行的.但当对模块里的代码进行修改后,在原调试终端上执行到模块中新修改上去的内容. 我之前是一直用退出再重新进 ...

  7. pyqt5消息框QMessageBox

    QMessageBox消息框有以下几种类型: QMessageBox.information 信息框   QMessageBox.question 问答框   QMessageBox.warning ...

  8. linux内核学习之一:环境搭建--安装Debian7.3

    本系列文章假设读者已对linux有一定的了解,其实学习linux内核不需要有很深的关于linux的知识,只需要了解以下内容:linux基础知识及基本shell命令:现代操作系统的基本概念:C语言和gc ...

  9. 创建一个自己的动态HTML-备

    -.获取元素 改变属性 通过id来获取HTML元素 通过标签名找到HTML元素 通过类名来找到HTML元素 举个

  10. [每日一题jQuery] jQuery选择器总结:进一步过滤、同级操作、后代操作

    jQuery选择器继承自CSS的风格,可以通过jQuery选择器找出特定的DOM元素,在此基础上对该元素做相应处理.jQuery不仅支持简单的标签选择器.类选择器.id选择器,还针对表单状态.子元素. ...