PostFrontal Forum
PostFrontal Forum
LK8000_Support_Forum | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 LK8000 International Support
 General Support
 Declaration via Bluetooth Module (HC-05) to ERIXX
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

David Benda
Pulcino

Czech Republic
9 Posts

Posted - 24/04/2019 :  17:06:46  Show Profile  Reply with Quote
Hello,
I want to ask about support for sending a declaration from LK8000 to ERIXX via Bluetooth.
I have LK8000 version 7.0 installed on my Android 9 mobile phone and I have a module based on the HC-05 board, which provides NMEA data transfer to the LK8000, to connect to the ERIXX flight recorder, which works seamlessly - from ERIXX to LK8000. In the opposite direction - the transfer of the declaration is not working, the action ends with an error message: Error! Task NOT Declared! The device is not responding!
I examined the terminal via the serial port of the bluetooth module to see if the LK8000 was trying to send data to ERIXX and establish communication, but no communication was made.
I tried to select another device in Device Settings in LK8000 and send data with LX Nano 3 LK8000 - trying to establish communication.
Thus, the error is obviously not in the bluetooth module, but it seems to be either a bad setup or a SW error in LK8000.

Thank you in advance for your reply.

Davson

AlphaLima
Moderator

Germany
1978 Posts

Posted - 24/04/2019 :  18:17:41  Show Profile  Visit AlphaLima's Homepage  Reply with Quote
Maybe it is related to this:
https://www.postfrontal.com/forum/topic.asp?TOPIC_ID=8945
So you could you eventually test it with V6.0?

Nano3 driver declaration will not send any data as long no nano compatible device is conneted.
So you can't be sure it is not in the BT module.
But you can send data manually using the terminal in the device dialog (Beta 7.1b Version).
https://play.google.com/store/apps/details?id=org.lk8000.test

To check if the hardware is OK you also meight test the declaration with XCSoar.


Please send a runtime.log of the failed declaration.
You should test it with a cable connection (e.g. to LK PC Version) first, Bluetooth timeouts meigt be critical.

Edited by - AlphaLima on 24/04/2019 18:38:08
Go to Top of Page

David Benda
Pulcino

Czech Republic
9 Posts

Posted - 25/04/2019 :  16:22:00  Show Profile  Reply with Quote
The Nano 3 driver declaration sent the following characters via Bluetooth to the serial link: $ PLXVC, INFO, R * 0D three times.
Runtime.log will send unsuccessful declarations.
I will try to send characters through the terminal in the LK8000 Beta 7.1b dialog and write if it worked.
Please explain what you mean
"Bluetooth timeouts meigt be critical".
Thanks for the ideas.

I'll continue to explore.

Davson
Go to Top of Page

David Benda
Pulcino

Czech Republic
9 Posts

Posted - 25/04/2019 :  19:53:53  Show Profile  Reply with Quote
The terminal-terminal connection in both directions with the LK8000 Beta 7.1b works. I can send and receive data.
Similarly, when attempting to declare, LK8000 returns a "Error! Task NOT declared:" and no LK8000 data will be sent.
I'm sending RUNTIME.log

Davson
Go to Top of Page

David Benda
Pulcino

Czech Republic
9 Posts

