Sharing character devices between an Android phone and a Linux PC?
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Sharing character devices between an Android phone and a Linux PC?
I am an amateur and need some help.
I am working on a project, where character devices on an android phone must show up on the /dev directory of a linux PC. It can be shared via bluetooth /wi-fi or maybe USB.
For example character devices like camera and accelerometer of the phone must me shared seamlessly from a Linux PC so that the PC thinks that these devices are its own.
I don't know where to start. I have looked all over the net, but nothing of this sort is present.
I have learnt about creating device drivers in linux, compiling them and adding them as modules and making them show up in /dev.
Since “everything is a file” on linux, Can it be shared , using bluetooth library or something.
Please direct me where to go next. Thank you.
1. Root the Android - xda-developers.com's forums or cyanogenmod.com's wiki are probably searchable on this. If the searches are blank, it may not be rootable.
2. It sounds like you are putting a rare amount of messing and software upon yourself to make something happen for which I see no huge advantage. My old Android has an Arm6 cpu running up to 528Mhz, "multitasking ability", internet access and a "hard disk" with space, a "sound card" and "graphics". Does one University student smell the project of another?
Running the pc from the Android, that might be more interesting.
Does one University student smell the project of another?
yeah
Quote:
Originally Posted by business_kid
2. It sounds like you are putting a rare amount of messing and software upon yourself to make something happen for which I see no huge advantage.
I disagree. The possibilities of the proposed frame work is amazing. Imagine a smart environment, where all your devices - Pc, phone, Tv etc can access the sensors and peripheral s of each other as if its its own.
i quote from the paper: Which was actually submitted by Nokia research Labs
Quote:
For example, it should be possible to use the accelerometer in a mobile phone as an input device to control a video game running on a PC, or a high-definition camera attached to a television to act as the input video source for a video chat session running on a mobile phone.
Quote:
Imagine you are playing your favorite 3D game on your mobile phone using the phone’s accelerometer to control your movements and you would like to continue to use the same natural gestures when you want to play the game on your desktop PC. Or imagine that you are using your phone’s navigation software while walking but once you get in your
car, you would like the same software to seamlessly start using the car’s more accurate embedded GPS system without skipping a beat.
I just want to use this framework to make available all the sensors/peripherals like, camera, accelorometer, gyroscope,GPS etc , on the android phone to be available remotely from the linux PC. All these devices on the phone must show up in the /dev of the pc. That would be intresting. eg you can use camera on the android phone as a webcam on the pc.
I know there are applications that can do that. But this would be different- it would apply to all the devices.And there is no need to install a seperate app to do this.
Quote:
Originally Posted by business_kid
My old Android has an Arm6 cpu running up to 528Mhz, "multitasking ability", internet access and a "hard disk" with space, a "sound card" and "graphics".
You are going to have this problem: linux wants to be secure, users, groups, and doing stuff as root is generally a bad idea. So now root is available in the ether. . .
Enjoy the challenge! Next year's project for me is in fibre optics.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.