- Hach Port Devices Drivers
- Hach Port Devices Driver Windows 7
- Hach Port Devices Driver
- Hach Port Devices Driver Tp-link
Hach DDS is a highly efficient flow monitoring service where, for a fixed monthly fee, Hach Flow will provide the equipment, resources and support you need to acquire your flow data; with DDS you finally have options with how the service is structured. A library of over 250,000 device drivers, firmware, BIOS and utilities for Windows.
If you are developing on Windows and want to connect a device for testing,then you need to install the appropriate USB driver. This pageprovides links to the web sites for several original equipment manufacturers (OEMs),where you can download the appropriate USB driver for your device.
If you're developing on Mac OS X or Linux, then you shouldn't need a USB driver.Instead read Using Hardware Devices.
To connect and debug with any of the Google Nexus devices using Windows, youneed to install the Google USB driver.
Install a USB driver
First, find the appropriate driver for your device from the OEM driverstable below.
Once you've downloaded your USB driver, follow the instructions below to install or upgrade thedriver, based on your version of Windows and whether you're installing for the first timeor upgrading an existing driver. Then see Using Hardware Devices forother important information about using an Android device fordevelopment.
Caution:You may make changes to android_winusb.inf
file found insideusb_driver
(for example, to add support for other devices),however, this will lead to security warnings when you install or upgrade thedriver. Making any other changes to the driver files may break the installationprocess.
Windows 10
To install the Android USB driver on Windows 10 for the first time, do the following:
- Connect your Android device to your computer's USB port.
- From Windows Explorer, open Computer Management.
- In the Computer Management left pane, select Device Manager.
- In the Device Manager right pane, locate and expand Portable Devices or Other Devices, depending on which one you see.
- Right-click the name of the device you connected, and then select Update Driver Software.
- In the Hardware Update wizard, select Browse my computer for driver software and click Next.
- Click Browse and then locate the USB driver folder. For example, the Google USB Driver is located in
android_sdkextrasgoogleusb_driver
. - Click Next to install the driver.
Windows 8.1
To install the Android USB driver on Windows 8.1 for the first time, do the following:
- Connect your Android device to your computer's USB port.
- Access search, as follows:
Touch screen: On your computer, swipe in from the right edge of the screen and tap Search.
Using a mouse: Point to the lower-right corner of the screen, move the mouse pointer up, and then click Search.
- In the search box, type into and then click Device Manager.
- Double-click the device category, and then double-click the device you want.
- Click the Driver tab, click Update Driver, and follow the instructions.
Windows 7
To install the Android USB driver on Windows 7 for the first time, do the following:
- Connect your Android device to your computer's USB port.
- Right-click on Computer from your desktop or Windows Explorer, and select Manage.
- Select Devices in the left pane.
- Locate and expand Other device in the right pane.
- Right-click the device name (such as Nexus S) and select Update Driver Software. This will launch the Hardware Update Wizard.
- Select Browse my computer for driver software and click Next.
- Click Browse and locate the USB driver folder. (The Google USBDriver is located in
android_sdkextrasgoogleusb_driver
.) - Click Next to install the driver.
Or, to upgrade an existing Android USB driver on Windows 7 and higher with the newdriver:
- Connect your Android device to your computer's USB port.
- Right-click on Computer from your desktop or Windows Explorer, and select Manage.
- Select Device Manager in the left pane of the Computer Management window.
- Locate and expand Android Phone in the right pane.
- Right-click on Android Composite ADB Interface and select Update Driver. This will launch the Hardware Update Wizard.
- Select Install from a list or specific location and click Next.
- Select Search for the best driver in these locations; uncheckSearch removable media; and check Include this location in thesearch.
- Click Browse and locate the USB driver folder. (The Google USBDriver is located in
android_sdkextrasgoogleusb_driver
.) - Click Next to upgrade the driver.
Get OEM drivers
OEM | Driver URL |
---|---|
Acer | http://www.acer.com/worldwide/support/ |
alcatel one touch | http://www.alcatelonetouch.com/global-en/support/ |
Asus | https://www.asus.com/support/Download-Center/ |
Blackberry | https://swdownloads.blackberry.com/Downloads/entry.do?code=4EE0932F46276313B51570F46266A608 |
Dell | http://support.dell.com/support/downloads/index.aspx?c=us&cs=19&l=en&s=dhs&~ck=anavml |
Fujitsu | http://www.fmworld.net/product/phone/sp/android/develop/ |
HTC | http://www.htc.com/support |
Huawei | http://consumer.huawei.com/en/support/index.htm |
Intel | http://www.intel.com/software/android |
Kyocera | http://www.kyocera-wireless.com/support/phone_drivers.htm |
Lenovo | http://support.lenovo.com/us/en/GlobalProductSelector |
LGE | http://www.lg.com/us/support/software-firmware |
Motorola | https://motorola-global-portal.custhelp.com/app/answers/detail/a_id/88481/ |
MTK | http://online.mediatek.com/Public%20Documents/MTK_Android_USB_Driver.zip (ZIP download) |
Samsung | http://developer.samsung.com/galaxy/others/android-usb-driver-for-windows |
Sharp | http://k-tai.sharp.co.jp/support/ |
Sony Mobile Communications | http://developer.sonymobile.com/downloads/drivers/ |
Toshiba | http://support.toshiba.com/sscontent?docId=4001814 |
Xiaomi | http://www.xiaomi.com/c/driver/index.html |
ZTE | http://support.zte.com.cn/support/news/NewsDetail.aspx?newsId=1000442 |
If you don't see a link for the manufacturer of your device here, go to the support section of the manufacturer's website and search for USB driver downloads for your device.
“Do you pine for the nice days of Minix-1.1, when men were men and wrote their own device drivers?” Linus Torvalds
In order to develop Linux device drivers, it is necessary to have an understanding of the following:
- C programming. Some in-depth knowledge of C programming is needed, like pointer usage, bit manipulating functions, etc.
- Microprocessor programming. It is necessary to know how microcomputers work internally: memory addressing, interrupts, etc. All of these concepts should be familiar to an assembler programmer.
Hach Port Devices Drivers
There are several different devices in Linux. For simplicity, this brief tutorial will only cover type char
devices loaded as modules. Kernel 2.6.x will be used (in particular, kernel 2.6.8 under Debian Sarge, which is now Debian Stable).
When you write device drivers, it’s important to make the distinction between “user space” and “kernel space”.
- Kernel space. Linux (which is a kernel) manages the machine's hardware in a simple and efficient manner, offering the user a simple and uniform programming interface. In the same way, the kernel, and in particular its device drivers, form a bridge or interface between the end-user/programmer and the hardware. Any subroutines or functions forming part of the kernel (modules and device drivers, for example) are considered to be part of kernel space.
- User space. End-user programs, like the UNIX
shell
or other GUI based applications (kpresenter
for example), are part of the user space. Obviously, these applications need to interact with the system's hardware . However, they don’t do so directly, but through the kernel supported functions.
All of this is shown in figure 1.
The kernel offers several subroutines or functions in user space, which allow the end-user application programmer to interact with the hardware. Usually, in UNIX or Linux systems, this dialogue is performed through functions or subroutines in order to read and write files. The reason for this is that in Unix devices are seen, from the point of view of the user, as files.
On the other hand, in kernel space Linux also offers several functions or subroutines to perform the low level interactions directly with the hardware, and allow the transfer of information from kernel to user space.
Usually, for each function in user space (allowing the use of devices or files), there exists an equivalent in kernel space (allowing the transfer of information from the kernel to the user and vice-versa). This is shown in Table 1, which is, at this point, empty. It will be filled when the different device drivers concepts are introduced.
Events | User functions | Kernel functions |
Load module | ||
Open device | ||
Read device | ||
Write device | ||
Close device | ||
Remove module |
Table 1. Device driver events and their associated interfacing functions in kernel space and user space.
There are also functions in kernel space which control the device or exchange information between the kernel and the hardware. Table 2 illustrates these concepts. This table will also be filled as the concepts are introduced.
Events | Kernel functions |
Read data | |
Write data |
Table 2. Device driver events and their associated functions between kernel space and the hardware device.
I’ll now show you how to develop your first Linux device driver, which will be introduced in the kernel as a module.
For this purpose I’ll write the following program in a file named nothing.c
<nothing.c> =
Since the release of kernel version 2.6.x, compiling modules has become slightly more complicated. First, you need to have a complete, compiled kernel source-code-tree. If you have a Debian Sarge system, you can follow the steps in Appendix B (towards the end of this article). In the following, I’ll assume that a kernel version 2.6.8 is being used.
Next, you need to generate a makefile. The makefile for this example, which should be named Makefile
, will be:
Unlike with previous versions of the kernel, it’s now also necessary to compile the module using the same kernel that you’re going to load and use the module with. To compile it, you can type:
This extremely simple module belongs to kernel space and will form part of it once it’s loaded.
In user space, you can load the module as root by typing the following into the command line:
# insmod nothing.ko
The insmod
command allows the installation of the module in the kernel. However, this particular module isn’t of much use.
It is possible to check that the module has been installed correctly by looking at all installed modules:
# lsmod
Finally, the module can be removed from the kernel using the command:
# rmmod nothing
By issuing the lsmod
command again, you can verify that the module is no longer in the kernel.
The summary of all this is shown in Table 3.
Events | User functions | Kernel functions |
Load module | insmod | |
Open device | ||
Read device | ||
Write device | ||
Close device | ||
Remove module | rmmod |
Table 3. Device driver events and their associated interfacing functions between kernel space and user space.
Hach Port Devices Driver Windows 7
When a module device driver is loaded into the kernel, some preliminary tasks are usually performed like resetting the device, reserving RAM, reserving interrupts, and reserving input/output ports, etc.
These tasks are performed, in kernel space, by two functions which need to be present (and explicitly declared): module_init
and module_exit
; they correspond to the user space commands insmod
and rmmod
, which are used when installing or removing a module. To sum up, the user commands insmod
and rmmod
use the kernel space functions module_init
and module_exit
.
Let’s see a practical example with the classic program Hello world
:
<hello.c> =
The actual functions hello_init
and hello_exit
can be given any name desired. However, in order for them to be identified as the corresponding loading and removing functions, they have to be passed as parameters to the functions module_init
and module_exit
.
The printk
function has also been introduced. It is very similar to the well known printf
apart from the fact that it only works inside the kernel. The <1>
symbol shows the high priority of the message (low number). In this way, besides getting the message in the kernel system log files, you should also receive this message in the system console.
This module can be compiled using the same command as before, after adding its name into the Makefile.
In the rest of the article, I have left the Makefiles as an exercise for the reader. A complete Makefile that will compile all of the modules of this tutorial is shown in Appendix A.
When the module is loaded or removed, the messages that were written in the printk
statement will be displayed in the system console. If these messages do not appear in the console, you can view them by issuing the dmesg
command or by looking at the system log file with cat /var/log/syslog
.
Table 4 shows these two new functions.
Events | User functions | Kernel functions |
Load module | insmod | module_init() |
Open device | ||
Read device | ||
Write device | ||
Close device | ||
Remove module | rmmod | module_exit() |
Table 4. Device driver events and their associated interfacing functions between kernel space and user space.
I’ll now show how to build a complete device driver: memory.c
. This device will allow a character to be read from or written into it. This device, while normally not very useful, provides a very illustrative example since it is a complete driver; it's also easy to implement, since it doesn’t interface to a real hardware device (besides the computer itself).
To develop this driver, several new #include
statements which appear frequently in device drivers need to be added:
This new function is now shown in Table 5.
Events | User functions | Kernel functions |
Load module | insmod | module_init() |
Open device | fopen | file_operations: open |
Read device | ||
Write device | ||
Close device | ||
Remove module | rmmod | module_exit() |
Table 5. Device driver events and their associated interfacing functions between kernel space and user space.
The corresponding function for closing a file in user space (fclose
) is the release:
member of the file_operations
structure in the call to register_chrdev
. In this particular case, it is the function memory_release
, which has as arguments an inode
structure and a file
structure, just like before.
When a file is closed, it’s usually necessary to free the used memory and any variables related to the opening of the device. But, once again, due to the simplicity of this example, none of these operations are performed.
The memory_release
function is shown below:
The reading position in the file (f_pos
) is also changed. If the position is at the beginning of the file, it is increased by one and the number of bytes that have been properly read is given as a return value, 1
. If not at the beginning of the file, an end of file (0
) is returned since the file only stores one byte.
In Table 7 this new function has been added.
Events | User functions | Kernel functions |
Load module | insmod | module_init() |
Open device | fopen | file_operations: open |
Read device | fread | file_operations: read |
Write device | ||
Close device | fclose | file_operations: release |
Remove modules | rmmod | module_exit() |
Table 7. Device driver events and their associated interfacing functions between kernel space and user space.
To write to a device with the user function fwrite
or similar, the member write:
of the file_operations
structure is used in the call to register_chrdev
. It is the function memory_write
, in this particular example, which has the following as arguments: a type file structure; buf
, a buffer in which the user space function (fwrite
) will write; count
, a counter with the number of bytes to transfer, which has the same values as the usual counter in the user space function (fwrite
); and finally, f_pos
, the position of where to start writing in the file.
The stored character will not change until it is overwritten or the module is removed.
I’ll now proceed by modifying the driver that I just created to develop one that does a real task on a real device. I’ll use the simple and ubiquitous computer parallel port and the driver will be called parlelport
.

