Skip to content

Commit ae11dfa

Browse files
Instruction on how to use with socat
1 parent 4505408 commit ae11dfa

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

README.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,3 +139,43 @@ We accept clean and reasonable patches, submit them!
139139

140140
ctn - primary author and maintainer of Baseflight Configurator.
141141
Hydra - author and maintainer of Cleanflight Configurator from which this project was forked.
142+
143+
144+
145+
# Extra Notes for CogniFly
146+
This branch uses an old engine so it's possible to use [socat](https://medium.com/@copyconstruct/socat-29453e9fc8a6).
147+
148+
You must install node.js version 10
149+
## Using Ubuntu
150+
```
151+
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
152+
sudo apt-get install -y nodejs
153+
```
154+
Now:
155+
```
156+
npm install yarn # to install yarn locally (without -g!!!!)
157+
npm install # I'm not sure if the line above is necessary...
158+
```
159+
In order to generate an executable:
160+
```
161+
./node_modules/.bin/yarn gulp apps
162+
```
163+
164+
After all these steps, launch it by typing:
165+
```
166+
./apps/inav-configurator/linux64/inav-configurator
167+
```
168+
169+
If you just wanted to use it connected by the serial it would be easier to just download one of the official releases :)
170+
171+
On the RPI (considering it's connected to the flight controller through its serial port):
172+
```
173+
socat -v -x tcp-l:54321,reuseaddr,fork /dev/ttyS0,b115200,cs8,parenb=0,cstopb=0,clocal=0,raw,echo=0,setlk,flock-ex-nb,nonblock=1
174+
```
175+
176+
On the PC:
177+
```
178+
socat -v -x pty,link=$HOME/serial,waitslave tcp:cognipi-carbon.local:54321
179+
```
180+
181+
If everything went as expected, you can launch the inav-configurator and select "manual" and set your_home_user_dir_path/serial and it will connected without the need of an USB cable :D

0 commit comments

Comments
 (0)