Hardware controlling plus

Started by 40°, December 18, 2024, 07:19:52

0 Members and 1 Guest are viewing this topic.

40°

What is the purpose of this project?
LM4 is able to control the phone without touching it. For example, zoom control, turning GPS on and off, and so on. The control is performed by remote control by pressing the buttons. But the set of these actions is limited.
This project provides additional opportunities to control the phone without touching it. The control is performed by remote control by pressing the buttons. The button can be pressed once or several times, released once or several times, and held down for a long time. The project also has a set of actions that are performed automatically depending on different conditions.

Note 1.
The most important thing!!!
There are functions in the project that duplicate the functions of LM4. But they work a little differently. Don't ask "Why?". Only because I don't quite like how it's done in LM4. For example, I like to get a hint about a turn 20 meters before it. It's just a whim of mine. Happiness is in the little things.

Note 2.
 The project uses some actions that require ROOT rights.

Note 3.
For remote control, I use this remote control: https://aliexpress.ru/item/1005001388320314.html . It works reliably. He is not afraid of frosts. It doesn't turn off for a long time. Supports commands: the button is pressed, the button is held down, the button is released. The battery lasts for a long time.

Note 4. It seems to me that this project will be quite difficult to transfer to another phone. Many profiles work with events from Logcat. Why am I publishing it? Perhaps this will be useful to someone, if not completely, then at least partially.

What can this project do??
The phone can be used in two modes:
1. The phone is positioned in such a way that you always see the screen. This is the "I See" mode. 
2. The phone is positioned in such a way that you CANNOT see the screen. This is the "I Hear"\"in my Pocket" mode.

яВижу   вКармане   Actions
#   #   Using the remote control buttons, you can:
+   -   Turn the screen on and off without locking it or disabling the phone's security system
+   +   Hear a hint about the direction of the next turn and the distance to that turn
+   +   Hear a hint about the current time, how long you are on the road, what distance you have traveled, what distance is left until the end of the route
+   +   Record audio POI when the screen is on
+   +   Record audio POI when the screen is off
+   -   Open the Text POI recording dialog
+   -   Switch the keyboard to voice-to-text mode if the POI recording dialog is open
+   -   Save a text POI
+   -   Cancel the creation of a text POI
+   +   Use the tasker scene for additional actions in LM4 "with one tap". I use: Set the "I See" mode, Set the "in Pocket" mode, Start track recording, End track recording, Restart online monitoring
#   #   Additional automatic actions:
+   -   Before turning, the screen turns on, the map is scaled so that the turning point is at the very top of the map screen (setting in meters)
+   -   After completing the rotation, the map is scaled so that the rotation point is at the very top of the map screen, after a pause, the screen turns off (setting in meters)
+   -   If the screen was turned on by the remote control button, the map is scaled so that the pivot point is at the very top of the map screen
+   +   Give a voice/sound signal "attention" near the turn (setting in meters)
+   +   Say the turn command near the turn (setting in meters)
+   +   After completing the turn, if the next turn is "far away", the distance to the point of the next turn and the direction of the turn will be pronounced.  If the next turn is close, only the turn command will be spoken. (value in meters)
-   +   "Voice events The screen is on and the screen is off (important for monitoring the screen status when the phone is not visible )
"
+   +   Notify if the LM4 service suddenly stops working
+   +   Notify if LM4 starts
+   +   An external program is launched that gives voice instructions on how to get to the point with the specified coordinates, regardless of the direction of your movement (Ay Ay program). The program starts if the coordinates of the point have been written to the clipboard
+   +   When the Bluetooth remote control is connected, the keyboard icon will be removed from the status bar
+   +   To hear a prompt if the Bluetooth remote suddenly turns off. An attempt will be made to reconnect
+   +   To announce the event "Start of track recording"\"Track recorded"

The project itself can be downloaded here:
https://drive.google.com/drive/folders/18ynCWTk9Ed6lQMyZONda306P2UzfUvlt

Neoaliphant

Very interesting, ive got a camera bluetooth remote, i might try something similar,
  •  

40°

We need to try it.
You can control the locus with a single button on the headset.
The main thing is that the button is connected to the phone.
  •