Posted - 25/04/2019 :  19:57:02  Show Profile  Reply with Quote
[097227694] ------------------------------------------------------------
[097227694] . Starting LK8000 v7.1b Mar 21 2019 LINUX
[097227694] . System Name: Linux localhost
[097227694] . Kernel Version: 4.4.148-perf+
[097227694] . Kernel Build: #1 SMP PREEMPT Fri Jan 11 12:32:56 2019
[097227694] . Machine Arch: aarch64
[097227694] . Built with GCC 4.2.1
[097227694] . Compiler options:
[097227694] + ENABLE_OPENGL
[097227694] + HAVE_GLES
[097227694] + USE_EGL
[097227694] + NO_DASH_LINES
[097227694] . TESTBENCH option enabled
[097227694] . BUGSTOP option enabled
[097227694] . USELKASSERT option enabled
[097227695] . Globals_Init
[097227695] . Free ram=69316 K storage=4294967295 K
[097227695] . Host and Cpu informations not available
[097227695] . Program execution path : </system/bin/>
[097227695] . Program system directory : </data/app/org.lk8000.test-GLjS3PHzZaMhG-oyDO7utQ==/base.apk/>
[097227695] . Program data directory : </storage/emulated/0/LK8000/>
[097227709] ... ProfileResetDefault
[097227709] ... LoadProfile </storage/emulated/0/LK8000/_Configuration_beta/DEFAULT_AIRCRAFT.acf>
[097227709] ... LoadProfile </storage/emulated/0/LK8000/_Configuration_beta/DEFAULT_PILOT.plt>
[097227709] ... LoadProfile </storage/emulated/0/LK8000/_Configuration_beta/DEFAULT_DEVICE.dvc>
[097227709] ... LoadProfile </storage/emulated/0/LK8000/_Configuration_beta/DEFAULT_PROFILE.prf>
[097227710] ... LKProfileInitRuntime
[097227710] . Loading default PNA settings
[097227710] . No special regsets for this device
[097227710] ..... WindowResize RECT (rltb) 720 0 0 1280
[097227710] . Create main window
[097227713] ... First ScreenHasChanged: 720 x 1280
[097227713] . InitLKScreen: AUTORES 720x1280
[097227713] ..... ScreenSizeX = 720
[097227713] ..... ScreenSizeY = 1280
[097227713] ..... ScreenDensity = 326
[097227713] ..... ScreenGeometry = 4
[097227713] ..... ScreenSize(enum) = 0
[097227713] ..... Screen0Ratio = 2.666667
[097227713] ..... ScreenScale = 3.000000
[097227713] ..... ReferenceDpi = 110
[097227713] ..... ScreenPixelRatio = 2.963636
[097227713] ..... UseHiresBitmap = true
[097227713] ..... ThinSize = 3
[097227713] ..... NIBLSCALE(1) = 3
[097227713] ..... NIBLSCALE(1.0) = 3.000000
[097227713] ..... NIBLSCALE(2) = 6
[097227713] ..... NIBLSCALE(2.0) = 6.000000
[097227713] ..... DLGSCALE(1) = 3
[097227713] ..... DLGSCALE(2) = 6
[097227713] ..... GestureSize = 150
[097227713] ..... LKVarioSize = 65
[097227714] ..... AircraftMenuSize = 98
[097227714] ..... CompassMenuSize = 149
[097227714] ..... TerrainQuantiz. = 3
[097227714] . Init_Fonts_1
[097227734] . Init_Fonts_2
[097227734] ... (LKFonts) Forcing font resize
[097227748] ... Loading Fixed Bitmaps
[097227763] ... Loading Profile Bitmaps
[097227764] ... LKObjects_Create
[097227764] ... SnailTrail_Create
[097227764] . SNAIL[0]=24 ratio=2.963636
[097227764] . SNAIL[0]=24 scale=0
[097227764] . SNAIL[5]=11
[097227764] . SNAIL[5]=11 scale=0
[097227764] . SNAIL[7]=8
[097227764] . SNAIL[7]=8 scale=0
[097227764] . (N) SNAIL[15]=18
[097227764] . SNAIL[15]=18 scale=0
[097227771] . Init Calculations
[097227771] . Reset flight statistics
[097227784] . Startup dialog, RUN_MODE=0
[097229331] ... **** FLY MODE SELECTED ****
[097229338] .... Info/Credits old=new version, nothing to do.
[097229338] ... LoadProfile </storage/emulated/0/LK8000/_Configuration_beta/DEFAULT_PILOT.plt>
[097229338] ... LoadProfile </storage/emulated/0/LK8000/_Configuration_beta/DEFAULT_DEVICE.dvc>
[097229338] ... LoadProfile </storage/emulated/0/LK8000/_Configuration_beta/DEFAULT_AIRCRAFT.acf>
[097229338] ... LoadProfile </storage/emulated/0/LK8000/_Configuration_beta/DEFAULT_PROFILE.prf>
[097229339] ... LKProfileInitRuntime
[097229339] . Loading default PNA settings
[097229339] . No special regsets for this device
[097229339] . Init_Fonts_1
[097229340] . Init_Fonts_2
[097229340] ... (LKFonts) Forcing font resize
[097229384] ... Loading input events file
[097229384] ... Loaded 73 Text2Event (max is 256)
[097229390] ... Loaded 457 Menu Events (Max is 2048)
[097229392] . Loading polar file </data/app/org.lk8000.test-GLjS3PHzZaMhG-oyDO7utQ==/base.apk/assets/polars/VSO-10.plr>
[097229392] ... Polar ww0=347.00 ww1=0.00 v0=90.00,-0.78 v1=130.00,-1.410000 v2=160.00,-2.44 area=12.00
[097229395] . Loading Terrain...
[097229397] . Terrain Open RasterMapRaw </storage/emulated/0/LK8000/_Maps/CZ_500.DEM>
[097229399] ... Terrain size is 2419200
[097229399] ... Available memory is 72556kB
[097229399] ... Terrain : use heap memory
[097229404] . ReadWayPoints
[097229404] . CloseWayPoints
[097229404] . InitVirtualWaypoints: start
[097229404] . InitVirtualWaypoints: done (19 vwp)
[097229408] . Waypoint file 1 format: SeeYou
[097229419] . Waypoint file 2 format: SeeYou
[097229422] . LOADED 1326 WAYPOINTS + 19 virtuals
[097229422] ... Init LDRotary @h19:40:04 (NO FIX)
[097229422] . Init LK8000
[097229422] . LoadRecentList: loaded 2 recent waypoints
[097229422] . Init ModeTable for LK8000:
[097229422] .. Ok
[097229422] . ResetNearestTopology
[097229436] . open AirfieldFile FAILED <>
[097229437] .... SetHome (current=-1), reset=0
[097229437] .... Home Reset
[097229437] ...... No HomeWaypoint, default position set to terrain center
[097229454] . Reading OpenAir airspace file
[097229459] . Now we have 112 airspaces
[097229459] . OpenAir: 0 airspaces of 111 excluded by Terrain Filter
[097229459] ... No airspace file 2
[097229459] ... No airspace file 3
[097229459] ... No airspace file 4
[097229459] ... No airspace file 5
[097229459] ... No airspace file 6
[097229459] ... No airspace file 7
[097229460] ... No airspace file 8
[097229460] ... No airspace file 9
[097229460] . SortAirspace
[097229460] . OpenTopology
[097229526] . LKMAPS Advanced Topology file found
[097229529] . FLARMNET database, found 0 IDs
[097229529] ... OpenFLARMDetails: </storage/emulated/0/LK8000/_Configuration_beta/IDFLARM.TXT>
[097229529] ... No flarm details local file found
[097229531] . Register serial devices
[097229531] . ComCheck Init
[097229531] . Device A is <IMI ERIXX> Port=BT:98:D3:51:FD:7E:74
[097229542] . Device B is <Internal> Port=internal
[097229543] . ComPort 1 ReadThread : started
[097229549] . Device C is DISABLED.
[097229549] . Device D is DISABLED.
[097229549] . Device E is DISABLED.
[097229549] . Device F is DISABLED.
[097229550] . LiveTracker API V2 will use server WWW.LIVETRACK24.COM if available.
[097229550] ... InitFDR: no configuration, FDR disabled
[097229553] .... WinMain CreateDrawingThread
[097229553] ... ** UpdateActiveScreenZone 0,0,720,1280
[097229553] ... Unload Fixed Bitmaps
[097229554] ... Unload Profile Bitmaps
[097229554] ... Loading Fixed Bitmaps
[097229567] ... Loading Profile Bitmaps
[097229619] .... CreateCalculationThread
[097229671] .... ProgramStarted=InitDone
[097229714] . CloseProgressDialog
[097229715] . GCE_STARTUP_REAL
[097229715] . ProgramStarted=NormalOp h19:40:04 (NO FIX)
[097229715] . Free ram=71824 K storage=4294967295 K
[097229784] ... BOTTOMBAR splitter=3
[097229788] ... LKBatteryManager waiting for first update
[097230215] . LoadTask : </storage/emulated/0/LK8000/_Tasks/Default.lkt>
[097230785] ... LKBatteryManager waiting for first update
[097230808] ... SCREEN RESOLUTION CHANGE DETECTED: 1280 x 720
[097230808] ... ChangeScreen suspending Draw Thread
[097230808] . InitLKScreen: AUTORES 1280x720
[097230808] ..... ScreenSizeX = 1280
[097230808] ..... ScreenSizeY = 720
[097230808] ..... ScreenDensity = 326
[097230808] ..... ScreenGeometry = 4
[097230808] ..... ScreenSize(enum) = 0
[097230808] ..... Screen0Ratio = 2.647059
[097230808] ..... ScreenScale = 3.000000
[097230808] ..... ReferenceDpi = 110
[097230808] ..... ScreenPixelRatio = 2.963636
[097230808] ..... UseHiresBitmap = true
[097230808] ..... ThinSize = 3
[097230808] ..... NIBLSCALE(1) = 3
[097230808] ..... NIBLSCALE(1.0) = 3.000000
[097230808] ..... NIBLSCALE(2) = 6
[097230808] ..... NIBLSCALE(2.0) = 6.000000
[097230808] ..... DLGSCALE(1) = 3
[097230809] ..... DLGSCALE(2) = 6
[097230809] ..... GestureSize = 150
[097230809] ..... LKVarioSize = 80
[097230809] ..... AircraftMenuSize = 98
[097230809] ..... CompassMenuSize = 149
[097230809] ..... TerrainQuantiz. = 3
[097230809] ... LKObjects_Delete
[097230809] ... SnailTrail_Delete
[097230809] ... LKObjects_Create
[097230809] ... SnailTrail_Create
[097230809] . SNAIL[0]=24 ratio=2.963636
[097230809] . SNAIL[0]=24 scale=0
[097230809] . SNAIL[5]=11
[097230809] . SNAIL[5]=11 scale=0
[097230809] . SNAIL[7]=8
[097230809] . SNAIL[7]=8 scale=0
[097230809] . (N) SNAIL[15]=18
[097230809] . SNAIL[15]=18 scale=0
[097230809] . Init_Fonts_1
[097230812] . Init_Fonts_2
[097230812] ... (LKFonts) Forcing font resize
[097230817] ... ** UpdateActiveScreenZone 0,0,1280,720
[097230817] ... ChangeScreen resuming Draw Thread
[097230817] ... ** UpdateActiveScreenZone 0,0,1280,720
[097230817] ... Unload Fixed Bitmaps
[097230818] ... Unload Profile Bitmaps
[097230818] ... Loading Fixed Bitmaps
[097230827] ... Loading Profile Bitmaps
[097230883] ... BOTTOMBAR splitter=5
[097231214] ... LKBatteryManager: HaveBatteryInfo ENABLED
[097231695] ... Virtualkeys: s_xleft=427 s_xright=853 s_bottomY=587
[097231697] .... Init TerrainRenderer area (0,0) (1280,720)
[097231698] ... Terrain quant=3 ixs=428 iys=240 TOTAL=102720
[097231698] . TerrainRenderer: malloc(205440) ok
[097234737] . LK Battery Manager V1 started, current charge=44%
[097239714] ... GPS baro source back available h19:40:04 (NO FIX)
[097239714] . GPS NMEA source changed to port 1 h19:40:04 (NO FIX)
[097245115] ... ComPort 1 StopRxThread: Cancel Wait Event !
[097245115] ... ComPort 1 StopRxThread: Wait End of thread !
[097245115] . ComPort 1 ReadThread : terminated
[097245132] Error! Task NOT declared : Za#345;ízení neodpovídá!
[097245133] . ComPort 1 ReadThread : started
[097248333] ... ComPort 1 StopRxThread: Cancel Wait Event !
[097248333] ... ComPort 1 StopRxThread: Wait End of thread !
[097248334] . ComPort 1 ReadThread : terminated
[097248346] Error! Task NOT declared : Za#345;ízení neodpovídá!
[097248346] . ComPort 1 ReadThread : started
[097250644] ... ComPort 1 StopRxThread: Cancel Wait Event !
[097250645] . ComPort 1 ReadThread : terminated
[097250657] Error! Task NOT declared : Za#345;ízení neodpovídá!
[097250657] . ComPort 1 ReadThread : started
[097258506] . Entering shutdown h19:40:04 (NO FIX)
[097258506] . Free ram=219504 K storage=4294967295 K
[097258541] . First GPS DATE: 2019-4-25 h19:40:34 (NO FIX)
[097258543] .... RangeTurnepoint=327/500 (TPrange=100) RangeLandable=320/500 (LNrange=150) retunecount=0 retrycount=0 sinceretry=0s
[097258687] ... UpdateLogBook start
[097258687] ... Not flying, no reason to do logbook on exit
[097258697] ... PilotSave </storage/emulated/0/LK8000/_Configuration_beta/DEFAULT_PILOT.plt>
[097258697] ... AircraftSave </storage/emulated/0/LK8000/_Configuration_beta/DEFAULT_AIRCRAFT.acf>
[097258698] ... SaveProfile </storage/emulated/0/LK8000/_Configuration_beta/DEFAULT_PROFILE.prf>
[097258698] ... DeviceSave </storage/emulated/0/LK8000/_Configuration_beta/DEFAULT_DEVICE.dvc>
[097258699] . Save_Recent_WP_history
[097258699] . Save history to </storage/emulated/0/LK8000/_Configuration_beta/History.txt>
[097258699] . SaveRecentList: saved 2 recent waypoints
[097258719] .... Save default task
[097258719] . SaveTask : saving </storage/emulated/0/LK8000/_Tasks/Default.lkt>
[097258720] .... SaveTask: Ok
[097258721] .... Clear task data
[097258721] . CloseWayPoints
[097258721] . Waypoint list was not empty, closing.
[097258735] .... CloseTerrainTopology
[097258735] . CloseTopology
[097258736] .... Deinit TerrainRenderer
[097258736] . CloseTerrain
[097258736] . LiveTracker closed.
[097258736] . Stop COM devices
[097258736] ... ComPort 1 StopRxThread: Cancel Wait Event !
[097258737] . ComPort 1 ReadThread : terminated
[097258738] .... Close Messages
[097258739] .... Destroy Button Labels
[097258740] .... Delete Objects
[097258740] . Settings for 112 airspaces saved to file </storage/emulated/0/LK8000/_Airspaces/AspConfig.LK>
[097258741] . CloseLKAirspace
[097258741] .... Delete Critical Sections
[097258741] .... Close Calculations
[097258741] .... Close Windows
[097258741] . ComPort 0: status=1 Rx=2 Tx=0 ErrRx=0 ErrTx=0
[097258741] . ComPort 1: status=1 Rx=0 Tx=0 ErrRx=0 ErrTx=0
[097258741] . ComPort 2: status=1 Rx=0 Tx=0 ErrRx=0 ErrTx=0
[097258741] . ComPort 3: status=1 Rx=0 Tx=0 ErrRx=0 ErrTx=0
[097258741] . ComPort 4: status=1 Rx=0 Tx=0 ErrRx=0 ErrTx=0
[097258741] . ComPort 5: status=1 Rx=0 Tx=0 ErrRx=0 ErrTx=0
[097258741] . Finished shutdown h19:40:34 (UTC 17:40)
[097258741] . Free ram=219436 K storage=4294967295 K
[097258744] . WndMain::OnDestroy
[097258744] .... Close Progress Dialog
[097258745] ... LKObjects_Delete
[097258745] ... SnailTrail_Delete
[097258745] ... Unload Profile Bitmaps
[097258745] ... Unload Fixed Bitmaps
[097258746] .... WinMain terminated, realexitforced=0

