Sensors on WearOS - Wear OS Q&A, Help & Troubleshooting

I'd like to develop an application for a smart watch which will periodically turn on & off sensors on the watch/band, ala microphone/camera/etc, record their activity, do minimal processing and store the result on the watch/band. This result will be uploaded to the mobile phone when a bluetooth connection is established.
To my best understanding, this can only be done with Tizen/WearOS/FitbitOS, not with other watch operating systems such as Huami's ones (Amazfit/Xiami MI/etc). This also means that it's a (big) watch and not a (small) band that is suitable for the above.
Is this correct and how to do this otherwise if it's wrong?
How much of a hassle it is to do this in WearOS for a seasoned professional programmer who is a complete noob in WearOS/smartwatches/mobile devices?
Can we develop a headless app that runs constantly?
Are there any tutorials on the subject?

Related

[Q] Car Kit Tester App

Hi all,
i am working for a german car manufacturer as test lead for telephone car kits.
I often have problems with testers reporting not enough data for network related problems/errors.
My idea is to supply them with any Android device with a little application recording the track they were driving and as additional info also gives me relevant data of the mobile cells they were booked in during the testdrive.
Recording the track data is the easy part with apps like "My Tracks".
There is also an app called "Antennas" in the market which give me basic cell infos.
Problem is I only need the cell data from cells in which i was registered, i dont need tons of data from neighbouring cells etc...
Since some very experienced devs are around here i'd like to ask how much effort it would be to develop such an app which i.e. generates a *kml file which i can overlay ontop of my track information (i.e. sets a flag everytime i change to a new mobile cell on my way with its relevant data (Cell-ID, network type, fieldstrength etc...))?
Or does anyone knows an app which already does this?
Sorry for my english
effort
prototype could be done fast (several days). but it will take you way more effort to create a stable app which runs on all android devices. does your department already have some experience in android development? some experience in java/eclipse/embedded programming would help a lot.
-didi
We have no one with particular android experience, but we have several ppl with much eclipse/java knowledge and experience.
I'll just ask them, they have to try it in their free time lol, because this app development is not covered by my project and far from official

Contest: Win a ARM CORTEX M0 Development Board

