Bluetooth @ ARM

openTx has introduced a range of new features, ideas and bling. It is fast becoming the firmware of choice for many users. openTx will run on ALL current hardware platforms, including the gruvin9x and sky9x boards. Work has already started to support the new FrSky X9D radio!
Post Reply
User avatar
Peter
Posts: 232
Joined: Thu Dec 29, 2011 8:45 pm
Country: -
Location: Zuid-Holland

Bluetooth @ ARM

Post by Peter »

Does open9x send the frsky telemetry data to the comport for bluetooth?


Verstuurd van mijn GT-I9300 met Tapatalk

bertrand35
9x Developer
Posts: 2764
Joined: Fri Dec 30, 2011 11:11 pm
Country: -

Re: Bluetooth @ ARM

Post by bertrand35 »

It will next week ;)
Bertrand.
bertrand35
9x Developer
Posts: 2764
Joined: Fri Dec 30, 2011 11:11 pm
Country: -

Re: Bluetooth @ ARM

Post by bertrand35 »

I am late... but now it's done (a simple port from ersky9x for now).
So the open9x / sky9x is just a proxy from the FrSky module to the BT device.

It's not tested, so unless somebody says it works, it will not be included in the next release.

To test it, you have to compile with the option BLUETOOTH=YES.

Bertrand.

PS: If needed, I am ok to send a binary to beta testers who cannot compile the FW by themselves, just PM your email address.
User avatar
Peter
Posts: 232
Joined: Thu Dec 29, 2011 8:45 pm
Country: -
Location: Zuid-Holland

Re: Bluetooth @ ARM

Post by Peter »

Nice. I try to compile it myself on Ubuntu 12.04.
I installed many arm packages. But I keep getting arm-none-eabi-gcc not found.

Is there a list of necessary packages?
Romolo
9x Developer
Posts: 1109
Joined: Sat Dec 31, 2011 12:11 am
Country: -
Location: Massa (MS), Tuscany, Italy

Re: Bluetooth @ ARM

Post by Romolo »

I compiled arm toolchain by myself using the build script found here:

http://www.yagarto.de/source/index.html

version 4,7,1
rather easy, but if you have problems tell me the architecture you are using (32/64bit) and i will provide you the compiled toolchain.

User avatar
Peter
Posts: 232
Joined: Thu Dec 29, 2011 8:45 pm
Country: -
Location: Zuid-Holland

Re: Bluetooth @ ARM

Post by Peter »

I just did compile yagarto without any real problem.
And I added the bin directory in front of the PATH.
But I get the same error:

Code: Select all

sh: 1: arm-none-eabi-gcc: not found
make: *** [gccversion] Fout 127
And if I search the yagarto directory for arm-none-eabi-gcc, I cannot find it. In the bin directory of yagarto install I have:

Code: Select all

arm-none-eabi-addr2line  arm-none-eabi-gdb     arm-none-eabi-nm       arm-none-eabi-run
arm-none-eabi-ar         arm-none-eabi-gdbtui  arm-none-eabi-objcopy  arm-none-eabi-size
arm-none-eabi-as         arm-none-eabi-gprof   arm-none-eabi-objdump  arm-none-eabi-strings
arm-none-eabi-c++filt    arm-none-eabi-ld      arm-none-eabi-ranlib   arm-none-eabi-strip
arm-none-eabi-elfedit    arm-none-eabi-ld.bfd  arm-none-eabi-readelf
Do I miss something?
User avatar
Peter
Posts: 232
Joined: Thu Dec 29, 2011 8:45 pm
Country: -
Location: Zuid-Holland

Re: Bluetooth @ ARM

Post by Peter »

Hmmm, if I run

Code: Select all

. ./00-set-env.sh
./08-build-gcc.sh

then I have the following output from the last command:

Code: Select all

