Feature #700

Need Phone App

Added by Hammel 4 months ago. Updated 3 months ago.

Status:In ProgressStart date:10 Mar 2019
Priority:ImmediateDue date:
Assignee:Hammel% Done:

30%

Category:-
Target version:v0.1
Severity:01 - Critical

Description

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

Associated revisions

Revision 30e35cab
Added by Hammel 3 months ago

RM #700: Initial import of phone dialing app for Xeon phones. This app currently is just the UI and does not yet make calls.

Revision 55b4db11
Added by Hammel 3 months ago

RM #700: Fixed location of install files so app works with launcher. Switched to loading images early and only scaling once to improve performance on lightweight RPi Zero W.

Revision d0c9cf0d
Added by Hammel 3 months ago

RM #700: Added Exit button to allow leaving the app from the touchscreen interface.

Revision 129c5ad4
Added by Hammel 3 months ago

RM #700: Increase large font size so numbers is buttons are larger and clearer.

Revision 3739ee36
Added by Hammel 3 months ago

RM #700: Add modem handling functions for placing calls and sending texts. Cleanup references to "launcher", from which this code was originally based (for UI stuff). Remove extraneous db functions.

History

#1 Updated by Hammel 4 months 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.

#2 Updated by Hammel 3 months 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.

Also available in: Atom PDF