Newly bought Arduino Development Board USB to serial port using the CH340 chip, on Mac OS X Yosemite after the normal installation of the driver, the Arduino IDE port did not find the corresponding device, using the following methods can be used after the USB to serial debugging and burning program.1. Installing the CH
Put it in front: although it is now a USB simulator, but there are still some compatriots using the serial port Weifu simulator, so write down the following process. Hope to help.
I don't need to talk about installing software.
Step 1: Double-click Open Software, file | create a project, as shown in figure
Select the path and file for saving the project (including the source file and some header files)
1, turn on USB to the serial port installation program;
2, according to the prompts after the installation will eject "drive preinstallation Success" tips;
3, if you open the Device Manager to see the port to find the corresponding device icon or display a yellow exclamation point, it should b
1. Kernel configuration
Device Drivers --->
[*] USB support --->
USB serial converter support --->
2. Compile the kernel. Load the kernel on the embedded board. after entering the kernel, check whether the corresponding device node is generated.
# Ls/dev/ttyusb0
If you do not have the above nodes, manually create
# Mknod/dev/ttyusb0 C 188 0
3. Write a program
Now do a hot plug event on the USB port on the embedded platform.
After my present analysis summary currently has the following method: 1, the regular examination/proc/scsi/scsi file
This method can only be on the PC, but is not available on the embedded platform. 2,netlink Way
Use NetLink.
#include
the test, if is uses the datagram way SOCK_DGRAM creates the
; // process the transmitter information; used for low-speed, full-speed devices, and high-speed hubint ttport; // The device port unsigned int toggle located in the TT hub [2]; // occupies one position for each endpoint, indicates the direction of the endpoint ([0] = In, [1] = out) struct usb_device * parent; // The upper-level hub pointer struct usb_bus * bus; // The bus pointer struct usb_host_endpoint e
forcibly close the process that occupies the port:# Netstat-tlnpa | grep 44444tcp6 0 0 10.58.242.18:44444 :::* LISTEN 25049/javaThe port query result is like the above format, then we can write the following script according to this format:pinfo= ' Netstat-tlnpa | grep 44444 ' pid= ' awk ' {split ("' $pinfo '", Array, "/");p rint array[
I have to say, Photoshop pen tool is really a very powerful tool, because it can be used to create pictures of lifelike images. Today's small series to share with you is to use PS to draw a realistic USB cable tutorial.
1th Step
Open a new document 1000x1000 Pixel, resolution: at the DPI. This document will use about 60 floors. Organization is the key. I've created 4 folders to organize my layers. See the
After the hub is working properly, the master controller regularly queries whether the hub is interrupted. When a device is inserted or removed on the hub port, the hub sends a urb request to the master controller, that is, to tell the master controller about the change of the hub port, this is done through the urb request. After the host finishes processing the urb, it will call the completion function pro
Execute PS-A | grep khubd on the terminal, and the khubd process is displayed. This is the hub daemon process. Our device is inserted into the USB interface (whether it is inserted with the hub, after the sub-hub), the daemon detects the issue and then notifies the master controller of the interruption. The master controller then calls the hub detection function to parse the device.
After the hub driver is
I. OverviewBorrow a wiki (http://wiki.osdev.org/%228042%22_PS/2_Controller) diagram:The yellow one is Ps/2 KBC (KeyBoard Controller). As can be seen here, KBC and keyboard (hereafter referred to as KBD) are two completely different things, KBC is a simple chip,kbd is a common external device that we often use.You can also see that the PS/
PS/2 Overview
PS/2 is divided into master and slave devices. The master device uses female sockets and male plug from the device. currently, the widely used PS/2 keyboard and mouse work in the device mode.
of the process (directory)--"for the benefit of other virus intrusion view illegal process." Stat Description:D a process that cannot be interruptedThe process of R run stateS Process in sleep stateT pause, Stop the processZ Zombie Process+ Foreground ProcessN Low-priority processesMemory paging is locked in memoryS master ProcessL Multithreading ProcessView network StatusNetstat (view TCP/IP communication status)Listening port: For other machines to
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.