We're giving away a STM32 F0 DISCOVERY development board.
Contest
Enter your idea in this thread
add pictures, links, video or whatever else you can add.
Do anything you can (except create new accounts) to get people to click the thanks button
Contest ends Saturday, 23 June 2012
Winner gets a STM32f0 Discovery board
Rules
Anyone caught creating new accounts will be disqualified. There are automated systems in place for detecting this which alert admins and senior moderators to pay attention to your new account for review.
One post per person. Multiple posts will be deleted. No exceptions
Use of social media (Google+, Twitter, Facebook, Youtube) are encouraged.
TLDR
You have one week. Put your idea in this thread, then get on your favorite social media service to get people to click that thanks button on your post.
I'm going to use it to educate myself.
I'm going to use it to write a High performance micro kernel (i will later fix up for cortex-A8, HD2 ) and for testing the ARMASM code i write, (which i currently test on my only phone, HD2 and it's painful to do so thanks to HTC's SPL, MPU, NAND fatigue and the fact that i need it working the next day).
It has Thumb (2) support so i will try my hand at that too, thumb2 promises quite a lot of code density with somewhat the same performance.
Also I'd be porting the Little Kernel to it, which already has support for cortex-M3
I'll use it to make the word a better place........just joking ......mass destruction awaits if i get that........so don't give it to meh.
Basically because I have no idea how to use a development board, I'm gonna use it to learn how to use one and also learn to code which is something I have been looking into. So yeh....
i will use it to develop a better wireless usb card. i already have one. a arthos 2255. i would like to mod these too together for use with any O.S. my idea would be that you just plug and play. kida like a gui. you plug it in and a window comes up and you can see the progress of it emulating it self into your system O.S and any hardware without internet. might have to put bigger a storage device. but it can be done.. AND I WILL DO IT!
Nerdie stuff
Well im going to mod my phone and learn how to be a android developer
I want to add it to my LEGO collection >
I am joking around ... I love u developers
I'm going to find out what it is.
Unboxing video and then blend it
Sent from my XT910 using Tapatalk 2
What I'll do with it...
I would try and create a WiFi cracker with it by connecting a WiFi midule to it and also try to run the Android OS on it, and finally I would do some home automation on it, DLNA and remote controlling various things.
Please hit thank you!
I really really want this...
I will build full framework that connects your Discovery to internet (home network => public IP, if you have one), runs web server, gathers data from all over the house via NRF24L01-based wireless network (another small ATTiny based modules with humidity, temperature, .. sensors, controlling lights and power etc) and provides them on web page.
I would give it one of the devs for the lg optimus thrill/3d because I'm not a dev but it would probably help development for my device greatly and mabie we could get some good stuff going on this phone
I would use it to play around with android.
*se-nsei. said:
I'm going to find out what it is.
Click to expand...
Click to collapse
Hahaaha, I'm in the same boat with you
I would use it to develop a custom AOSP-based image for use as a low-cost media tablet, with IR, DLNA, Remote Control and a TV tuner for the ultimate lounge room accessory.
A Real Car-puter
I would use it, in conjunction with an application board, to build a carputer...not one that allows you to listen to or watch pirated media. One which will automate things such as wipers and headlights. For the wipers, my car has only one intermittent setting so I would like to add in more settings. Maybe also look into rain sensors at some point but not initially. Headlights will be controlled by time (automatically coming on at night)and light sensors to turn on lights during daytime hours when lighting conditions are poor or if I am driving through a tunnel). Also use speed limit information hacked from gps maps to light up my dash gauges with different colours depending on my current speed and the posted speed limit (Red > 5% over speed limit, green for 10% under to 5% over the speed limit blue > 10% under the speed limit and no colour for missing speed limit information.
I know the usage is light for such a board but it leaves room for expansion and the projects I have here seem to be a good starting point for learning with.
Future projects could include controlling things such as ignition, doors and windows, heating etc from my phone and eventually building a customised alarm system. Also, some sort of laser mounted to a servo that will project a line/image onto the road to give following drivers a guide to what distance they should be from you depending on the speed you are travelling.
Good luck to everyone that enters.
First, I would learn how to use it then use it to get the Robitics merit badge(im in scouts) and show other scouts how to do it. I would also integrate it somehow into my science project that will help people(still have some planning to do :/) for school.
Good Luck
I'm going to use it to build a giant robotic Obama
im going to use it for education and i will be using it for my 2 final years of high school making automated systems in my engineering and IT Classes!

Anything similar to Pebblekit JS?

The Wear SDK doesn't appear to have anything similar to the Pebblekit JS Framework. Does this mean that any watch app that wants to access the internet (such as a simple weather app) will need a dedicated companion phone app? Or am I missing something?
The Wear emulator technically looks like Android, but on a small screen, and with a different "launcher".
You can run many existing Android apps on it. I tried one of mine, and it worked, more or less, but the UI was squished as would be expected.
This is why it's called "Android Wear". It's just an Android variant. There may be some "normal" Android APIs it won't support, and there will be watch specific APIs I'm sure.
IMO, it makes sense and is smart of Google to do this. I don't want to deal with 10 different smartwatch OS's.
NOW is the time for a bigger, richer smartwatch OS, because it's now possible to put enough ARM compute power in a watch sized device.
I presume that Google Play will support watch apps at some point. And I'm looking forward to seeing custom watch ROMs. I hope there won't be too much locking down of devices, or at least a Nexus watch or 2 that can be unlocked.
I agree with all of your comments, but I also think the cool thing about pebble is that I can write a watch app that will, for example, get weather from a JSON source on the internet without requiring the user to install another phone app. I don't think you can do that with Wear.

[Advice] Developing a 'kiosk' app - which watch / approach for a prototype?

Good evening - I'm a long time lurker at XDA and have gleaned a lot of useful information from this site, so thanks for that.
I have a client who is looking to build prototype for a device containing only one app, for a very young market, which will be the only app runnable on the device (think a smartwatch tamagotchi) - the priorities are that there's bluetooth, wifi and an accelerometer fully accessible to the app, and that the watch be relatively cheap. Now, while I've been a developer and sysadmin for a number of years, this is my first Android or wearable project, so I wanted to see if anyone had any useful tips on approaches to take, and devices to try for this prototype. (Also, I know the idea of locking down a device like this might be an anathema to people posting here. See this as an academic exercise in what's possible.)
As far as the approach goes, it seems to me I have a few options:
- Get a watch already running Android Wear, develop the app using Google's APIs and see if I can the modify the OS to boot into a single app.
- Get a (probably cheaper) watch which I can then flash with a ROM built by someone else, but will still allow me to access the accelerometer, then lock this down
- As above, but build my own ROM, containing only my app.
As far as devices go, we've had a look at some £20 Chinese wonders with MediaTek MT2502 chips, but I couldn't see how I'd get into them to flash a new ROM and I could't find anyone here using the same model. I've been looking at the MOTOACTV, which I see has many fans, but am also quite happy to consider other (particularly cheaper) alternatives, as long as I'll be able to develop something for them, get to the accelerometer and eventually send data to a server.
Sorry for the long post. Any advice?

A wear OS capable watch for developing custom app on?

Hi, I want to hack together an android app for my own needs and side load it on a wearable running, or capable or running, wear os. My hardware requirements are minimal: no SIM, GPS, haptics or any special hardware required -- just something cheap and readily available in China, where I am now. I see the name Ticwatch cropping up on these forums, but might be overkill.
What are the odds I can load Wear OS on a random android-looking device off Taobao?
Thanks for any recommendations.

Categories

Resources