CopterExpress / mavlink-serial-bridge

COEX fast MAVLink serial to UDP bridge
GNU General Public License v3.0
9 stars 3 forks source link

Unit mavlink-serial-bridge.service not loaded. #5

Open kyuhyong1 opened 7 months ago

kyuhyong1 commented 7 months ago

I was able to build and install the project. I checked mavlink message is running on /dev/ttyHS3 so I changed the example.yaml file on /etc/mavlink-serial-bridge accordingly. Then I tried to run sudo systemctl start mavlink-serial-bridge@example however I see no connection. When commanded to stop the service by sudo systemctl stop mavlink-serial-bridge It returned

Failed to stop mavlink-serial-bridge.service: Unit mavlink-serial-bridge.service not loaded.

What is wrong with command? Is there a way to manually run the program in the terminal? like ./mavlink-serial-bridge example.yaml

okalachev commented 7 months ago

I'm not a developer of this tool, but regularly the binary file to run appears in the build directory, right where you called cmake to configure the project and make to build it.

Maybe @dvornikov-aa can help also.

dvornikov-aa commented 7 months ago

@kyuhyong1

  1. Have you executed all the commands from https://github.com/CopterExpress/mavlink-serial-bridge?tab=readme-ov-file#installation section? The command sudo make install is especially important for the service mode
  2. Could you provide me the command output for ls -lah /etc/mavlink-serial-bridge/?
  3. The same for ls -lah /lib/systemd/system/mavlink-serial-bridge*

You can start the application manually: ./mavlink-serial-bridge -e /etc/mavlink-serial-bridge/example.yaml

Here is the help for the application (./mavlink-serial-bridge -h):

MAVLink serial to UDP bridge v0.8

Usage:
    mavlink-serial-bridge [-d] [-e] <app_config>
        Options:
    -d - print debug output,
    -e - duplicate data from syslog to stderr,
    -h - print this help.