Hach Port Devices Driver Tp-link
The parallel port is effectively a device that allows the input and output of digital information. More specifically it has a female D-25 connector with twenty-five pins. Internally, from the point of view of the CPU, it uses three bytes of memory. In a PC, the base address (the one from the first byte of the device) is usually 0x378
. In this basic example, I’ll use just the first byte, which consists entirely of digital outputs.
The connection of the above-mentioned byte with the external connector pins is shown in figure 2.
The previous memory_init
function needs modification—changing the RAM memory allocation for the reservation of the memory address of the parallel port (0x378
). To achieve this, use the function for checking the availability of a memory region (check_region
), and the function to reserve the memory region for this device (request_region
). Both have as arguments the base address of the memory region and its length. The request_region
function also accepts a string which defines the module.
In this case, a real device reading action needs to be added to allow the transfer of this information to user space. The inb
function achieves this; its arguments are the address of the parallel port and it returns the content of the port.
Table 10 summarizes this new function.

Events | Kernel functions |
Read data | inb |
Write data | outb |
Device driver events and their associated functions between kernel space and the hardware device.
I’ll proceed by looking at the whole code of the parlelport
module. You have to replace the word memory
for the word parlelport
throughout the code for the memory
module. The final result is shown below:
<parlelport.c> =
Initial section
In the initial section of the driver a different major number
is used (61
). Also, the global variable memory_buffer
is changed to port
and two more #include
lines are added: ioport.h
and io.h
.
Closing the device as a file
Again, the match is perfect.

Writing to the device
It is analogous to the memory
one except for writing to a device.