& í^ ì ì ô ñ rs ] } v w í x ì À v z d z v ] o ^ z } µ u...

7
F1S0085-Version:1.0 Written by Watson.Liu 1 Advantech AE Technical Share Document Date 2019 / 03 / 11 Release Note □ InternalExternal Category FAQ □ SOP Related OS Abstract How to install DAQ DN4 linux driver and test example in linux system Keyword linux, DAQ, DN4, SDK Related Product DAQ devices Problem Description: How to install DN4 driver(version higher than 4.0.0.0) and test example. By the way, please reference “readme” document if you install DN3 driver(version less than 4.0.0.0). Brief Solution - Step by Step: Here’re two methods to install DN4 driver in linux. Please using root permission in all the steps below. 1. To install driver by UI mode. Step1. Open Terminal then move to the path where the driver located. >> cd /(file path) Step2. Increase the permission about the driver. >> chmod +x linux_driver_source_4.X.X.X_64bit.run Or >> chmod +x linux_driver_source_4.X.X.X_32bit.run Step3. Run driver directly. >> ./linux_driver_source_4.X.X.X_64bit.run Or >>./linux_driver_source_4.X.X.X_32bit.run

Upload: others

Post on 15-Aug-2020

0 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: & í^ ì ì ô ñ rs ] } v W í X ì À v Z d Z v ] o ^ Z } µ u vadvdownload.advantech.com/productfile/Downloadfile2... · Title: Microsoft Word - F1S0085_FAQ_How to install DAQ

F1S0085-Version:1.0

Written by Watson.Liu 1

Advantech AE Technical Share Document Date 2019 / 03 / 11 Release Note □ Internal■External Category ■ FAQ □ SOP Related OS Abstract How to install DAQ DN4 linux driver and test example in linux system Keyword linux, DAQ, DN4, SDK Related Product DAQ devices

Problem Description: How to install DN4 driver(version higher than 4.0.0.0) and test example. By the way, please reference “readme” document if you install DN3 driver(version less than 4.0.0.0).

Brief Solution - Step by Step: Here’re two methods to install DN4 driver in linux.

Please using root permission in all the steps below. 1. To install driver by UI mode.

Step1. Open Terminal then move to the path where the driver located. >> cd /(file path)

Step2. Increase the permission about the driver. >> chmod +x linux_driver_source_4.X.X.X_64bit.run Or >> chmod +x linux_driver_source_4.X.X.X_32bit.run

Step3. Run driver directly. >> ./linux_driver_source_4.X.X.X_64bit.run Or >>./linux_driver_source_4.X.X.X_32bit.run

Page 2: & í^ ì ì ô ñ rs ] } v W í X ì À v Z d Z v ] o ^ Z } µ u vadvdownload.advantech.com/productfile/Downloadfile2... · Title: Microsoft Word - F1S0085_FAQ_How to install DAQ

F1S0085-Version:1.0

Written by Watson.Liu 2

Step4. Choose the driver needed then keep moving on next step.

Step5. Finish then please reboot system directly.

Step6. After reboot system then confirm driver installation result if the device already plug in system. >> lsmod | grep bio*

Page 3: & í^ ì ì ô ñ rs ] } v W í X ì À v Z d Z v ] o ^ Z } µ u vadvdownload.advantech.com/productfile/Downloadfile2... · Title: Microsoft Word - F1S0085_FAQ_How to install DAQ

F1S0085-Version:1.0

Written by Watson.Liu 3

2. To install driver by silent mode. Step1. Open Terminal then move to the path where the driver located. >> cd /(file path)

Step2. Increase the permission about the driver. >> chmod +x linux_driver_source_4.X.X.X_64bit.run Or >> chmod +x linux_driver_source_4.X.X.X_32bit.run

Step3. Run driver in silent mode and this mode doesn’t show up UI. >> ./linux_driver_source_4.X.X.X_64bit.run silent install (driver’s name) Or >>./linux_driver_source_4.X.X.X_32bit.run silent install (driver’s name)

It will show up driver’s name if input wrong one.

Page 4: & í^ ì ì ô ñ rs ] } v W í X ì À v Z d Z v ] o ^ Z } µ u vadvdownload.advantech.com/productfile/Downloadfile2... · Title: Microsoft Word - F1S0085_FAQ_How to install DAQ

F1S0085-Version:1.0

Written by Watson.Liu 4

Step4. Finish then please reboot system directly.

Step5. After reboot system then confirm driver installation result if the device already plug in system.

Page 5: & í^ ì ì ô ñ rs ] } v W í X ì À v Z d Z v ] o ^ Z } µ u vadvdownload.advantech.com/productfile/Downloadfile2... · Title: Microsoft Word - F1S0085_FAQ_How to install DAQ

F1S0085-Version:1.0

Written by Watson.Liu 5

Here shows how to use example after finishing driver installation. Please using root permission in all the steps below. Step1. The example source code location is “/opt/advantech/examples/”. >> cd /opt/advantech/examples/

Step2. Modify the “deviceDescription” parameter in example. Here use “gedit” which is a text editor. >> gedit (example .cpp file name)

Step3. Get device description in system then replace the “deviceDescription” in example and modify initial parameter or function if needed at this step. >> cat /sys/class/daq/daq0/desc

Page 6: & í^ ì ì ô ñ rs ] } v W í X ì À v Z d Z v ] o ^ Z } µ u vadvdownload.advantech.com/productfile/Downloadfile2... · Title: Microsoft Word - F1S0085_FAQ_How to install DAQ

F1S0085-Version:1.0

Written by Watson.Liu 6

Step4. Compile example. >> make

Step5. Run example. >> ./(example name)

Page 7: & í^ ì ì ô ñ rs ] } v W í X ì À v Z d Z v ] o ^ Z } µ u vadvdownload.advantech.com/productfile/Downloadfile2... · Title: Microsoft Word - F1S0085_FAQ_How to install DAQ

F1S0085-Version:1.0

Written by Watson.Liu 7

Step6. Repeat Step3 to Step5 if need to modify example again. Reference : *DAQNavi SW manual. *DAQNavi linux driver readme document. https://support.advantech.com/support/DownloadSRDetail_New.aspx?SR_ID=1-LXHFQJ&Doc_Source=Download