the-modem-distro / pinephone_modem_sdk

Pinephone Modem SDK: Tools to build your own bootloader, kernel and rootfs
GNU General Public License v3.0
597 stars 64 forks source link

Do not work or it is not for that? #138

Closed Emilio2801 closed 2 years ago

Emilio2801 commented 2 years ago

Manjaro plasma on SD. The command after sudo su echo -ne "AT+EN_CAT\r" > /dev/ttyUSB2 do not work in my pinephonepro I do not hear the dial tone on the phone

jg110 commented 2 years ago

Just using echo didn't work for me either. Send the AT command with minicom instead, that's what I did and now I get an emulated alerting tone.

Emilio2801 commented 2 years ago

Thanks.I am not Linux expert. Do not know how to us minicom Can you point me to some web page? Thanks

Enviado desde Proton Mail móvil

-------- Mensaje original -------- A 11 ago. 2022 19:18, jg110 escribió:

Just using echo didn't work for me either. Send the AT command with minicom instead, that's what I did and now I get an emulated alerting tone.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

Emilio2801 commented 2 years ago

Could be this sentence to be used?

sudo minicom -b 115200 -D /dev/ttyUSB2

Enviado desde Proton Mail móvil

-------- Mensaje original -------- A 11 ago. 2022 19:18, jg110 escribió:

Just using echo didn't work for me either. Send the AT command with minicom instead, that's what I did and now I get an emulated alerting tone.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

Biktorgj commented 2 years ago

As root, run minicom -D /dev/ttyUSB2

Then, type ATZ and press enter (doesn't matter if you dont see anything), it should answer with an "OK"

After that, send AT+EN_CAT and hit enter to enable custom alerting tones

Emilio2801 commented 2 years ago

Ohh! Many thanks. How do I send AT+EN_CAT?

Enviado desde Proton Mail móvil

-------- Mensaje original -------- A 12 ago. 2022 9:12, Biktor escribió:

As root, run minicom -D /dev/ttyUSB2

Then, type ATZ and press enter (doesn't matter if you dont see anything), it should answer with an "OK"

After that, send AT+EN_CAT and hit enter to enable custom alerting tones

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

Biktorgj commented 2 years ago

Same as with ATZ, just type it in Minicom and press ENTER :)

Emilio2801 commented 2 years ago

Thanks I will try during the day. I am going to teach my grandchildren s to ride a bike. Have a nice day

Enviado desde Proton Mail móvil

-------- Mensaje original -------- A 12 ago. 2022 9:34, Biktor escribió:

Same as with ATZ, just type it in Minicom and press ENTER :)

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

Emilio2801 commented 2 years ago

sudo su Passwordinicom -D /dev/ttyUSB2 And minicom:cannot open /dev/ttyUSB2:No such file or directory Note:pinephonepro running Manjaro plasma on the SD

Enviado desde Proton Mail móvil

-------- Mensaje original -------- A 12 ago. 2022 9:12, Biktor escribió:

As root, run minicom -D /dev/ttyUSB2

Then, type ATZ and press enter (doesn't matter if you dont see anything), it should answer with an "OK"

After that, send AT+EN_CAT and hit enter to enable custom alerting tones

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

Emilio2801 commented 2 years ago

Ohh! I did it in the eMMC and after installing minicom and executing the first command I write ATZ and the answers was OK but when writing AT+EN_CAT it halt in AT and could not continue. I press, anyway all the rest but see nothing I exit with Ctrl+A I did it in the SD because I can have a conversation with another phone but in the eMMC with PostmarketosOS The call arrives to the other phone but no conversation is possible. How can I get the minicom work in the SD? Regards

Enviado desde Proton Mail móvil

-------- Mensaje original -------- A 12 ago. 2022 9:12, Biktor escribió:

As root, run minicom -D /dev/ttyUSB2

Then, type ATZ and press enter (doesn't matter if you dont see anything), it should answer with an "OK"

After that, send AT+EN_CAT and hit enter to enable custom alerting tones

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

Emilio2801 commented 2 years ago

Hi reading I found setserial that I installed with yay (not possible with pacman) In the SD. Then I execute Sudo setserial -g /dev/tryUSB[01] and get /dev/ttyUSB0 /dev/ttyUSB1 Could be one of them be used instead of ../ttyUSB2 for minicom to work and get the dial tone from the SD? Regards Emilio

Enviado desde Proton Mail móvil

-------- Mensaje original -------- A 12 ago. 2022 9:34, Biktor escribió:

Same as with ATZ, just type it in Minicom and press ENTER :)

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

Emilio2801 commented 2 years ago

Finally I could close minicom via ssh as Ctrol +A and then Q it was much easier but even when I got the OK for the two sets ATZ Ok AT+EN_CAT Ok I still do not here the Dialing tone. Many thanks for your help and teach. Nice weekend Emilio

Enviado desde Proton Mail móvil

-------- Mensaje original -------- A 12 ago. 2022 9:34, Biktor escribió:

Same as with ATZ, just type it in Minicom and press ENTER :)

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

jg110 commented 2 years ago

According to this you should have a /dev/EG25.AT on Manjaro that points to the modem, although according to that thread the modem is on /dev/ttyUSB2.

List the devices under /dev (do ls /dev) and see if there's anything in there that looks relevant.