make[1]: Map '/home/peter/src/yagarto/gcc-build' wordt binnengegaan
make[2]: Map '/home/peter/src/yagarto/gcc-build/libiberty' wordt binnengegaan
make[3]: Map '/home/peter/src/yagarto/gcc-build/libiberty/testsuite' wordt binnengegaan
make[3]: Er hoeft niets gedaan te worden voor 'all'.
make[3]: Map '/home/peter/src/yagarto/gcc-build/libiberty/testsuite' wordt verlaten
make[2]: Map '/home/peter/src/yagarto/gcc-build/libiberty' wordt verlaten
make[2]: Map '/home/peter/src/yagarto/gcc-build/fixincludes' wordt binnengegaan
make[2]: Er hoeft niets gedaan te worden voor 'all'.
make[2]: Map '/home/peter/src/yagarto/gcc-build/fixincludes' wordt verlaten
make[2]: Map '/home/peter/src/yagarto/gcc-build/lto-plugin' wordt binnengegaan
make  all-am
make[3]: Map '/home/peter/src/yagarto/gcc-build/lto-plugin' wordt binnengegaan
make[3]: Map '/home/peter/src/yagarto/gcc-build/lto-plugin' wordt verlaten
make[2]: Map '/home/peter/src/yagarto/gcc-build/lto-plugin' wordt verlaten
make[2]: Map '/home/peter/src/yagarto/gcc-build/intl' wordt binnengegaan
make[2]: Er hoeft niets gedaan te worden voor 'all'.
make[2]: Map '/home/peter/src/yagarto/gcc-build/intl' wordt verlaten
make[2]: Map '/home/peter/src/yagarto/gcc-build/build-x86_64-unknown-linux-gnu/libiberty' wordt binnengegaan
make[3]: Map '/home/peter/src/yagarto/gcc-build/build-x86_64-unknown-linux-gnu/libiberty/testsuite' wordt binnengegaan
make[3]: Er hoeft niets gedaan te worden voor 'all'.
make[3]: Map '/home/peter/src/yagarto/gcc-build/build-x86_64-unknown-linux-gnu/libiberty/testsuite' wordt verlaten
make[2]: Map '/home/peter/src/yagarto/gcc-build/build-x86_64-unknown-linux-gnu/libiberty' wordt verlaten
make[2]: Map '/home/peter/src/yagarto/gcc-build/build-x86_64-unknown-linux-gnu/fixincludes' wordt binnengegaan
make[2]: Er hoeft niets gedaan te worden voor 'all'.
make[2]: Map '/home/peter/src/yagarto/gcc-build/build-x86_64-unknown-linux-gnu/fixincludes' wordt verlaten
make[2]: Map '/home/peter/src/yagarto/gcc-build/zlib' wordt binnengegaan
make "AR_FLAGS=rc" "CC_FOR_BUILD=gcc -m64" "CFLAGS=-g -O2" "CXXFLAGS=-g -O2" "CFLAGS_FOR_BUILD=-g -O2" "CFLAGS_FOR_TARGET=-g -O2" "INSTALL=/usr/bin/install -c" "INSTALL_DATA=/usr/bin/install -c -m 644" "INSTALL_PROGRAM=/usr/bin/install -c" "INSTALL_SCRIPT=/usr/bin/install -c" "LDFLAGS=" "LIBCFLAGS=-g -O2" "LIBCFLAGS_FOR_TARGET=-g -O2" "MAKE=make" "MAKEINFO=makeinfo --split-size=5000000 --split-size=5000000 " "PICFLAG=" "PICFLAG_FOR_TARGET=" "SHELL=/bin/bash" "EXPECT=expect" "RUNTEST=runtest" "RUNTESTFLAGS=" "exec_prefix=/home/peter/src/yagarto/install" "infodir=/home/peter/src/yagarto/install/share/info" "libdir=/home/peter/src/yagarto/install/lib" "prefix=/home/peter/src/yagarto/install" "tooldir=/home/peter/src/yagarto/install/arm-none-eabi" "AR=ar" "AS=as" "CC=gcc -m64" "CXX=g++" "LD=ld" "LIBCFLAGS=-g -O2" "NM=nm" "PICFLAG=" "RANLIB=ranlib" "DESTDIR=" DO=all multi-do # make
make[3]: Map '/home/peter/src/yagarto/gcc-build/zlib' wordt binnengegaan
if [ -z "32" ]; then \
	  true; \
	else \
	  rootpre=`${PWDCMD-pwd}`/; export rootpre; \
	  srcrootpre=`cd ../../gcc-4.7.1/zlib; ${PWDCMD-pwd}`/; export srcrootpre; \
	  lib=`echo "${rootpre}" | sed -e 's,^.*/\([^/][^/]*\)/$,\1,'`; \
	  compiler="gcc -m64"; \
	  for i in `${compiler} --print-multi-lib 2>/dev/null`; do \
	    dir=`echo $i | sed -e 's/;.*$//'`; \
	    if [ "${dir}" = "." ]; then \
	      true; \
	    else \
	      if [ -d ../${dir}/${lib} ]; then \
		flags=`echo $i | sed -e 's/^[^;]*;//' -e 's/@/ -/g'`; \
		if (cd ../${dir}/${lib}; make  \
				CFLAGS="-g -O2 ${flags}" \
				CCASFLAGS=" ${flags}" \
				FCFLAGS=" ${flags}" \
				FFLAGS=" ${flags}" \
				ADAFLAGS=" ${flags}" \
				prefix="/home/peter/src/yagarto/install" \
				exec_prefix="/home/peter/src/yagarto/install" \
				GCJFLAGS=" ${flags}" \
				GOCFLAGS=" ${flags}" \
				CXXFLAGS="-g -O2 ${flags}" \
				LIBCFLAGS="-g -O2 ${flags}" \
				LIBCXXFLAGS="-g -O2 -fno-implicit-templates ${flags}" \
				LDFLAGS=" ${flags}" \
				MULTIFLAGS="${flags}" \
				DESTDIR="" \
				INSTALL="/usr/bin/install -c" \
				INSTALL_DATA="/usr/bin/install -c -m 644" \
				INSTALL_PROGRAM="/usr/bin/install -c" \
				INSTALL_SCRIPT="/usr/bin/install -c" \
				all); then \
		  true; \
		else \
		  exit 1; \
		fi; \
	      else true; \
	      fi; \
	    fi; \
	  done; \
	fi
