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
 Hardware
 Event for terminal send as custom button
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

rewopen
Pulcino

Austria
5 Posts

Posted - 15/09/2024 :  08:16:45  Show Profile  Reply with Quote
Hello. I would like to create a custom button to send AT+LECCONN=EB199BEEEFE21 to ComPort1. I have replaced the HM-10 module in my Kobo with an FSC-BT630. With the command AT+LECCONN=EB199BEEEFE21 I can receive data from my XCTraxer maxx 2. After disconnecting the power source, the command must be entered again. I have tried to solve this with the SendNMEAPort1 command. The data is not transmitted true to character, the special characters + and = do not work.
The input in the terminal works.
regards Wolfgang

rewopen
Pulcino

Austria
5 Posts

Posted - 11/10/2024 :  08:57:11  Show Profile  Reply with Quote
Hello, is it possible to create a button that sends a defined command to the terminal when compiling myself? How should the script look like and in which folder should it be saved before compiling myself? regards Wolfgang
Go to Top of Page

brunotl
Pterodattilo

France
1148 Posts

Posted - 11/10/2024 :  16:01:25  Show Profile  Reply with Quote
in mster brach, i've added new event `SendDataPort[1-6]` same as `SendNMEAPort[1-6]` but doesn't not add leading '$' nor 'trailing nmea crc' ...

https://github.com/LK8000/LK8000/commit/9e74d02d9a15cdffa018395eb20b2bfe2821ba08#diff-84d1770a3d9b244db35738d40982fb6dd75e8b02cc1944a809f10f33a3cf0731R3446
Go to Top of Page

rewopen
Pulcino

Austria
5 Posts

Posted - 14/10/2024 :  18:22:39  Show Profile  Reply with Quote
Thank you, but it doesn't work.
I compiled with docker. If I enter at the custom-button:
mode=Menu
type=key
event=StatusMessage BT connect
event=SendNMEAPort1 AT+LECCONN=EB199BEEEFE21 /r/n
label=BT Maxx2
location=12
i see with RealTerm $AT*15

if I enter event=SendDataPort1 AT+LECCONN=EB199BEEEFE21 /r/n, I receive nothing. My Bluetooth module is connected as /dev/ttymxc0
regards Wolfgang
Go to Top of Page

rewopen
Pulcino

Austria
5 Posts

Posted - 15/10/2024 :  14:22:33  Show Profile  Reply with Quote
Hello
Now, I can send characters with event=SendDataPort1 to my Bluetooth-Modul, but +-= is causing problems. I need AT+LECCONN=EB199BEEEFE21 and tried it between "" and '', no success.
regards Wolfgang

Edited by - rewopen on 15/10/2024 14:23:06
Go to Top of Page

brunotl
Pterodattilo

France
1148 Posts

Posted - 16/10/2024 :  23:07:38  Show Profile  Reply with Quote
should be fixed by last commit...
Go to Top of Page

rewopen
Pulcino

Austria
5 Posts

Posted - 17/10/2024 :  18:10:21  Show Profile  Reply with Quote
Hello, it works. I have to enter the following characters: event=SendDataPort1 AT+LECCONN=EB199BEEEFE21\r\n
Now I have a custom-button in .xci file to connect the Bluetooth module and my XCTracer Maxx 2.
Thanks for your help.
regards Wolfgang

Edited by - rewopen on 17/10/2024 19:47:27
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.12 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