Davson
Go to Top of Page

AlphaLima
Moderator

Germany
1978 Posts

Posted - 25/04/2019 :  22:30:52  Show Profile  Visit AlphaLima's Homepage  Reply with Quote
Nothing obvious in the log. The Errix driver has not beed changed since years.
The problem is, that we don't have this logger for testing.
I'm afraid I cannot help you. I have just two ideas for testing:
Can you declare a task using XCSoar?
Can you please try with a cable connection e.g. PC Version?

Go to Top of Page

David Benda
Pulcino

Czech Republic
9 Posts

Posted - 26/04/2019 :  20:25:35  Show Profile  Reply with Quote

So I already tested XCSoar and doing the same thing, when declaring it is not connected Logger.
I need to talk to someone who programmed ERIXX.
ERIXX, according to all the symptoms, must somehow be the device from which it is to be declared, let it know that it is ready to accept the declaration data, those navigation SWs are waiting for it, they will not even try to send anything and report that there is no device to be declaration sent, attached.

Davson
Go to Top of Page

David Benda
Pulcino

Czech Republic
9 Posts

Posted - 26/04/2019 :  23:38:00  Show Profile  Reply with Quote
Here's how IMIConnect establishes a connection with ERIXX.
Blue progress is data from PC to ERIXX and yellow is vice versa.
It can be seen that ERIXX broadcasts NMEA and it receives a message from the PC, then ERIXX stops sending NMEA and sends its status to the PC.
With the bluetooth module it is so that there is no effort to start the transfer from the mobile phone, it simply does not send anything and there is no problem sending data out through the terminal.
https://photos.app.goo.gl/eah1S7qhMYPwiLJT9