make[4]: Map '/home/peter/src/yagarto/gcc-build/32/zlib' wordt binnengegaan
make[4]: *** Er is geen regel om doel 'all' te maken.  Gestopt.
make[4]: Map '/home/peter/src/yagarto/gcc-build/32/zlib' wordt verlaten
make[3]: *** [multi-do] Fout 1
make[3]: Map '/home/peter/src/yagarto/gcc-build/zlib' wordt verlaten
make[2]: *** [all-multi] Fout 2
make[2]: Map '/home/peter/src/yagarto/gcc-build/zlib' wordt verlaten
make[1]: *** [all-zlib] Fout 2
make[1]: Map '/home/peter/src/yagarto/gcc-build' wordt verlaten
make: *** [all] Fout 2
Error building gcc2
So it seems like zlib is going wrong. I'm on 64 bit by the way.
User avatar
Peter
Posts: 232
Joined: Thu Dec 29, 2011 8:45 pm
Country: -
Location: Zuid-Holland

Re: Bluetooth @ ARM

Post by Peter »

I just tested summon arm tool chain and I could compile that one. And open9x compiles too. Is there any experience with this tool chain? Is it save to use?
bertrand35
9x Developer
Posts: 2764
Joined: Fri Dec 30, 2011 11:11 pm
Country: -

Re: Bluetooth @ ARM

Post by bertrand35 »

Yagarto here!
Does it make BT work?
:)
Bertrand.
User avatar
Peter
Posts: 232
Joined: Thu Dec 29, 2011 8:45 pm
Country: -
Location: Zuid-Holland

Re: Bluetooth @ ARM

Post by Peter »

Yes, it does make the bluetooth work!
bertrand35
9x Developer
Posts: 2764
Joined: Fri Dec 30, 2011 11:11 pm
Country: -

Re: Bluetooth @ ARM

Post by bertrand35 »

Ok then we only need to add the option in companion9x and it will be supported (hopefully next week)
Bertrand.
User avatar
Mechcondrid
Posts: 222
Joined: Fri Dec 30, 2011 3:53 am
Country: -
Location: ledyard, connecticut, United States
Contact:

Re: Bluetooth @ ARM

Post by Mechcondrid »

is there a option to select the baud rate? i did not see one as of 1337
bertrand35
9x Developer
Posts: 2764
Joined: Fri Dec 30, 2011 11:11 pm
Country: -

Re: Bluetooth @ ARM

Post by bertrand35 »

Did you compile open9x yourself? If yes did you use the BLUETOOTH=YES option? If no, that's normal, the option is not enabled for now on the compilation server, it will be in the next release.
Bertrand.
User avatar
Mechcondrid
Posts: 222
Joined: Fri Dec 30, 2011 3:53 am
Country: -
Location: ledyard, connecticut, United States
Contact:

Re: Bluetooth @ ARM

Post by Mechcondrid »

oh i didnt realize it was a separate build option i thought it was just part of the arm build option
User avatar
Rob Thomson
Site Admin
Posts: 4543
Joined: Tue Dec 27, 2011 11:34 am
Country: United Kingdom
Location: Albury, Guildford
Contact:

Re: Bluetooth @ ARM

Post by Rob Thomson »

No point having the menu options for all users. I would hazard a guess that 90% of users have no need of the bluetooth :-)
Slope Soaring, FPV, and pretty much anything 'high tech'
...........if you think it should be in the wiki.. ask me for wiki access, then go add it!
bertrand35
9x Developer
Posts: 2764
Joined: Fri Dec 30, 2011 11:11 pm
Country: -

Re: Bluetooth @ ARM

Post by bertrand35 »

I plan to make it an option enabled in the General menu, when you will select what is connected to each port.
Bertrand.
User avatar
Rob Thomson
Site Admin
Posts: 4543
Joined: Tue Dec 27, 2011 11:34 am
Country: United Kingdom
Location: Albury, Guildford
Contact:

Re: Bluetooth @ ARM

Post by Rob Thomson »

Ah.. now that would be usefull :-)

Dont know where you find the time!!
Slope Soaring, FPV, and pretty much anything 'high tech'
...........if you think it should be in the wiki.. ask me for wiki access, then go add it!

Post Reply

Return to “openTx”