portapack-mayhem / mayhem-firmware

Custom firmware for the HackRF+PortaPack H1/H2/H4
https://hackrf.app
GNU General Public License v3.0
3.56k stars 578 forks source link

Microphone-How to keep TX? #224

Closed luozhiwenchn closed 4 years ago

luozhiwenchn commented 4 years ago

It seems that long press the button in the middle will make it keep TX, but the device will restart

eried commented 4 years ago

Restart after how long?

luozhiwenchn commented 4 years ago

For 2 seconds. I am not sure if it is right to long press the button in the middle to make it keep TX.

gullradriel commented 4 years ago

Is it really restarting ? Because the specs says 2 seconds on the left button or the middle button on arrow pad is making the device start or stop, not restarting. On my setup it's restarting only if I'm pressing the reset button on top of the portapack.

gerryk commented 4 years ago

Not seeing the behaviour being described. This is on a Portapack H1 I select TX Activation: PTT, hold down the middle button in the jogwheel and it stays in transmit for as long as I hold the button.

luozhiwenchn commented 4 years ago

Sorry. I may have a problem with my words. I am using H2, I am just wondering how to make it keep TX. Which button should I press and how long?

gerryk commented 4 years ago

I think the problem is that on H2, there is some power management circuitry that is entirely in hardware, so not controllable from the firmware. One of these functions seems to be a soft power button, which is bound to the encoder pushbutton. This is defined in the software as the 'action' button, so changing this would be problematic. Any change to the button assignments on the encoder/direction buttons and action button would break the UI. The touscreen TX key does work though, but I concede is awkward to use.

gullradriel commented 4 years ago

I tested on my H2 and yes, pushing 2 seconds on dial button or center button is making the device to power on or off (that's in most H2 specs on aliexpress => see here: https://fr.aliexpress.com/item/4000178925159.html). Only good solution is to press the touchscreen, or make the microphone app support a single push to turn on TX and a single push to turn it off.

luozhiwenchn commented 4 years ago

So there is no way to keep it TX if I am using H2 without the touchscreen? It is necessary to find another way to keep it TX for H2. As GullCode said, making the microphone app support a single push to turn on TX and a single push to turn it off is a good solution.

gerryk commented 4 years ago

So there is no way to keep it TX if I am using H2 without the touchscreen?

Not right now, that I can think of.

It is necessary to find another way to keep it TX for H2.

This is difficult, since the code has no way to tell whether it is H1 or H2.

As GullCode said, making the microphone app support a single push to turn on TX and a single push to turn it off is a good solution.

This seems like the only option, apart from modifying the board. If it was me, I would mod the board to either have a separate button, or re-use another button as the power button. I get that this is not a workable solutino for most.

luozhiwenchn commented 4 years ago

I think H1 or H2 can be chosen by the users. Like Options-Interface-Hide H1 speaker option. But I think making the microphone app support a single push to turn on TX and a single push to turn it off is the best.

gerryk commented 4 years ago

Agreed, certainly the simplest, which almost always equates with best.

luozhiwenchn commented 4 years ago

Hope all of these can be changed soon

luozhiwenchn commented 4 years ago

@eried Thanks to all of you.

gullradriel commented 4 years ago

Just for the sake of it I asked my H2 provider if he can provide a way to shortcut the poweroff function on one of the buttons. I'll tell you if he answers.

gerryk commented 4 years ago

@luozhiwenchn I suggest adding to the description exactly what is needed. Generally speaking developers work with well-defined requirements and acceptance criteria.

@GullCode

Just for the sake of it I asked my H2 provider if he can provide a way to shortcut the poweroff function on one of the buttons. I'll tell you if he answers.

If I could get a decent high quality photo of the front and rear I could probably work something out. There are no schematics publicly available for the H2 unfortunately.

gullradriel commented 4 years ago

I'll see if I can do it (if I find some time). From what I see on mine the circuits are visibles but under a black paint that's covering the whole pcb

gerryk commented 4 years ago

I'll see if I can do it (if I find some time). From what I see on mine the circuits are visibles but under a black paint that's covering the whole pcb

Not too concerned about the soldermask... I'm curious to know what the traces from the centre button and the encoder button to on their way to whatever pin header they connect to. Also interested in the detail around the power management IC.

gerryk commented 4 years ago

XSX on Discord posted that the little man icon on the top bar activates TX toggle, so I tested it and it does. Funny how avan after having this thing for nearly 2 years I still learn things about it regularly.

gullradriel commented 4 years ago

Well. It is indeed activating kind of a toggle, but while blanking out screen and controls. I think it's just due to the way the little guy is working, and it has nothing to do with the app itself.