Quadcopter flight controller driver

Non release banter
Jack
Contributor
Contributor
Posts: 1857
Joined: 09 Aug 2013, 14:25
Distribution: Porteus and Nemesis
Location: USA

Quadcopter flight controller driver

Post#1 by Jack » 25 Oct 2016, 20:50

I know it might not work with Porteus 3.2 when release but I can use it with Porteus 3.1.

I'm into Quadcopter and I need help. I need a driver compiled here is the link. The one I need to compiled is Linux 3.x.x.

http://www.silabs.com/Support%20Documen ... Source.zip

Why I need it is, when I connect my Flight Controller to my Laptop I can upgrade my Firmware and change my Flight Controller setting and do some programming to it.
I just like Slackware because I think it teach you about Linux to build packages where Ubuntu is like Windows you just install programs you want.

jssouza
Legendary
Legendary
Posts: 1165
Joined: 09 Jul 2015, 14:17
Distribution: Porteus x86 arm

Re: Need Help

Post#2 by jssouza » 26 Oct 2016, 06:21

Hi Jack,

Newer linux kernels already have the cp210x by default. On 3.2rc5 I checked it is already present.

Code: Select all

uest@porteus:~$ find /lib/modules/4.7.2-porteus/kernel/ -name cp210x.ko
/lib/modules/4.7.2-porteus/kernel/drivers/usb/serial/cp210x.ko
The driver should be loaded automatically as soon as you connect your device to your computer.
Check if the driver is loaded using

Code: Select all

lsmod | grep cp210x
If not you can

Code: Select all

modprobe cp210x

User avatar
brokenman
Site Admin
Site Admin
Posts: 6105
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v4 all desktops
Location: Brazil

Re: Need Help

Post#3 by brokenman » 26 Oct 2016, 12:16

I changed this thread to give it a meaningful title. "Need help" will not help anybody that has a quadcopter and has the same problem.
How do i become super user?
Wear your underpants on the outside and put on a cape.

Jack
Contributor
Contributor
Posts: 1857
Joined: 09 Aug 2013, 14:25
Distribution: Porteus and Nemesis
Location: USA

Re: Need Help

Post#4 by Jack » 26 Oct 2016, 12:42

jssouza wrote:Hi Jack,

Newer linux kernels already have the cp210x by default. On 3.2rc5 I checked it is already present.

Code: Select all

uest@porteus:~$ find /lib/modules/4.7.2-porteus/kernel/ -name cp210x.ko
/lib/modules/4.7.2-porteus/kernel/drivers/usb/serial/cp210x.ko
The driver should be loaded automatically as soon as you connect your device to your computer.
Check if the driver is loaded using

Code: Select all

lsmod | grep cp210x
If not you can

Code: Select all

modprobe cp210x
Here is the output.

Code: Select all

guest@porteus:~$ lsmod | grep cp210x
cp210x                  9792  0
usbserial              16256  1 cp210x
guest@porteus:~$ modprobe cp210x
bash: modprobe: command not found
guest@porteus:~$ su
Password: 
root@porteus:/home/guest# modprobe cp210x
root@porteus:/home/guest#
I will have to try it later. Thanks

What command will tell me the com port or is there one?

@brokenman, Thanks for the rename change.
I just like Slackware because I think it teach you about Linux to build packages where Ubuntu is like Windows you just install programs you want.

jssouza
Legendary
Legendary
Posts: 1165
Joined: 09 Jul 2015, 14:17
Distribution: Porteus x86 arm

Re: Need Help

Post#5 by jssouza » 26 Oct 2016, 15:16

Jack wrote:What command will tell me the com port or is there one?
Because it is a USB to UART driver I guess the port would be /dev/ttyUSB0.

If you are lucky maybe the cp210x is kind enough to output some message when a device is connected/disconnected. Check dmesg if the driver says anything about where the device has been connected.

Jack
Contributor
Contributor
Posts: 1857
Joined: 09 Aug 2013, 14:25
Distribution: Porteus and Nemesis
Location: USA

Re: Quadcopter flight controller driver

Post#6 by Jack » 26 Oct 2016, 16:13

@jssouza,

Thanks for all your help. I plug in both controller boards and it seen both Flight Controller and now I don't need Windows for this.

I have 2 Flight Controller and On Screen Display.

