Project

General

Profile

Actions

Feature #700

open

Need Phone App

Added by Hammel over 5 years ago. Updated 7 months ago.

Status:
In Progress
Priority:
Immediate
Assignee:
Target version:
Start date:
10 Mar 2019
Due date:
% Done:

50%

Estimated time:
Severity:
01 - Critical

Description

This is probably just a wrapper around the original dialog app from upstream, but might be more.

Update

The switch to PinePhone Pro for HW changes the eco-system for apps. Whatever app is chosen/created, there is a Modem SDK that can be used underneath.

See

This will be hard to test without a SIM


Related issues

Related to Xeon - Action Item #975: Verify touchscreen support on Pinephone ProClosedHammel18 May 2023

Actions
Actions #1

Updated by Hammel over 5 years ago

  • Status changed from New to In Progress
  • % Done changed from 0 to 10

Original PiPhone in python is here: git clone https://github.com/climberhunt/PiPhone.git

This is very short and could probably be written in C fairly easily. It's biggest change from my other apps is the AT modem usage. Modem information is available from Adafruit along with their tutorial which has pinouts and a link to the command manual, although the original didn't get nearly that involved.

I'll probably want to figure out how to make a phone call and send an sms.

Here is some code to send SMS messages. It's written in C for RPi so it's probably a reasonable start for phone calls too. It may be necessary to disable serial port use as configured by default by the bootloader, though I kinda doubt it in my case.

To get notified when a call or message comes in I need to poll on an interrupt on a GPIO pin. The Adafruit page has a link to the reference manual that says which pins to monitor. However, the sysfs interface is now deprecated and new code is supposed to use the new character device libgpiod library Example code is available.

Actions #2

Updated by Hammel over 5 years ago

  • Priority changed from Normal to Immediate
  • % Done changed from 10 to 30
  • Severity changed from 03 - Medium to 01 - Critical

The UI is written and appears to work okay on both the desktop and in Xeon. I can press numbers and special characters (# and *), delete characters and exit the app. The number is displayed at the top of the display.

Next step is to port the call commands from the original app. Then wire up the modem and give it a shot. Of course, I need to order a SIM card first. Probably ought to do that soon.

Actions #3

Updated by Hammel over 1 year ago

  • Description updated (diff)
Actions #4

Updated by Hammel over 1 year ago

  • Target version changed from v0.1 to Xeon 1.0 - Asimov

The phone app will need to be rewritten now that the hardware switched to PinePhone Pro, but may be able to use some of the code/algorithms from Megi's voice calling app. There may also be some ideas that can be gleaned from dialing apps on LinuxPhoneApps.org.

Actions #5

Updated by Hammel over 1 year ago

  • Severity changed from 01 - Critical to 05 - Very Low
Actions #6

Updated by Hammel about 1 year ago

  • Target version changed from Xeon 1.0 - Asimov to 3.0 - Corrino
Actions #7

Updated by Hammel about 1 year ago

  • Description updated (diff)
Actions #8

Updated by Hammel 9 months ago

  • Severity changed from 05 - Very Low to 01 - Critical
Actions #9

Updated by Hammel 9 months ago

Restarting this work. I just tested the app on the PinePhone Pro and it comes up okay. The text field showing the dialed number is not displayed but the close button does work (which means the touchscreen seems to work, or at least is pretending to).

Actions #10

Updated by Hammel 8 months ago

  • Description updated (diff)
Actions #11

Updated by Hammel 8 months ago

I have fixes for this in the pidialer sandbox but need to fix RM #975 before I can accurately test them.

Actions #12

Updated by Hammel 8 months ago

  • Related to Action Item #975: Verify touchscreen support on Pinephone Pro added
Actions #13

Updated by Hammel 8 months ago

  • Description updated (diff)
Actions #14

Updated by Hammel 8 months ago

  • Severity changed from 01 - Critical to 03 - Medium
Actions #15

Updated by Hammel 7 months ago

  • % Done changed from 30 to 50

PiDialer is implemented fully with the new keyboard and textline widgets.

What's needed now is integration of Megi's dialer app which is just the call audio routing setup, not the the actual modem dialing. Then integrate is instructions for interacting with the modem. The audio setup and modem dialing are likely to be connected, although setting up audio could be done at pidialer start time.

I also need to get a SIM card.

Actions #16

Updated by Hammel 7 months ago

  • Severity changed from 03 - Medium to 01 - Critical
Actions

Also available in: Atom PDF