tag:blogger.com,1999:blog-64315715523935942132024-03-06T09:52:49.148+08:00Xiaofan's BlogBlog on IT and Electronics and more, especially Linux and microcontroller related issuesXiaofanhttp://www.blogger.com/profile/03066298450495260203noreply@blogger.comBlogger159125tag:blogger.com,1999:blog-6431571552393594213.post-36742702325754453952018-06-30T09:23:00.001+08:002018-06-30T09:23:46.615+08:00Move to WordpressPlease take note I have moved my blog site to Wordpress.
https://mcuee.wordpress.com/Xiaofanhttp://www.blogger.com/profile/03066298450495260203noreply@blogger.com0tag:blogger.com,1999:blog-6431571552393594213.post-11678259180272047762015-12-13T13:02:00.000+08:002015-12-13T13:02:08.565+08:00libftdi1-1.2 and libftdi1 git master MinGW.org Windows binariesI have not built Windows binary for libftdi for a while. It seemsthat there are still some requests for the Windows binary.So I first built the MinGW.org (MinGW 4.7.2, not the latest) binary.You can download the libftdi Windows binaries here.https://sourceforge.net/projects/picusb/files/libusb-1.0.20 is used for the development kit. It isrecommended that you use Zadig to install WinUSBdriver for Xiaofanhttp://www.blogger.com/profile/03066298450495260203noreply@blogger.com2tag:blogger.com,1999:blog-6431571552393594213.post-29354120899041046692014-02-23T20:45:00.002+08:002014-02-23T20:45:21.720+08:00libusb-1.0.18 release and the merge of libusb/libusbx projectAnnouncement on 26-Jan-2014:
http://marc.info/?l=libusb-devel&m=138923388110948&w=2
This is the first libusb release after the merger of libusb and libusbx project.
Download:
https://sourceforge.net/projects/libusb/files/libusb-1.0/libusb-1.0.18/
Website:
http://libusb.info
Git repo:
https://github.com/libusb/libusb
Take note that Peter Stuge is opposed to the libusbx fork and the Xiaofanhttp://www.blogger.com/profile/03066298450495260203noreply@blogger.com0tag:blogger.com,1999:blog-6431571552393594213.post-86614195836970464902014-02-23T20:37:00.003+08:002014-02-23T20:40:20.162+08:00libftdi1-1.1 released and Windows binaries libftdi1-1.1 has been released on 06-Feb-2014
Main highlights
------------------
* Fix FT232H eeprom suspend pulldown setting (Davide Michelizza)
* Fix FT232H eeprom user area size (Davide Michelizza)
* Improved mingw build (Paul Fertser and Michel Zou)
* C++ wrapper: Get/set functions for USB timeouts (Jochen Sprickerhof)
* Partial support for FT230X (Nathael Pajani)
* New API function: Xiaofanhttp://www.blogger.com/profile/03066298450495260203noreply@blogger.com0tag:blogger.com,1999:blog-6431571552393594213.post-39191072690094576252013-03-04T15:22:00.001+08:002013-03-04T15:22:23.004+08:00libftdi1-1.0 released and Windows binary downloadlibftdi1-1.0 has been released on 29-Jan-2013 after three years of active development.
Main highlights------------------* Ported to libusb 1.x* Many EEProm handling improvements* Library .so / pkgconfig files are called "libftdi1". So it can co-exist with libftdi 0.x* ftdi_eeprom is part of the main distributionDownload:http://www.intra2net.com/en/developer/libftdi/download/libftdi1-1.0.Xiaofanhttp://www.blogger.com/profile/03066298450495260203noreply@blogger.com0tag:blogger.com,1999:blog-6431571552393594213.post-20101142561711294132012-09-22T19:49:00.002+08:002012-09-22T19:49:52.845+08:00OpenOCD 0.6.0 release 32bit Windows binary using libusbx 1.0.13http://code.google.com/p/picusb/downloads/detail?name=openocd_0.6.0_mingw32.zipOpenOCD 0.6.0Release date: 7 September 2012build date: 22 September 2012build system: Windows XP SP3compiler: GCC 4.7.0 (MinGW.org), 32bit onlyLibraries used (32bit)libftdi-0.20libusb-win32-1.2.6.0libusbx-1.0.13Build commands used:LDFLAGS="-lusb-1.0" ../configure --enable-ftdi \--enable-ft2232_libftdi -Xiaofanhttp://www.blogger.com/profile/03066298450495260203noreply@blogger.com0tag:blogger.com,1999:blog-6431571552393594213.post-41623676009353639632012-09-15T20:56:00.000+08:002012-09-15T20:57:09.166+08:00OpenOCD 0.6.0 releasedAnnouncement:
http://openocd.sourceforge.net/category/news/
Download:
http://sourceforge.net/projects/openocd/files/openocd/0.6.0/
Windows binary download:
http://www.freddiechopin.info/en/download/category/4-openocd
Xiaofanhttp://www.blogger.com/profile/03066298450495260203noreply@blogger.com0tag:blogger.com,1999:blog-6431571552393594213.post-15233423659579375912012-06-02T09:31:00.002+08:002012-06-02T09:31:26.653+08:00OpenOCD 0.6.0 development Windows binary snapshot for testingI've packaged two Windows binary snapshots for those who are interested in testing the upcoming OpenOCD 0.6.0 release.
Download: http://code.google.com/p/picusb/downloads/list
One of the download is for the new mpsse patch series which use libusb-1.0 asynchronous API to speed up the speed of FTDI based adapters. The other is the regular git version. Compared to 0.5.0, the improvement in 0.6.0Xiaofanhttp://www.blogger.com/profile/03066298450495260203noreply@blogger.com0tag:blogger.com,1999:blog-6431571552393594213.post-61998498184701331962012-06-02T09:26:00.001+08:002013-03-04T15:16:05.981+08:00 libftdi-0.20 Windows MinGW 32bit binary for downloadHere is the unofficial libftdi-0.20 binary for download.
http://code.google.com/p/picusb/downloads/list, the file name is libftdi_0.20_devkit_mingw32_08April2012.zip .
They are built under Windows with MinGW. So if you have some difficulties building libftdi-0.20 from source for Windows, you may want to try out the binary I built.Xiaofanhttp://www.blogger.com/profile/03066298450495260203noreply@blogger.com0tag:blogger.com,1999:blog-6431571552393594213.post-70291567824734902802012-06-02T09:20:00.000+08:002012-06-02T09:32:56.225+08:00libusb-1.0 and libusbx in OpenBSD ports and NetBSD pkgsrc nowlibusb-1.0.9 and libusbx-1.0.11 have OpenBSD/NetBSD support.
Now libusb-1.0 and libusb-compat are OpenBSD's ports system. NetBSD's pkgsrc system (okay, pkgsrc is not only for NetBSD) now has both libusb-1.0.9 and libusbx-1.0.11, it also has libusb-compat as well.
On the other hand, at least for the faster moving libusbx,
OpenBSD/NetBSD are behind the other supported OS (Linux,
Mac OS X and Xiaofanhttp://www.blogger.com/profile/03066298450495260203noreply@blogger.com0tag:blogger.com,1999:blog-6431571552393594213.post-56061306112532417012012-04-15T12:23:00.001+08:002012-04-15T12:30:10.832+08:00OpenBSD, NetBSD and libusb-1.0There is OpenBSD support in libusb.git. Since NetBSD
and OpenBSD should have quite similar USB codes, I think
that it should work under NetBSD as well.
Therefore I tried the following dirty patch to enable
libusb-1.0 experimental support for NetBSD using the
OpenBSD backend.
Take note FreeBSD has its own libusb-1.0 implementation
which should be more mature than the OpenBSD backends
of Xiaofanhttp://www.blogger.com/profile/03066298450495260203noreply@blogger.com0tag:blogger.com,1999:blog-6431571552393594213.post-36755759703504001872012-03-10T22:08:00.000+08:002013-03-31T12:22:31.283+08:00Mac Mini 2011 ImpressionMy 3-year old Acer Desktop (running Windows Vista, Windows 7, Ubuntu Linux and Arch Linux) died in the end of 2011 and I decided to try Mac OS X instead as my main home desktop. The cheapest option from Apple is Mac Mini 2011 and I chose to buy the cheapest option at S$788 ( http://www.apple.com/sg/macmini/ ).
The spec is fine for me, Intel Core i5 2.3GHz, 2GB DDR3 RAM, 500GB 5400rpm HDD, Xiaofanhttp://www.blogger.com/profile/03066298450495260203noreply@blogger.com0tag:blogger.com,1999:blog-6431571552393594213.post-7905472319241500832011-08-13T08:02:00.002+08:002011-08-13T08:09:03.623+08:00Interesting discussions about Linuxhttp://fossforce.com/2011/08/top-10-things-linux-users-dont-understand/
The post itself is not that interesting and kind of dumb. But the comments sections are much more interesting. The best comment is from "linuxlover" on August 12th, 2011 at 11:05 am.
I use both Windows and Linux and kind of neutral. Windows has many problems. Linux has many problems as well. Linux has many advantages. Xiaofanhttp://www.blogger.com/profile/03066298450495260203noreply@blogger.com0tag:blogger.com,1999:blog-6431571552393594213.post-65617053575600779322011-08-13T07:37:00.007+08:002011-08-13T07:51:01.897+08:00OpenOCD 0.5.0 release Windows binary downloadOpenOCD 0.5.0 has been released. Here is the News.
Source zip archive or tar ball can be downloaded from SourceForge.
Windows binaries (32bit and 64bit, cross build under Linux with MinGW-w64 project's compiler) can be downloaded from Freddie Chopin's website.
You can also use my test build which is native Windows build using 32bit MinGW.org toolchain.
Take note due to GPL licensing reasons, Xiaofanhttp://www.blogger.com/profile/03066298450495260203noreply@blogger.com1tag:blogger.com,1999:blog-6431571552393594213.post-13266931044793897172011-08-02T10:30:00.003+08:002011-08-02T10:35:30.520+08:00USB CDC-ACM is really meant for USB ModemMany users use USB CDC-ACM for virtual com port usage. Itis supported under Windows by the usbser.sys driver andalso works under Linux and Mac OS X and probably other OS as well.In reality, CDC-ACM is really meant for modems.http://www.usb.org/developers/devclass_docs/usbcdc11.pdf"3.6.2 Abstract Control ModelWith an Abstract Control Model, the USB device understands standardV.25ter (AT) commands.Xiaofanhttp://www.blogger.com/profile/03066298450495260203noreply@blogger.com0tag:blogger.com,1999:blog-6431571552393594213.post-78052763663879842262011-07-24T20:27:00.002+08:002011-07-24T20:31:02.431+08:00libftdi 0.19 and libftdi-1.0 git MinGW binaries downloadHere are the unofficial libftdi-0.19 and libftdi-1.0 binaries download.http://code.google.com/p/picusb/downloads/listThey are cross-built under Linux with MinGW and MinGW-w64. So if you have some difficulties getting them to be built under Windows, you may want to try out the binaries I built.Xiaofanhttp://www.blogger.com/profile/03066298450495260203noreply@blogger.com0tag:blogger.com,1999:blog-6431571552393594213.post-57837107791970726822011-07-10T09:10:00.009+08:002011-07-21T18:35:05.256+08:00Arch Linux Gnome 3 with Nvidia Driver Problem WorkaroundI have some problems with Gnome 3 (Gnome Shell) with the Nvidia 3. The main thing is that sometimes texts will get corrupted when you scroll down a website under Firefox. It can take some efforts to to click some links in Firefox for some websites (like the links below any LinuxToday articles). The first link is there, but when you scroll down and try to click it, it disappeas and the text below Xiaofanhttp://www.blogger.com/profile/03066298450495260203noreply@blogger.com0tag:blogger.com,1999:blog-6431571552393594213.post-18922635875155238862011-05-01T09:51:00.004+08:002011-07-17T17:46:34.418+08:00Gnome 3 and Gnome Shell First ImpressionI just updated my Arch Linux installation and it has Gnome 3 by default. I followed the Arch Wiki about Gnome 3 for the installation and it went smooth.As for the first impression, it is at least much better than Ubuntu Unity interface. For one thing, it does not have the annoying Global Menu. However, I still prefer the old Gnome 2 interface. Anyway, the new interface is at least tolerable, not Xiaofanhttp://www.blogger.com/profile/03066298450495260203noreply@blogger.com1tag:blogger.com,1999:blog-6431571552393594213.post-73413977824981641072011-04-29T18:25:00.007+08:002011-07-17T17:49:06.424+08:00Ubuntu 11.04 -- Unity Interface is not usableI have just updated my Ubuntu 10.10 installation to 11.04. To be honest, I do not like the new Unity interface. I would say the old Gnome interface is much easier to use. Windows 7 is also way better. I might be able to get used to it in the future, but for now I will go back to the classic desktop and wait for Ubuntu to fix the Unity interface.Major problems:1) The launcher is basically useless,Xiaofanhttp://www.blogger.com/profile/03066298450495260203noreply@blogger.com1tag:blogger.com,1999:blog-6431571552393594213.post-26235648623136568952011-04-28T18:22:00.003+08:002011-04-28T18:29:26.742+08:00OpenUSB is alive againAfter a long gap, Michael Lewis just announced the releaseof OpenUSB 1.1.1.Website: http://sourceforge.net/projects/openusb.Highlights of the release:1) Removed the HAL/DBUS dependency for hotplug events.2) Improved kernel version checking for the bulk continuation flag.3) Improved support for zero byte transfers4) Changed the maximum control transfer size to 4096According to Michale, these Xiaofanhttp://www.blogger.com/profile/03066298450495260203noreply@blogger.com2tag:blogger.com,1999:blog-6431571552393594213.post-84018225417319846052011-04-27T21:47:00.000+08:002011-04-27T21:48:54.187+08:00Python and USB HID Device(This is my post to pyusb mailing list on 27-April-2011)Just a summary for the situation.Firstly you may want to see if you really want to usea generic HID device, in most cases, you can usea custom device and then use libusb0.sys or winusb.sysas the driver under Windows and then use pyusb with it.Using a custom device will also make it possible to usepyusb under Mac OS X. Recent Mac OS X makes Xiaofanhttp://www.blogger.com/profile/03066298450495260203noreply@blogger.com2tag:blogger.com,1999:blog-6431571552393594213.post-16190284858919247412011-04-16T10:12:00.001+08:002011-04-16T10:14:20.693+08:00libftdi and OpenOCD binary downloadlibftdi-0.18 and libftdi-1.0 binaries and OpenOCD git binaries downloadhttp://code.google.com/p/picusb/downloads/listI have uploaded some Windows (32bit and 64bit) binary of libftdi and OpenOCD to my Google Code picusb page. Most of them are cross-built under Linux with MinGW and MinGW-w64. So if you have some difficulties getting them to be built under Windows, you may want to try out the Xiaofanhttp://www.blogger.com/profile/03066298450495260203noreply@blogger.com0tag:blogger.com,1999:blog-6431571552393594213.post-8908688404790519942011-04-16T10:09:00.001+08:002011-04-16T10:11:49.931+08:00Updated Microchip USB Links and Microchip Stack Anomaly listPIC USB related web sites http://www.microchip.com/forums/m123533.aspxPIC USB Firmware Framework Confirmed and Potential Anomalies http://www.microchip.com/forums/m275422.aspxThe above links should help the users of Microchip USB PICs.Xiaofanhttp://www.blogger.com/profile/03066298450495260203noreply@blogger.com2tag:blogger.com,1999:blog-6431571552393594213.post-20228360413967692542010-10-16T18:44:00.003+08:002010-10-16T19:18:58.447+08:00Acer AOD255 NetbookToday I bought the Acer Aspire One AOD255 netbook. This is my first netbook. It has the new Atom N550 dual core processor, 1GB of DDR3 RAM (wish it has 2GB), 250GB HDD and integrated graphics. The interesting thing is that it has dual boot options (Windows 7 starter and Android). It cost me SGD519, they throw in 3 freebies, a headphone, a cheap cooling stand with two USB powered fans and a free Xiaofanhttp://www.blogger.com/profile/03066298450495260203noreply@blogger.com1tag:blogger.com,1999:blog-6431571552393594213.post-30854331222866078392010-10-11T21:35:00.002+08:002010-10-11T21:42:28.734+08:00Ubuntu 10.10 InstalledUbuntu 10.10 installation on my Acer desktop is rather smooth. I was using upgrade install for the 10.04 LTS release. Since there is an empty partition this time (giving up FreeBSD), I am using fresh install this time. Firstly I downloaded the ISO, installed it to an 8GB USB Flash Disk, boot the USB drive, played a bit with the live session. Then I installed it to the empty partition. It was a Xiaofanhttp://www.blogger.com/profile/03066298450495260203noreply@blogger.com1