Davson

Edited by - David Benda on 27/04/2019 08:41:48
Go to Top of Page

AlphaLima
Moderator

Germany
1978 Posts

Posted - 27/04/2019 :  08:52:19  Show Profile  Visit AlphaLima's Homepage  Reply with Quote
YOu should try version 6.0, with a cable connection:
https://www.postfrontal.com/forum/topic.asp?TOPIC_ID=8945



Edited by - AlphaLima on 27/04/2019 08:55:56
Go to Top of Page

David Benda
Pulcino

Czech Republic
9 Posts

Posted - 27/04/2019 :  10:56:06  Show Profile  Reply with Quote
It doesn't solve anything. Apparently, the LK8000 cannot use the Bluetooth port to submit a declaration because it does not allow for this option at all. Expects and looks for an open COM line. In the case of devices with Android OS, the cable does not solve anything either, because this OS does not know serial ports, or it just emulates them through the SW driver and it is not implemented in LK8000. Android uses IOIO Uart ports and doesn't work with those LK8000. Sending a declaration expects an open COM port and this cannot be done because the LK8000 does not include a driver that emulates - created a virtual COM port through the IOIO Uart.

For LX Nano 3 developers have already solved this thing because when setting up this device, the LK8000 sends Bluetooth data, but unfortunately the communication protocols are not compatible, so the declaration fails. I think it shouldn't be a problem for developers to look into the code as it is handled by LX Nano 3 and the same principle applied to ERIXX. I'd be very grateful if one of the developers was doing this.

Davson

Edited by - David Benda on 27/04/2019 11:02:01
Go to Top of Page

brunotl
Pterodattilo

France
1090 Posts

Posted - 27/04/2019 :  10:56:21  Show Profile  Reply with Quote
@David : i've sent a PM to you ...
Go to Top of Page

David Benda
Pulcino

Czech Republic
9 Posts

Posted - 27/04/2019 :  17:56:18  Show Profile  Reply with Quote
Thank you Bruno very much for help, it works great :-)
quote:
Originally posted by brunotl

@David : i've sent a PM to you ...


Davson
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To:
PostFrontal Forum © PostFrontal - La community del Volo a Vela Go To Top Of Page
This page was generated in 0.16 seconds. Snitz Forums 2000

Since 2006, owned and maintained by PostFrontal S.A.S. di Giuliano Golfieri & c. - VAT ID: IT05264240960
THIS WEBSITE ONLY USES FUNCTIONAL COOKIES
Privacy & Cookie Policy