If nothing else you could put Mobian on a microSD card and use it to send the AT commands, since then you'll definitely have the modem under /dev/ttyUSB2.

Emilio2801 commented 2 years ago

Thanks. I will investigate. But it happen yesterday that the Manjaro plasma on SD do not wake up with tow boot as everyday so I need to flash a new SD. I did nothing but installed 'satellite" via flatpak and used it twice with no result. I do not understand why it happened. I changed the SD with an Arch phosh and wake up very well. But I have postmarketOS plasma on the eMMC and I cannot even have a conversation with the other end. As I am learning I do not care much but , sometimes, it is a little bored but I appreciate a lot the affords of programmers to help us so I should keep on going and I will do with your help as well. Thanks

Enviado desde Proton Mail móvil

-------- Mensaje original -------- A 17 ago. 2022 4:32, jg110 escribió:

According to this you should have a /dev/EG25.AT on Manjaro that points to the modem, although according to that thread the modem is on /dev/ttyUSB2.

List the devices under /dev (do ls /dev) and see if there's anything in there that looks relevant.

If nothing else you could put Mobian on a microSD card and use it to send the AT commands, since then you'll definitely have the modem under /dev/ttyUSB2.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

Emilio2801 commented 2 years ago

In /dev. Yes I have EG25.AT EG25G.MODEM EG25.JMRA

What to do now? Regards Enviado desde Proton Mail móvil

-------- Mensaje original -------- A 17 ago. 2022 5:32, jg110 escribió:

According to this you should have a /dev/EG25.AT on Manjaro that points to the modem, although according to that thread the modem is on /dev/ttyUSB2.

List the devices under /dev (do ls /dev) and see if there's anything in there that looks relevant.

If nothing else you could put Mobian on a microSD card and use it to send the AT commands, since then you'll definitely have the modem under /dev/ttyUSB2.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

Emilio2801 commented 2 years ago

Sorry EG25.NMEA Last one

Enviado desde Proton Mail móvil

-------- Mensaje original -------- A 17 ago. 2022 5:32, jg110 escribió:

According to this you should have a /dev/EG25.AT on Manjaro that points to the modem, although according to that thread the modem is on /dev/ttyUSB2.

List the devices under /dev (do ls /dev) and see if there's anything in there that looks relevant.

If nothing else you could put Mobian on a microSD card and use it to send the AT commands, since then you'll definitely have the modem under /dev/ttyUSB2.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

Emilio2801 commented 2 years ago

I also installed last Mobian version on the SD and the telephone works very well. Dial tone and voice with the other end. Also mmcli for position and gpsd but not geoclue

Enviado desde Proton Mail móvil

-------- Mensaje original -------- A 17 ago. 2022 5:32, jg110 escribió:

According to this you should have a /dev/EG25.AT on Manjaro that points to the modem, although according to that thread the modem is on /dev/ttyUSB2.

List the devices under /dev (do ls /dev) and see if there's anything in there that looks relevant.

If nothing else you could put Mobian on a microSD card and use it to send the AT commands, since then you'll definitely have the modem under /dev/ttyUSB2.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

airtower-luna commented 2 years ago

/dev/EG25.AT should be a symbolic link to the device to send AT commands to. That way you don't have to guess which of the /dev/ttyUSB* ones is the right one. :slightly_smiling_face:

Emilio2801 commented 2 years ago

Finally I could do minicom -D /dev/ttyUSB2 on my SD and. Type ATZ Ok AT+EN_CAT Ok

But I am not exiting minicom well . I have the virtual keyboard and Press Ctrl +A and then X but The terminal remains black.Something don't work and I thing it is exiting minicom , as no result. I need to exit minicom well to get results, I guess. Thank you. I keep on going

Enviado desde Proton Mail móvil

-------- Mensaje original -------- A 12 ago. 2022 9:34, Biktor escribió:

Same as with ATZ, just type it in Minicom and press ENTER :)

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

Biktorgj commented 2 years ago

Doesn't matter if you exit minicom correctly or not, if the command is sent and you get an OK you're good to go.

Also, the custom alert tone setting is persistent, if you enable it once it should stay like that until you change it or flash the stock firmware. I've also been asked to add this as a setting in the chat, so I'll probably add it soon there too

Emilio2801 commented 2 years ago

Thanks. Closed

Enviado desde Proton Mail móvil

-------- Mensaje original -------- El 15 oct. 2022 4:43, Biktor escribió:

Doesn't matter if you exit minicom correctly or not, if the command is sent and you get an OK you're good to go.

Also, the custom alert tone setting is persistent, if you enable it once it should stay like that until you change it or flash the stock firmware. I've also been asked to add this as a setting in the chat, so I'll probably add it soon there too

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

Emilio2801 commented 1 year ago

Good morning again. I installed pipewire and I have telephones calls in both directions and can hear voice but the other end receive the voice but has also a strong noice. If I could make you a phone call from Barcelona, Spain you could have a first hand impression and guide me with the problem in my PinephonePro. Would it be possible for you to help? Note I updated to 0.8.4 Regards Emilio

Enviado desde Proton Mail móvil

-------- Mensaje original -------- El 12 ago. 2022 9:34, Biktor escribió:

Same as with ATZ, just type it in Minicom and press ENTER :)

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>