Products > Embedded Computing

Repurpose of smartphones

(1/2) > >>

RoGeorge:
For hobby/edu projects, there are tons of surplus mobile phones.  99% of the smartphones collected at e-waste are fully functional.  Some might be with scratches, or might need a new battery, but otherwise in working condition.

Many have about the same processing power as a Raspberry Pi, but with bundled touchscreen, battery backup, 1-2 webcams, case, mains power adapter and other perks one would have to buy extra for a RPi.  Phones are not as generous in RAM, though depending on the task, 1-4GB of RAM (as a typical 5-10 years old smartphone has), might be more than enough.

Main drawbacks is that it's tricky to overcome vendor locks, or to find a clean OS that properly runs on former mobile phones.  Another limitation is the lack of digital and analog IOs, so most of the peripherals are not directly accessible as in a devboard or a SBC.  Maybe a USB extender for a few IO would be nice.  Such an USB IOextender could be useful for PC, too, or for other SBC/devboards.


To give an example, went to a random collecting center last week, and got virtually for free some e-surplus, including:
- Nokia Lumia 635 - 4x1.2GHz Cortex-A7, 8GB flash, 1GB RAM, 5MP camera, Win8.1 mobile
- Samsung Galaxy J5 - 4x1.2GHz Cortex-A53, 8GB flash, 1.5GB RAM, 13MP camera, Android 6
- Sony Xperia Z5 Compact - 4x1.5GHz Cortex-A53 + 4x2GHz Cortex-A57, 2GB RAM, 23MP camera, Android 6/7


I've searched for Linux on mobile phones for a whole afternoon, and it's confusing.

It seems that for some models there are very specific image builds, with various alternatives for the OS, no idea which one to choose.  Many of them were work in progress, with incomplete hardware support, or with known problems as heating or hanging, some were not even capable of adjusting screen luminosity, or so I've read.

1. - Is there a generic Linux for mobile phones?
2. - Should I let the OS as it is, with all the factory bloatware, and just write an App for that OS, to repurpose the phone for whatever project is to be done?
3. - Is smartphones repurposing a thing for makers, or everybody's just waiting for the next stock replenish of RaspberryPi?

No phone/SIM/carrier functionality needed, only need the peripherals embedded in any smartphone.

50ShadesOfDirt:
I usually just leave a subset of apps running on the older smartphone, and everything is accessible via wifi; phone service aged out or turned off, but the apps I need still run. So, the older smartphone sits in a charger stand, always on, always running those apps for me.

Generally, to do a linux thing on a smartphone, I'd go to these folks:

xda-developers.com/

And then look here for a listing of phones where linux has been reported to work:

xda-developers.com/android-phone-linux-distributions/

You may or may not have to "root" the phone first, in order to do what you want with it:

xda-developers.com/root/

Hope this helps ...

Bicurico:
The Nokia n900 runs Linux. But it was pretty shitty, otherwise.

The best you can do with the phones you got for free is to sell them with profit on eBay...

While they are cheaper than a Raspberry Pi, you will pay with your time spent, no warranties, etc. Most importantly, you won't have the GPIO ports!

Some things are simply not worth the trouble.

This is my opinion, though. Eager to se what other write .

RoGeorge:
They probably wouldn't worth selling, some might have hidden defects, too (for example I've noticed after about a week that the Lumia635 has a problem with the embedded speaker, while on headphones works OK).

From the ones I happened to recover, the Nokia Lumia 635 is just right as a photo camera for the lab, has very good macro.  :-+

It can transfer the pics wireless (which the previous photo camera, a Minolta DiMAGE Z1 can't do), Lumia635 has had a very good camera, and the smartphone is flat, smaller and very convenient to use:  easier to choose the focus point by tapping the screen, has optical focus and some optical zoom, too, can take pics through the optical microscope, etc.  As a plus, the smartphone has Li-Ion battery, which self discharges very slow, in comparison with the NiMH in the Minolta camera.

This is the first pic, taken out of curiosity after a factory reset, and another one taken through an optical microscope.  Both at 50% jpg quality, which doesn't show any visible quality differences, but reduce the file size 5-10 times (for the forum).

ejeffrey:

--- Quote from: RoGeorge on April 29, 2023, 12:12:31 pm ---1. - Is there a generic Linux for mobile phones?

--- End quote ---

No, unfortunately.  Basically the ARM ecosystem is not like the PC world at all in that there is basically no standard platform to target with an OS.  Every SoC is different and every phone uses the SoC a bit differently - and there are no standard APIs such as BIOS, PnP, or ACPI for the OS to discover this at runtime.  Instead a custom image needs to be built for each platform.

In addition the chip makers and IP vendors treat their hardware register interfaces as super secret special sauce.  This is almost completely unjustified, but it means that the drivers are all proprietary closed source and can only be rebuilt by the chip vendor.  So even if you run an alternative OS you are basically stuck with the kernel it shipped with.  And the open source operating systems need to not only build a custom image for each system but to make sure they can work with the variable kernels that ship with different phones.


--- Quote ---2. - Should I let the OS as it is, with all the factory bloatware, and just write an App for that OS, to repurpose the phone for whatever project is to be done?

--- End quote ---

That's almost certainly the easiest, if not the best way to do it.

Navigation

[0] Message Index

[#] Next page

There was an error while thanking
Thanking...
Go to full version
Powered by SMFPacks Advanced Attachments Uploader Mod