J4210U Hardware Demo Application
The demo application is built using Eclipse with SWT toolkit. To successfully compile this application under other Java IDE and with your own code, do as follows:
You can modify this application and create your own application. Your application then automatically run on all supported platform if you do as follows:
Install Launch4j, a free Java executable from jar to create your Windows executable. Make sure that the following files are in the same directory as the executable: j4210u.dll, libgcc_s_seh-1.dll, libstdc++-6.dll, libwinpthread-1.dll and any other files that you load in the application.
There is a Mac OS X application named UhfApp.app. You can directly run this application. To create your own application, make sure that simply run the Ant script j4210u.xml, the script will modify an application name UhfApp.app. You can change the name and the application icon by editing Info.plist inside UhfApp.app directory.
There are two Mac OS X distributions: The Intel Mac where an Intel base processor is used and the M1 Mac where Apple's M1 chip is used. Choose the appropriate distribution to run. One distribution will not run on the other Mac hardware. The are totally different hardware.
In Linux, you simply run j4210u.sh script. To make this file executable, run the command:
chmod 755 j4210u.sh
Make sure libj4210u.so is in the same directory as the jar file.
The python3 code is compiled with version 3.7. Most likely, it will also work with other version 3. See the README.TXT file in the python3 directory for specific instructions.
Choose the product. Open the project for appropriate platform under the directory /platform.
Windows 64 -> /platform/win64
Mac OSX (Apple Silicon, M1 or higher) -> /platform/macosx (Do not use in Intel based Mac)
Mac OSX (Intel Processor) -> /platform/macosx[intel] (Do not use in Apple Silicon)
Linux 64 -> /platform/linux64
Python 3 -> /platform/python3
Other Platforms -> /platform/
NOTE: You may get error after loading the product because the /src folder will not in the same directory where we developed. Simply point to the correct directory in your development environment.
Short Youtube videos are prepared to learn how to operate this device.
The hardware driver for j4210u is compiled to run only in 64 bit platform.
The following models are compatible with Arduino and Energia:
Windows already come with a default USB Serial driver. Connect the device and check if there is any new COM port attached to the device. If not, then install the 64-bit driver from the driver directory. For Linux and Mac OSX, the driver attachement is automatic. However, in some Linux cdc_acm have to be executed if a driver is not attached.