User Tools

Site Tools


fhz1000pc

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
fhz1000pc [2008/03/24 14:15] seststfhz1000pc [2018/11/03 02:59] (current) – external edit 127.0.0.1
Line 25: Line 25:
 The software accompanying the device when purchased from Conrad is unfortunately in German only. To make things even worse, the software has no documented external interface allowing direct access to the device. So we are left to do this interfacing ourselves. The software accompanying the device when purchased from Conrad is unfortunately in German only. To make things even worse, the software has no documented external interface allowing direct access to the device. So we are left to do this interfacing ourselves.
 Fortunately [[http://www.ftdichip.com|FTDI]] provides both drivers and API:s to their chips for free (they live on selling the chips), so the drivers can be downloaded from their site. Through their drivers we get access to the serial communication with the PIC-processor.  Fortunately [[http://www.ftdichip.com|FTDI]] provides both drivers and API:s to their chips for free (they live on selling the chips), so the drivers can be downloaded from their site. Through their drivers we get access to the serial communication with the PIC-processor. 
-The protocol used here has been reversed engineered by [[http://fhz4linux.info/tiki-index.php?page=FHZ1000+Protocol|fhz4linux]]. I want to access the protocol on Windows from Java, but FTDI only supply drivers for C/C++ so I also need some kind of conversion here. I actually considered writing a small C-daemon to talk TCP/IP with, but I found a nice set of Java drivers for the FT232AM-chip (D2XX-drivers) on https://jd2xx.dev.java.net. So I was finally able to write a Java class that represents a FHZ1000PC-device and allow my software to control the FS20 system.+The protocol used here has been reversed engineered by [[http://fhz4linux.info/tiki-index.php?page=FHZ1000+Protocol|fhz4linux]]. 
  
 +===== Interfacing from Windows =====
 +I want to access the protocol on Windows from Java, but FTDI only supply drivers for C/C++ so I also need some kind of conversion here. I actually considered writing a small C-daemon to talk TCP/IP with, but I found a nice set of Java drivers for the FT232AM-chip (D2XX-drivers) on https://jd2xx.dev.java.net. So I was finally able to write a Java class that represents a FHZ1000PC-device and allow my software to control the FS20 system.
  
-===== Software =====+===== Interfacing from Linux ===== 
 +Since Java is a platform independent language, we want the software to work for Linux as well. On Linux, there are no specific drivers for this device available but we can still use the fact that there is a standard FTDI-Chip. The trick here is to persuade Linux that this is really just a USB serial device. There are at least three ways of doing this, and they are described on [[http://fhz4linux.info/tiki-index.php?page=Driver+installation| the fhz4linux-site]]. I prefer method number 3, and it has worked fine on my Ubuntu. 
 + 
 +The Java interface class I have written actually checks which OS it is running under (a bit ugly) and adapts its access methods accordingly. 
 + 
 +===== Software on Windows =====
 To use the interface you have to do the following steps: To use the interface you have to do the following steps:
   * Install the software accompanying the device (this is the easiest way to get the USB drivers installed)   * Install the software accompanying the device (this is the easiest way to get the USB drivers installed)
   * Download the D2XX-java drivers from [[https://jd2xx.dev.java.net/servlets/ProjectDocumentList|jd2xx.dev.java.net]], it is actually the files jd2xx.dll and jd2xx.jar you need. I had to use the 2005-version since I got problems with the 2006-build.   * Download the D2XX-java drivers from [[https://jd2xx.dev.java.net/servlets/ProjectDocumentList|jd2xx.dev.java.net]], it is actually the files jd2xx.dll and jd2xx.jar you need. I had to use the 2005-version since I got problems with the 2006-build.
-  * Download my {{fhz1000pc.zip|fhz1000pc}} interface class, and you are all set to talk Java to FHZ1000PC.+  * Download my {{:fhz1000pc_829.zip|fhz1000pc}} interface class, and you are all set to talk Java to FHZ1000 PC. 
 + 
 +This class is used by the [[fhz1000pcport]]-class in the [[:start|NetHomeServer]]
  
 ===== Example ===== ===== Example =====
fhz1000pc.1206364533.txt.gz · Last modified: 2018/11/03 02:57 (external edit)