User Tools

Site Tools


usersguide:usersguide

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
usersguide:usersguide [2022/03/01 21:29]
dpisuperadmin
usersguide:usersguide [2022/03/12 23:13] (current)
dpisuperadmin [Software Defined Peripherals on the Baseboard4]
Line 56: Line 56:
 The Baseboard connects to your computer using a USB-serial link.  Data over the link consists of packets of binary data that read and write the registers in the software defined peripherals in DPCore.  Your high level application could communicate with the Baseboard directly but almost everyone finds it easier to deal with an API that translates high-level API commands into read and write packets to the Baseboard.  Dpdaemon provides this easy to use API for your applications. The Baseboard connects to your computer using a USB-serial link.  Data over the link consists of packets of binary data that read and write the registers in the software defined peripherals in DPCore.  Your high level application could communicate with the Baseboard directly but almost everyone finds it easier to deal with an API that translates high-level API commands into read and write packets to the Baseboard.  Dpdaemon provides this easy to use API for your applications.
 You can download and install dpdaemon with the following commands: You can download and install dpdaemon with the following commands:
-      git clone https://github.com/DemandPeripherals/dpdaemon.git +    git clone https://github.com/DemandPeripherals/dpdaemon.git 
-      cd dpdaemon +    cd dpdaemon 
-      make +    make 
-      sudo make install +    sudo make install 
-The Baseboard has an FTDI USB-to-serial interface.  Connect the Baseboard to your computer and determine the name of the serial port.  Start dpdaemon with the command+The Baseboard has an FTDI USB-to-serial interface.  Connect the Baseboard to your computer and determine the name of the serial port.  The USB serial port is owned by the group dialout. Add yourself to the group dialout and start dpdaemon with the commands
-      dpdaemon -l /usr/local/lib/DPCore.bin -s /dev/ttyUSB0+    sudo addgroup $LOGNAME dialout 
 +    dpdaemon -l /usr/local/lib/DPCore.bin -s /dev/ttyUSB0
  
-You can perform a quick test that everything is working by changing the LEDs on the Baseboard with the command+You can perform a quick test that everything is working by changing the LEDs on the Baseboard with the commands
-      /usr/local/bin/dpset bb4io leds 55+    export PATH=$PATH:/usr/local/bin/ 
 +    dpset bb4io leds 55
  
 Dpdaemon is a true daemon in that, by default, it will disassociate from the controlling terminal, respawn itself, and use syslog() to report errors.  You can change this behavior with the -f command line option.  This keeps the daemon in the foreground.  The -e command option tells the daemon to not use syslog() and to report errors to the controlling terminal. Dpdaemon is a true daemon in that, by default, it will disassociate from the controlling terminal, respawn itself, and use syslog() to report errors.  You can change this behavior with the -f command line option.  This keeps the daemon in the foreground.  The -e command option tells the daemon to not use syslog() and to report errors to the controlling terminal.
Line 181: Line 183:
         sys.exit()         sys.exit()
          
- 
- 
-==== Build a Robot Using a Baseboard4 ==== 
- 
-==== Use ROS2 to Control Your Robot ==== 
- 
-====How to Write a Custom Driver for dpdaemon ==== 
  
  
  
  
usersguide/usersguide.1646170163.txt.gz · Last modified: 2022/03/01 21:29 by dpisuperadmin