02-15-2020, 03:02 PM
(This post was last modified: 02-15-2020, 03:03 PM by PinePhoneCoder.)
I am trying to get the phone part of the PinePhone working, what I wrote here is what I tried, however I did not succeed yet and I hope you can help me with it.
I use this as a guideline:
For the mixer it is written:
And I tried to do that in bash
Next is how to send AT commands to the modem?
If I run the following command I get the modem device name and information:
And I want to run something like:
But /quectelqmi_0 needs do be a device file and it is not I guess.
Who want to help me out here?
Thank you in advance!
I use this as a guideline:
(02-08-2020, 12:21 PM)kop316 Wrote: https://megous.com/dl/tmp/modem.txt
For the mixer it is written:
Quote:1) alsamixer
- set "Line Out Source" to "Mono Differential"
- Unmute "AIF1 Slot 0 Digital DAC"
- (optional) unmute the microphone / mute loudpeaker
And I tried to do that in bash
Code:
# Enable audio
sudo modprobe snd_soc_simple_amplifier
sudo modprobe snd_soc_simple_card_utils
# Unmute audio
amixer -c 0 set 'AIF1 Slot 0 Digital DAC' unmute
# Mute speaker (audio will loop otherwise trough the speaker and mic, terrible noise!!)
amixer -c 0 set 'Line Out' mute
# Unmute the ear speaker? (not sure)
amixer -c 0 set 'Earpiece' unmute
# Open microphone
amixer -c 0 set 'Mic1' unmute
# Set volume
amixer sset 'Line Out' 0%
amixer sset 'Earpiece' 100%
amixer sset 'Mic1' 100%
# Set mono
amixer sset 'Line Out Source' 'Mono Differential'
Next is how to send AT commands to the modem?
If I run the following command I get the modem device name and information:
Code:
/usr/share/ofono/scripts/list-modems
And I want to run something like:
Code:
sudo echo "AT+QTTS=2,\"Welcome to use the module of QUECTEL" > /quectelqmi_0
But /quectelqmi_0 needs do be a device file and it is not I guess.
Who want to help me out here?
Thank you in advance!