1. Multiwii Pro with GPS and OSD which now I can upgrade the firmware on both and set it up the setting on both.
2. The other one is a KK2.1 and now I can upgrade the firmware on it and it has it own display to set up the setting.

I also have a program called Multiwii winGUI but it only run in Windows. It is use to setup a Flight Plan and it will fly the plan you set up and plus it will do more to.

The program I have for this.

Multiwii Pro:
1. EEPROM_Clear.zip (use to clean firmware chip)
2. MultiWii_2_2.zip (this is what I needed to upgrade the firmware)
3. WinGUI_2.2.zip (still needs Windows for this)
4. MWOSD R1.6.zip (this is what I needed to upgrade the firmware)
5. arduino-1.0.5-linux64.tgz (config.h editor)

KK2.1:
1. kkmulticopterflashtool_0.80beta6.zip (this is what I needed to upgrade the firmware)

Needed for both:
1. openjre-8u101_b13-x86_64-bundle.xzm (built by USM)
I just like Slackware because I think it teach you about Linux to build packages where Ubuntu is like Windows you just install programs you want.

jssouza
Legendary
Legendary
Posts: 1165
Joined: 09 Jul 2015, 14:17
Distribution: Porteus x86 arm

Re: Quadcopter flight controller driver

Post#7 by jssouza » 26 Oct 2016, 19:36

Nice! Have fun with your Quadcopters :good:

User avatar
wread
Module Guard
Module Guard
Posts: 1255
Joined: 09 Jan 2011, 18:48
Distribution: Porteus v5.0-kde-64 bits
Location: Santo Domingo
Contact:

Re: Quadcopter flight controller driver

Post#8 by wread » 26 Oct 2016, 22:17

Fine Bussiness, Viva Porteus! :Yahoo!:
Porteus is proud of the FASTEST KDE ever made.....(take akonadi, nepomuk and soprano out and you will have a decent OS).
The Porteus Community never sleeps!

Jack
Contributor
Contributor
Posts: 1857
Joined: 09 Aug 2013, 14:25
Distribution: Porteus and Nemesis
Location: USA

Re: Quadcopter flight controller driver

Post#9 by Jack » 26 Oct 2016, 23:26

Here is going to be my first build. It not the best stuff but I don't want to jump in and can't learn how to fly. The other Flight Controller will be my 2nd build. When I found out today that Porteus (Kernel) could upgrade the firmware that made my day.

I have a file I wish it run in Linux but it run on Windows unless some one help me on it. It is called "T6install software.zip" and the link http://www.hobbyking.com/hobbyking/stor ... 477X41.zip and wish I could get to run in Linux but I don't know how to.
Here is a list of my build.

Hardware
1. HJ450 frame
2. 2212 930kv motor
3. 30A Afro ESC
4. 10 x 4.5 props
5. 3s 2200 mAh
6. 2-3 cell Lipo charger
7. Lipo Battery Voltage Tester
8. KK2.1 FC
9. USBasp AVR programmer for ATMEL processors
10. Flysky CT6B TX & RX
11. Hobby King 2.4Ghz 6Ch Tx USB Cable

Software:
1. kkmulticopterflashtool_0.80beta6.zip
2. HK Original factory firmware 1.6 KK1_6HK.zip
3. KK2V1_1V19S1Pro.zip
4. jre-8u111-windows-x64.exe
5. openjre-8u101_b13-x86_64-bundle.xzm (linux driver for Porteus)
6. T6install software.zip (Windows)
7. tx-factory-settings.zip

Pdf
1. KK2.1 Manual.pdf
2. KK2.1.X Instruction Manual V1.19S1 Pro.pdf
3. HKT6A.pdf
4. HK TR6A V2 pinout.pdf
5. FS-CT6 Manual.pdf

Video
1. DJI F450 Quadcopter Drone - KK2 1 Setup, Transmitter Binding, ESC Calibration.mkv
2. How to - KK2.0 firmware update - Windows - eluminerRC.mp4
3. How to Bind a CT6B Rx FlySky.mkv
4. Fly-Sky CT6B Transmitter Programming Installation Guide.mkv

Addon
1. RunCam Swift 600TVL 90degrees FOV FPV CCD Camera for mini FPV Racing
2. Boscam 5.8Ghz 600mw 32CH Wireless AV Transmitter TS832 & Receiver RC832 FPV
I just like Slackware because I think it teach you about Linux to build packages where Ubuntu is like Windows you just install programs you want.

Post Reply