EN CN
Board Connection failed under linux
  • Hello everyone, I have a BaseCam gimbal, and I am having problems establishing a connection with the board in Linux.

    I am able to connect the board to the GUI on Windows, allowing me to read the incoming data and perform the necessary calibration. However, since I need to connect to a Linux machine later (ubuntu 22.04), I need to be able to connect on that platform as well. Unfortunately, whenever I try to connect, the connection seems to go into an infinite loop. I have copied and pasted the terminal output below:


    GUI : 09:46:26,865 INFO Opened /dev/ttyUSB0 / EDT
    09:46:26,968 DEBUG Protocol version set to AUTO(in), V1(out) / EDT
    09:46:26,969 INFO Starting board connection.. / ConnectThread
    09:46:26,969 DEBUG BoardInfo is set to null / ConnectThread
    09:46:26,969 DEBUG Setting parity: 0 / ConnectThread
    09:46:26,969 DEBUG OUT:[1,0] [] 0 / ConnectThread
    09:46:26,980 DEBUG OUT:[86,2] [00 00 ] 0 / ConnectThread
    09:46:27,288 DEBUG OUT:[1,0] [] 0 / ConnectThread
    09:46:27,296 DEBUG OUT:[86,2] [00 00 ] 0 / ConnectThread
    09:46:27,605 DEBUG Setting parity: 2 / ConnectThread
    09:46:27,605 DEBUG OUT:[1,0] [] 0 / ConnectThread
    09:46:27,612 DEBUG OUT:[86,2] [00 00 ] 0 / ConnectThread
    09:46:27,920 DEBUG OUT:[1,0] [] 0 / ConnectThread
    09:46:27,928 DEBUG OUT:[86,2] [00 00 ] 0 / ConnectThread
    09:46:28,240 DEBUG Setting baudrate: 57600 / ConnectThread
    09:46:28,241 DEBUG Setting parity: 0 / ConnectThread
    09:46:28,242 DEBUG OUT:[1,0] [] 0 / ConnectThread
    09:46:28,248 DEBUG OUT:[86,2] [00 00 ] 0 / ConnectThread
    09:46:28,556 DEBUG OUT:[1,0] [] 0 / ConnectThread
    09:46:28,564 DEBUG OUT:[86,2] [00 00 ] 0 / ConnectThread
    09:46:28,876 DEBUG Setting parity: 2 / ConnectThread
    09:46:28,877 DEBUG OUT:[1,0] [] 0 / ConnectThread
    09:46:28,884 DEBUG OUT:[86,2] [00 00 ] 0 / ConnectThread
    09:46:29,192 DEBUG OUT:[1,0] [] 0 / ConnectThread
    ......
    09:46:31,405 DEBUG OUT:[1,0] [] 0 / ConnectThread
    09:46:31,412 DEBUG OUT:[86,2] [00 00 ] 0 / ConnectThread
    09:46:31,720 DEBUG OUT:[1,0] [] 0 / ConnectThread
    09:46:31,728 DEBUG OUT:[86,2] [00 00 ] 0 / ConnectThread
    09:46:32,036 DEBUG Setting baudrate: 9600 / ConnectThread
    09:46:32,037 DEBUG Setting parity: 0 / ConnectThread
    09:46:32,038 DEBUG OUT:[1,0] [] 0 / ConnectThread
    09:46:32,044 DEBUG OUT:[86,2] [00 00 ] 0 / ConnectThread
    09:46:32,352 DEBUG OUT:[1,0] [] 0 / ConnectThread
    09:46:32,360 DEBUG OUT:[86,2] [00 00 ] 0 / ConnectThread
    09:46:32,676 DEBUG Setting parity: 2 / ConnectThread
    09:46:32,677 DEBUG OUT:[1,0] [] 0 / ConnectThread
    09:46:32,684 DEBUG OUT:[86,2] [00 00 ] 0 / ConnectThread
    09:46:32,992 DEBUG OUT:[1,0] [] 0 / ConnectThread
    09:46:33,000 DEBUG OUT:[86,2] [00 00 ] 0 / ConnectThread
    09:46:33,316 DEBUG Setting baudrate: 256000 / ConnectThread
    09:46:33,317 ERROR Error configuring serial port: gnu.io.UnsupportedCommOperationException: Invalid Parameter / ConnectThread
    09:46:33,317 DEBUG Setting parity: 0 / ConnectThread
    09:46:33,317 ERROR Error configuring serial port: gnu.io.UnsupportedCommOperationException: Invalid Parameter / ConnectThread
    09:46:33,317 DEBUG OUT:[1,0] [] 0 / ConnectThread
    09:46:33,324 DEBUG OUT:[86,2] [00 00 ] 0 / ConnectThread
    09:46:33,633 DEBUG OUT:[1,0] [] 0 / ConnectThread
    09:46:33,640 DEBUG OUT:[86,2] [00 00 ] 0 / ConnectThread
    09:46:33,957 DEBUG Setting parity: 2 / ConnectThread
    09:46:33,957 ERROR Error configuring serial port: gnu.io.UnsupportedCommOperationException: Invalid Parameter / ConnectThread
    09:46:33,957 DEBUG OUT:[1,0] [] 0 / ConnectThread
    09:46:33,964 DEBUG OUT:[86,2] [00 00 ] 0 / ConnectThread
    09:46:34,273 DEBUG OUT:[1,0] [] 0 / ConnectThread
    09:46:34,280 DEBUG OUT:[86,2] [00 00 ] 0 / ConnectThread
    09:46:34,596 DEBUG Setting baudrate: 115200 / ConnectThread
    09:46:34,598 DEBUG Setting parity: 0 / ConnectThread
    09:46:34,598 DEBUG OUT:[1,0] [] 0 / ConnectThread
    09:46:34,604 DEBUG OUT:[86,2] [00 00 ] 0 / ConnectThread
    09:46:34,912 DEBUG OUT:[1,0] [] 0 / ConnectThread
    .....
    09:46:40,305 DEBUG OUT:[1,0] [] 0 / ConnectThread
    09:46:40,312 DEBUG OUT:[86,2] [00 00 ] 0 / ConnectThread
    09:46:40,624 DEBUG OUT:[1,0] [] 0 / ConnectThread
    09:46:40,632 DEBUG OUT:[86,2] [00 00 ] 0 / ConnectThread
    09:46:40,945 DEBUG Setting baudrate: 256000 / ConnectThread
    09:46:40,945 ERROR Error configuring serial port: gnu.io.UnsupportedCommOperationException: Invalid Parameter / ConnectThread
    09:46:40,945 DEBUG Setting parity: 0 / ConnectThread
    09:46:40,945 ERROR Error configuring serial port: gnu.io.UnsupportedCommOperationException: Invalid Parameter / ConnectThread
    09:46:40,945 DEBUG OUT:[1,0] [] 0 / ConnectThread
    09:46:40,956 DEBUG OUT:[86,2] [00 00 ] 0 / ConnectThread
    09:46:41,264 DEBUG OUT:[1,0] [] 0 / ConnectThread
    09:46:41,272 DEBUG OUT:[86,2] [00 00 ] 0 / ConnectThread
    09:46:41,584 DEBUG Setting parity: 2 / ConnectThread
    09:46:41,585 ERROR Error configuring serial port: gnu.io.UnsupportedCommOperationException: Invalid Parameter / ConnectThread
    09:46:41,585 DEBUG OUT:[1,0] [] 0 / ConnectThread
    09:46:41,592 DEBUG OUT:[86,2] [00 00 ] 0 / ConnectThread
    09:46:41,901 DEBUG OUT:[1,0] [] 0 / ConnectThread
    09:46:41,908 DEBUG OUT:[86,2] [00 00 ] 0 / ConnectThread
    09:46:42,224 DEBUG Setting baudrate: 115200 / ConnectThread
    09:46:42,225 DEBUG Setting parity: 0 / ConnectThread
    09:46:42,226 DEBUG OUT:[1,0] [] 0 / ConnectThread
    09:46:42,232 DEBUG OUT:[86,2] [00 00 ] 0 / ConnectThread
    09:46:42,544 DEBUG OUT:[1,0] [] 0 / ConnectThread
    09:46:42,556 DEBUG OUT:[86,2] [00 00 ] 0 / ConnectThread
    09:46:42,864 DEBUG Setting parity: 2 / ConnectThread
    09:46:42,865 DEBUG OUT:[1,0] [] 0 / ConnectThread
    09:46:42,876 DEBUG OUT:[86,2] [00 00 ] 0 / ConnectThread
    09:46:43,184 DEBUG OUT:[1,0] [] 0 / ConnectThread
    09:46:43,196 DEBUG OUT:[86,2] [00 00 ] 0 / ConnectThread
    09:46:43,504 DEBUG Setting baudrate: 57600 / ConnectThread
    ......
    09:46:45,404 DEBUG Setting parity: 2 / ConnectThread
    09:46:45,405 DEBUG OUT:[1,0] [] 0 / ConnectThread
    09:46:45,412 DEBUG OUT:[86,2] [00 00 ] 0 / ConnectThread
    09:46:45,650 DEBUG Connect/disconnect action fired! / EDT
    09:46:45,650 DEBUG Removing event listener.. / EDT
    09:46:45,692 INFO Disconecting data port.. / EDT
    09:46:45,713 INFO Data port disconnected. / EDT

    Same problem when trying to use the Demo example on the Serial Api (https://github.com/basecamelectronics/sbgc32-serial-api/tree/master/examples/Linux/DemoLaunch) in this case what I get

    Board Info: Receive Error: RX_TIMEOUT_ERROR
    Board Info: Receive Error: RX_TIMEOUT_ERROR

    ******************************
    Communication Error!
    ******************************

    Board Info: Receive Error: RX_TIMEOUT_ERROR
    Board Info 3: Receive Error: RX_TIMEOUT_ERROR
    Main Parameters 3: Receive Error: RX_TIMEOUT_ERROR
    Main Parameters Ext: Receive Error: RX_TIMEOUT_ERROR


    I am on the dialout group so I should have access to the board and trought minicom seems that I can get the access but I am totally unable to get the connection. Also on windows everything seems to work well so the board should be fine

    Any appreciation and help is appreciated.

    Thanks!
  • I would also like to add that if I run "dmesg --follow" I get :

    [99483.839532] tty_set_serial: 'ConnectThread' is using deprecated serial flags (with no effect): 00008200
    [99483.839779] tty_set_serial: 'ConnectThread' is using deprecated serial flags (with no effect): 00008200
    [99484.479461] tty_set_serial: 'ConnectThread' is using deprecated serial flags (with no effect): 00008200
    [99491.463513] tty_set_serial: 'ConnectThread' is using deprecated serial flags (with no effect): 00008200
    [99491.463870] tty_set_serial: 'ConnectThread' is using deprecated serial flags (with no effect): 00008200
    [99492.107205] tty_set_serial: 'ConnectThread' is using deprecated serial flags (with no effect): 00008200
    [99499.118658] tty_set_serial: 'ConnectThread' is using deprecated serial flags (with no effect): 00008200
    [99499.118753] tty_set_serial: 'ConnectThread' is using deprecated serial flags (with no effect): 00008200
    [99499.774767] tty_set_serial: 'ConnectThread' is using deprecated serial flags (with no effect): 00008200

    like of the GUI is trying to connect but with a wrong command