Buffing Blocks

Buffing Blocks
Buffing Blocks

Interaction with FTDI

What FTDI chip?

FTDI chips are chips that are developed by International Future devices Technology (href = "http://www.ftdichip.com/" http://www.ftdichip.com/>).

FTDI chips are used in USB adapters connect the hardware FIFO RS232 and parallel interfaces. The most common use is the USB-2-COM interface.

They are used in:

  1. Mobile phone cables.
    Mobile phones have RS232 or UART output, and the PC can have only one USB port, the chip converts RS232 to USB. And the driver is installed on the PC creates the virtual device (usually a virtual COM port), which is used for communication.
  2. Service Boxes
    These tools are used by service centers and repair telephone service car repair. These are the devices that are connected to the PC via USB, and - on the other side - for different materials.
  3. Hardware Debuggers (JTAG)
  4. Any other device to be connected through USB to a PC and has the RS232 port on the other side.

How do I know if the device is based on FTDI?

Well, you can disassemble it and read the labels on the chips, but it is not the way you want. There are more humane method.

There are original drivers on the FTDI site. If you look at the files that are included in the driver package there will be such a set file:

So if your camera has one of these files in the list of drivers it is based on FTDI.

To see the drivers for the device:

  1. Go to Device Manager
  2. Select the device
  3. Open the context menu and select Properties
  4. Switch to the driver and click Driver Details.

For example:

This device FTD2XX.dll the pilot has the file list. And the condition name is FTDI. This device is based on FTDI. Some manufacturers may rename the driver (. Sys), but information Copyright reveal the manufacturer of the actual driver.

How to interact with it?

Fortunately, FTDI provides the API. There is a generic set of APIs that can be used with all FTDI chips.

API is provided through FTD2XX.dll. This is a DLL that interacts with FTD2XX.SYS driver.

There is a header file and library file in the FTDI driver package: ftd2xx.h ftd2xx.lib and files.

The. Lib is the COFF format, so it can be used in Visual Studio without any problems.

FTDI API usage

The API set has two interfaces "classical" (functions "FT_" prefix) and "Win32 API "(functions" FT_W32_ "prefix).

"Classic" is cross-platform interface.

"Win32 API" is a set of Windows functions only. Windows API is very similar, which is used to work with serial ports. So porting the code for functions FTDI is quite simple.

The main functions are:

FT_W32_CreateFile () / FT_OpenEx ()
Open the handle to the specified connection FTDI Chip

FT_W32_WriteFile () / FT_Write ()
Sends data on the virtual COM port.

FT_W32_ReadFile () / FT_Read ()
Bed data from virtual COM port

FT_W32_CloseHandle () / FT_Close ()
Closes connection.

There are functions to configure the port:

FT_SetBaudRate ()
Sets the transmission speed for the connection

FT_SetDataCharacteristics ()
Sets the number of bits in byte, parity, etc.

FT_ClrDtr ()
Clear the DTR signal on the virtual COM port

FT_SetDtr ()
Set DTR on the virtual COM port

FT_ClrRts ()
Clear the RTS signal on the virtual COM port

FT_SetRts ()
RTS goes on the virtual COM port

etc.

For Windows there is no limitation on the use of Win32 API functions and classical together. Thus, you can combine.

Opening the virtual serial port

There are several ways to open the FTDI device: by index, by description, by serial number, by location. These types of information can be used to open the device via FT_W32_CreateFile ();.

For information on devices connected FT_ListDevices () should be used.

Example:

ftStatus FT_ListDevices = (0, buf, FT_LIST_BY_INDEX | FT_OPEN_BY_SERIAL_NUMBER);
if (= ftStatus! FT_OK) / / Returns the first production aircraft
{
printf ("Can not to obtain the device name FTDI ");
return 0;
}

ftHandle FT_W32_CreateFile = (Buf,
GENERIC_READ | GENERIC_WRITE,
0,
0,
OPEN_EXISTING,
FILE_ATTRIBUTE_NORMAL | FILE_FLAG_OVERLAPPED | FT_OPEN_BY_SERIAL_NUMBER,
0) / / Open the device by serial number

There are several functions that can provide additional information on the connected devices:

FT_GetDeviceInfoList (), FT_CreateDeviceInfoList (), FT_GetDeviceInfoDetail (), etc.

Setting up the port

The code to set the parameters typical serial port to 115200 bps, 8 bits per byte, 1 stop bit and no parity should look like this:

ftStatus = FT_SetBaudRate (FtHandle, FT_BAUD_115200);

ftStatus FT_SetDataCharacteristics = (ftHandle,
FT_BITS_8,
FT_STOP_BITS_1,
FT_PARITY_NONE);

ftStatus FT_ClrDtr = (ftHandle);
ftStatus FT_SetDtr = (ftHandle);

Also there are functions to configure the port in the style of Windows:

FT_W32_GetCommState (), FT_W32_SetCommState (), FT_W32_SetupComm (), etc.

Reading and writing

The use of functions FT_W32_WriteFile () and FT_W32_ReadFile () is similar to WriteFile () and ReadFile (). If the handle is open OVERLAPPED mode, the functions are asynchronous, otherwise they are synchronous. Thus reading and writing can be done in a standard way:

DWORD Written = 0;
unsigned char cmd []={' A ',' T ',' r ',' n '};
ftStatus FT_W32_WriteFile = (ftHandle, cmd, sizeof (cmd), and writing & OVL);
if (WaitForSingleObject (Ovl.hEvent, INFINITE)! = WAIT_OBJECT_0)
throw std:: exception ("Error writing waiting to complete ");
unsigned char buf [250];
ftStatus FT_W32_ReadFile = (ftHandle, Buf, sizeof (Buf), & TotalRead, & OVL);
if (WaitForSingleObject (Ovl.hEvent, 1000)! = WAIT_OBJECT_0)
throw std:: exception ("Error waiting read operation");

EEPROM programming

There are also APIs that allow you to program FTDI Chip. FTDI Chip EEPROM within it. EEPROM containing the block parameters and chip block the user area. You can read and write two of these blocks.

Warning! Programming EEPROM is dangerous driving. Writing invalid data can cause incorrect work of the unit. You do so at your own risk.

API

The API for managing block user area:

FT_EE_UASize ()
Gets the size of the user.

FT_EE_UAWrite ()
Write data to the Space User.

FT_EE_UARead ()
Read Data User Area

Playing area is quite simple:

UASize DWORD = 0;
FT_EE_UASize (ftHandle, & UASize);

UCHAR * pUAData = new UCHAR [UASize];
SizeRead DWORD = 0;
ftStatus FT_EE_UARead = (ftHandle, pUAData, UASize, & SizeRead);

The API to manage the entire EEPROM:

FT_EE_Program ()
Writing to the EEPROM structure special (FT_PROGRAM_DATA), which contains the chip

FT_EE_ProgramEx ()
Writing to the EEPROM special structure (FT_PROGRAM_DATA) which contains the chip, but USB String descriptors are transmitted separately from the structure FT_PROGRAM_DATA

FT_WriteEE ()
Written EEPROM data directly.

FT_EE_Read ()
FT_PROGRAM_DATA bed structure from data EEPROM.

FT_EE_ReadEx ()
Bed FT_PROGRAM_DATA the structure of the EEPROM data and USB String descriptors are transmitted separately

FT_ReadEE ()
Reads EEPROM data directly

FT_EraseEE ()
Erase EEPROM Contents

Dumping EEPROM

Dumping EEPROM is a little tricky, because some chips have internal EEPROM, and some may have an external.

Quote:

The FT2232C supports 93C46 (64 x 16 bit), 93C56 (128 x 16 bit) and 93C66 (256 x 16 bits) EEPROM.

So there may be different sizes.

Here is an example of dumping for 64 x 16 bit EEPROM:

EEPromData WORD [0x40] = {0};
DWORD offset = 0;
while (offset <(sizeof (EEPromData) / sizeof (WORD)))
{
MOT DataChunk = 0;
ftStatus FT_ReadEE = (ftHandle, Offset & EEPromData [offset]);
if (= ftStatus! FT_OK)
break;
Offset + +;
}

Here's a tip seconds. If you look at the function declaration for FT_ReadEE:

FTD2XX_API
FT_STATUS WINAPI FT_ReadEE (
FT_HANDLE ftHandle,
DWORD dwWordOffset,
LPWORD lpwValue
);

dwWordOffset argument is actually the index of the word value to EEPROM, not the shift in the meaning of "data gap".

The data in the block parameters

The parameter block contains VID and PID of USB device, so if it has changed, the device will be treated like any other device. The default values ​​of the VID and PID for FTDI chip are 0x0403 0x6001 and consequently, these values ​​are overwritten by the manufacturers devices.

The parameter block contains the strings from the product description (USB String descriptors): Manufacturer, manufacturer's ID and Description. Also there is the device number series, which can be modified by EEPROM programming.

Attention again! Changing the setting the EEPROM can also cause failure of the software, if invalid data is written into the EEPROM.

Download the sample source code for FTDI interaction.

Connections

Information on the FTDI chip cards can be found in part of FTDI official website:
http://www.ftdichip.com/Documents/DataSheets.htm

Additional information about the API can be found in FTD2XX Programming Manual:
http://www.ftdichip.com/Documents/ProgramGuides/D2XXPG34.pdf

Driver Package:
http://www.ftdichip.com/Drivers/D2XX.htm

2x 3-Way Buffer Buffing Block Nail Art Acrylic UV D42
2x 3-Way Buffer Buffing Block Nail Art Acrylic UV D42
Paypal   US $.99
3PC Nail Art Buffer Buffing Sanding Files Block Crescent
3PC Nail Art Buffer Buffing Sanding Files Block Crescent
Paypal   US $1.46
3PC Nail Art Buffer Buffing Sanding Files Block Crescent
3PC Nail Art Buffer Buffing Sanding Files Block Crescent
Paypal   US $1.46
3PC Nail Art Buffer Buffing Sanding Files Block Crescent
3PC Nail Art Buffer Buffing Sanding Files Block Crescent
Paypal   US $1.46
Nail Art Buffer Buffing Sanding Files Block Pedicure Manicure Care DIY 4 colors
Nail Art Buffer Buffing Sanding Files Block Pedicure Manicure Care DIY 4 colors
Paypal   US $1.69
Nail Art Buffer Buffing Sanding Files Block Pedicure Manicure Care DIY 4 colors
Nail Art Buffer Buffing Sanding Files Block Pedicure Manicure Care DIY 4 colors
Paypal   US $1.69
Nail Art Buffer Buffing Sanding Files Block Pedicure Manicure Care DIY 4 colors
Nail Art Buffer Buffing Sanding Files Block Pedicure Manicure Care DIY 4 colors
Paypal   US $1.69
Nail Art Buffer Buffing Sanding Files Block Pedicure Manicure Care DIY 4 colors
Nail Art Buffer Buffing Sanding Files Block Pedicure Manicure Care DIY 4 colors
Paypal   US $1.69
3PC Nail Art Buffer Buffing Sanding Files Block Crescent
3PC Nail Art Buffer Buffing Sanding Files Block Crescent
Paypal   US $.60
1X Nail Art Polish Buffer Buffing Block Sanding Tool
1X Nail Art Polish Buffer Buffing Block Sanding Tool
Paypal   US $1.29
3 Ways Nail Art Buffer Buffing Sanding Block File UV Gel Acrylic Nails Manicure
3 Ways Nail Art Buffer Buffing Sanding Block File UV Gel Acrylic Nails Manicure
Paypal   US $2.84
New 4 Way Shiner Nail Polish Buffer Buffing Block File
New 4 Way Shiner Nail Polish Buffer Buffing Block File
Paypal   US $3.19
1PCS - 4X3 WAY SHINER/ BUFFING BLOCK-NAIL FILE / BUFFER
1PCS - 4X3 WAY SHINER/ BUFFING BLOCK-NAIL FILE / BUFFER
Paypal   US $3.90
Set of 12 New 2 WAYS nail buffing Buffer Shiner blocks
Set of 12 New 2 WAYS nail buffing Buffer Shiner blocks
Paypal   US $7.75
All-in-One 4 Steps Nail Art Polish Buffing Block File Remove Smooth Shine Tool
All-in-One 4 Steps Nail Art Polish Buffing Block File Remove Smooth Shine Tool
Paypal   US $2.99
10x 3 Ways Manicure Nail Care Art Tips Shiner Buffing Block Files Sanding Buffer
10x 3 Ways Manicure Nail Care Art Tips Shiner Buffing Block Files Sanding Buffer
Paypal   US $7.70
5PCS NAIL ART MANICURE 2-SIDE BUFFING SANDING FILES BLOCK BUFFER TOOL SHINER
5PCS NAIL ART MANICURE 2-SIDE BUFFING SANDING FILES BLOCK BUFFER TOOL SHINER
Paypal   US $2.12
10PCS NAIL ART MANICURE 2-SIDE BUFFING SANDING FILES BLOCK BUFFER TOOL SHINER
10PCS NAIL ART MANICURE 2-SIDE BUFFING SANDING FILES BLOCK BUFFER TOOL SHINER
Paypal   US $4.22
NEW PRO WHITE SANDING FILE BUFFER BUFFING GRIT BLOCK NAIL ART TOOL 5X WHITE
NEW PRO WHITE SANDING FILE BUFFER BUFFING GRIT BLOCK NAIL ART TOOL 5X WHITE
Paypal   US $2.24
4 x PINK Buffer Buffing Sanding Files Block Acrylic Nail Art Tips Manicur D24
4 x PINK Buffer Buffing Sanding Files Block Acrylic Nail Art Tips Manicur D24
Paypal   US $.99
NEW PRO WHITE SANDING FILE BUFFER BUFFING GRIT BLOCK NAIL ART TOOL 5X WHITE
NEW PRO WHITE SANDING FILE BUFFER BUFFING GRIT BLOCK NAIL ART TOOL 5X WHITE
Paypal   US $1.50
5X SANDING FILE 2-SIDED BUFFING NAIL ART BLOCK BUFFER STICK TOOL MANICURE
5X SANDING FILE 2-SIDED BUFFING NAIL ART BLOCK BUFFER STICK TOOL MANICURE
Paypal   US $1.60
NEW PRO WHITE SANDING FILE BUFFER BUFFING GRIT BLOCK NAIL ART TOOL 10X WHITE
NEW PRO WHITE SANDING FILE BUFFER BUFFING GRIT BLOCK NAIL ART TOOL 10X WHITE
Paypal   US $2.97
5 X Nail Art 4 Way Shiner Buffer Buffing Block Files
5 X Nail Art 4 Way Shiner Buffer Buffing Block Files
Paypal   US $1.00
10 White Acrylic Nail Art Sanding File Buffing Buffer Block
10 White Acrylic Nail Art Sanding File Buffing Buffer Block
Paypal   US $3.89
View Page:   1  2  3  4

___________________________________________________________________________________
[phpzon]Buffing Blocks, 10[/phpzon]


FLOWERY D-Files Disposable Buffing Blocks (Pack of 24) (Model: DFBB1-24)


FLOWERY D-Files Disposable Buffing Blocks (Pack of 24) (Model: DFBB1-24)


$5.95


180/180 grit blue buffing blocks designed to smooth and shape nails. Pre-cut to 1” X 1.5” size for convenience and packaged in a reusable polybag for easy storage.

SUPER NAIL Buffing Cream 0.5 oz (Pack of 3)


SUPER NAIL Buffing Cream 0.5 oz (Pack of 3)


$8.95


Use Buffing Cream on natural nails for a rapid, brilliant shine.

FLOWERY Nail Buffing Cream 3/4 oz with Free Buffing Stick (Model:NBC)


FLOWERY Nail Buffing Cream 3/4 oz with Free Buffing Stick (Model:NBC)


$5.95


This 3/4 oz tube provides the natural nail with a deeper, richer, longer-lasting shine. Each pack includes a free buffing stick.

Peter Thomas Roth Blemish Buffing Beads 8.5oz


Peter Thomas Roth Blemish Buffing Beads 8.5oz


$36


An ultra gentle anti-acne version of Botanical Buffing Beads scrub that may be used on the face and body for the treatment and control of acne. Salicylic acid clears up acne blemishes while a glycolic acid complex and oil absorbing ingredients help produce flawless, clear skin. Soft, ultra-fine jojoba beads work in two ways. First, they help exfoliate surface dead skin cells without irritation, allowing acne treatment products to penetrate better. Then, the ultra-fine jojoba beads help open clogged pores and emulsify the sebum that contributes to blackheads and whiteheads.Benefits:Kills acne causing bacteria.Contains Glycolic Acid Complex.Cutting edge oil-reducing ingredients.Jojoba beads.Excellent for daily use or use as often as needed.For oily, combination or problem skin types.

Peter Thomas Roth AntiAging Buffing Beads 8.5oz


Peter Thomas Roth AntiAging Buffing Beads 8.5oz


$36


Allure Best of Beauty 2010Category: Best of Body – ScrubAn ultra gentle anti-aging version of Botanical Buffing Beads scrub that may be used on the face and body. Infused with the same effective ingredients as the Peter Thomas Roth Anti-Aging Cleansing Gel such as a glycolic acid complex, salicylic acid and botanical brighteners to help produce beautiful fresh, youthful looking skin. Ultra-fine jojoba beads work in two ways. First, they help exfoliate surface dead skin cells without irritation, allowing active treatment products to penetrate better. Then, the ultra-fine jojoba beads help refine skin texture and smooth out fine lines.Benefits:Anti-aging technology.Rejuvenates, clarifies, brightens with exfoliating jojoba beads.For face and body.For all skin types except ultra-sensitive.

Peter Thomas Roth Botanical Buffing Beads 8.5oz


Peter Thomas Roth Botanical Buffing Beads 8.5oz


$36


I'm an exfoliating junkie. This buffer is gentle enough that I know I'm not damaging my skin, but works so well at getting the job done that my skin is left feeling rejuvenated. - AngelicaAn ultra gentle, clean Jojoba bead scrub for all skin types that contains fine jojoba beads and botanical nutrients that work in two ways. First, they help exfoliate surface dead skin cells, allowing active treatment products and moisturizers to penetrate better when applied. Then, the ultra-fine jojoba beads help open clogged pores and emulsify the sebum that contributes to blackheads and whiteheads. Because these unique buffing beads gradually dissolve with continued contact with the skin's surface, the risk of irritation is minimal, leaving the skin smooth and refreshed.

Caudalie Gentle Buffing Cream 2oz


Caudalie Gentle Buffing Cream 2oz


$35


This rich scrub eliminates impurities, dead skin cells and excess oil while stimulating cellular renewal. Your complexion's radiance is gently restored and your skin is soft and clean.

Peter Thomas Roth Botanical Buffing Beads 32 oz


Peter Thomas Roth Botanical Buffing Beads 32 oz


$78


I'm an exfoliating junkie. This buffer is gentle enough that I know I'm not damaging my skin, but works so well at getting the job done that my skin is left feeling rejuvenated. - AngelicaAn ultra gentle, clean Jojoba bead scrub for all skin types that contains fine jojoba beads and botanical nutrients that work in two ways. First, they help exfoliate surface dead skin cells, allowing active treatment products and moisturizers to penetrate better when applied. Then, the ultra-fine jojoba beads help open clogged pores and emulsify the sebum that contributes to blackheads and whiteheads. Because these unique buffing beads gradually dissolve with continued contact with the skin's surface, the risk of irritation is minimal, leaving the skin smooth and refreshed.

FLOWERY Blue Max 4-Way Buffing Block (Model: 4WB-1-1)


FLOWERY Blue Max 4-Way Buffing Block (Model: 4WB-1-1)


$3.95


Easy-to-hold block that shapes, smoothes and buffs all types of nails to a brilliant shine.

SUPERNAIL Buffer 5” (Model: SN903)


SUPERNAIL Buffer 5” (Model: SN903)


$8.39


Used with Supernail Buffing Cream to polish nails. 5 Inches.

Nails Care Collection-Buffing Block

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • NewsVine
  • Reddit
  • StumbleUpon
  • Google Bookmarks
  • Yahoo! Buzz
  • Twitter
  • Technorati
  • Live
  • LinkedIn
  • MySpace
This entry was posted in Nail Polish and tagged , , . Bookmark the permalink.

Comments are closed.