Advertisement
Guest User

Untitled

a guest
Jul 24th, 2017
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.30 KB | None | 0 0
  1. 2 Procedure
  2. The following procedure should be followed to modify the VID and/or PID in Linux. The FTDI client device
  3. should not be connected until indicated by the procedure.
  4. 1. Open a terminal window in Linux.
  5. 2. Go to the /etc/udev/rules.d directory.
  6. The “sudo” command can be used here to create files.
  7. 3. Using the preferred Linux text editor, create a new file with the following name:
  8. 99-usbftdi.rules
  9. 4. Enter the following Linux code, then save and close the file:
  10. # For FTDI FT232 & FT245 USB devices with Vendor ID = 0x0403, Product ID = 0xabc
  11. SYSFS{idProduct}==”abcd”, SYSFS{idVendor}==”0403”, RUN+=”/sbin/modprobe –q ftdisio
  12. product=0xabcd vendor=0x0403”
  13. Note that “0xabcd” is a dummy value for the PID; you will enter the PID assigned to you from FTDI.
  14. For a VID assigned by the USB-IF, also modify the “idVendor” value above to match the assigned VID.
  15. 5. Save and close the rules file.
  16. 6. To instantiate, run the following command:
  17. sudo udevcontrol_reload rules <CR>
  18. (It is only necessary to run this command once. The rule file will always be executed at system start up.)
  19. 7. Connect the FTDI device with the customized VID/PID and enter:
  20. dmesg | grep FTDI <CR>
  21. This command will confirm a successful driver load. You should see the following:
  22. [ 15.768872] drivers/usb/serial/usb-serial.c: USB Serial support registered
  23. for FTDI USB Serial Device
  24. [ 15.768927] ftdi_sio 4-1:1.0: FTDI USB Serial Device converter detected
  25. [ 15.769177] usb 4-1: FTDI USB Serial Device converter now attached to ttyUSB0
  26. The new VID/PIDs will stay resident on the Linux PC after shutdown and restart.
  27. Communication with the FTDI device can be set up by using a simple Linux TTY terminal and pointing it to
  28. /dev/ttyUSB0.
  29. 8. To confirm the new VID/PID combination is present enter the following :
  30. Document Reference No.: FT_000081
  31. Implementing Custom FTDI VID and PID In Linux. Technical Note TN_101 Version 1.0
  32. Clearance No.: FTDI# 64
  33. lsusb <CR>
  34. Bus 002 Device 001: ID 0000:0000
  35. Bus 004 Device 004: ID 0403:abcd Future Technology Devices International, Ltd
  36. Bus 004 Device 001: ID 0000:0000
  37. Bus 003 Device 001: ID 0000:0000
  38. (Note 1: lsusb does not confirm that driver is successfully loaded, only that hardware has been attached to
  39. the computer.)
  40. (Note 2: At the time of writing this application note, the only method available to modify the hardware (onchip)
  41. PID/VID values is to use the Mprog3.0 application. This application only runs on Microsoft Windows)
  42. If FTDI’s standard VID code is being used, then this MUST be used with a PID code allocated by FTDI. It is
  43. not permissible to create user defined PID codes. In this case, please request a block of 8 unique PIDs from
  44. FTDI (at no cost). All you need is a phone call or email to FTDI Support (refer to Contact Information
  45. section). These allocated PIDs must be used with the standard FTDI VID of 0x0403.
  46. If a custom VID is used (available to current members of the USB Implementers Forum USB-IF), then users
  47. can choose any PID code. (This option has a cost associated with it).
  48. Additional note for Ubuntu users:
  49. It is not possible to access the Virtual COM port in Ubuntu until the “brltty” port is removed. This is done as
  50. follows:
  51. sudo apt-get remove brltty <CR>
  52. Document Reference No.: FT_000081
  53. Implementing Custom FTDI VID and PID In Linux. Technical Note TN_101 Version 1.0
  54. Clearance No.: FTDI# 64
  55. 2.2 Acronyms and Abbreviations
  56. Terms Description
  57. VID/PID Vendor ID/Product ID
  58. FTDI_SIO FTDI Virtual Com Port driver for Linux Operating Systems
  59. sudo Linux “Substitute User” command, gives administrator privileges
  60. kernel Code that forms the heart of a Linux Operating System
  61. Terminal Window A Linux application similar to Windows’ “Command Prompt”
  62. dmesg Linux “Message of the day” – shows a log of events for the Linux PC.
  63. Table 2.1 Acronyms and Abbreviations
  64. Document Reference No.: FT_000081
  65. Implementing Custom FTDI VID and PID In Linux. Technical Note TN_101 Version 1.0
  66. Clearance No.: FTDI# 64
  67. 3 Contact Information
  68. Head Office – Glasgow, UK
  69. Future Technology Devices International Limited
  70. 373 Scotland Street
  71. Glasgow G5 8QB
  72. United Kingdom
  73. Tel: +44 (0) 141 429 2777
  74. Fax: +44 (0) 141 429 2758
  75. E-Mail (Sales): sales1@ftdichip.com
  76. E-Mail (Support) : support1@ftdichip.com
  77. E-Mail (General Enquiries): admin1@ftdichip.com
  78. Web Site URL: http://www.ftdichip.com
  79. Web Shop URL: http://apple.clickandbuild.com/cnb/shop/ftdichip
  80. Branch Office – Taiwan
  81. Future Technology Devices International Limited (Taiwan)
  82. 2F, No. 516, Sec. 1, NeiHu Road
  83. Taipei 114
  84. Taiwan , R.O.C.
  85. Tel: +886 (0) 2 8797 1330
  86. Fax: +886 (0) 2 8751 9737
  87. E-mail (Sales) tw.sales1@ftdichip.com
  88. E-mail (Support) tw.support1@ftdichip.com
  89. E-mail (General Enquiries) tw.admin1@ftdichip.com
  90. Web Site URL http://www.ftdichip.com
  91.  
  92. Branch Office – Hillsboro, Oregon, USA
  93. Future Technology Devices International Limited (USA)
  94. 7235 NW Evergreen Parkway, Suite 600
  95. Hillsboro, OR 97124-5803
  96. USA
  97. Tel: +1 (503) 547-0988
  98. Fax: +1 (503) 547-0987
  99. E-Mail (Sales): us.sales@ftdichip.com
  100. E-Mail (Support) : us.support@ftdichip.com
  101. E-Mail (General Enquiries): us.admin@ftdichip.com
  102. Web Site URL: http://www.ftdichip.com
  103. Distributors and Sales Representatives
  104. Please visit the Sales Network page of the FTDI Web site for the contact details of our distributor(s) in your country.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement