upm icon indicating copy to clipboard operation
upm copied to clipboard

How to I use mraa/upm(smartdrive) in intel edison with android things SO?

Open ghost opened this issue 8 years ago • 12 comments

I know about this https://developer.android.com/things/sdk/pio/i2c.html But if I can use a UPM sensor (smartdrive in my case) I will can to abstract enough development work https://github.com/intel-iot-devkit/upm/tree/master/src/smartdrive

ghost avatar Dec 27 '16 18:12 ghost

Hi @neuberfran thanks for asking. MRAA & UPM support for Android Things is being worked on and will become available soon for our Java bindings through Android Studio.

Propanu avatar Jan 02 '17 19:01 Propanu

We have officially released MRAA & UPM for Android Things a few days back! You can read more about it here.

Propanu avatar May 11 '17 21:05 Propanu

Hi help me with this in smartdrive UPM https://drive.google.com/file/d/0B9gPdWq4OH-XX2lJb2pvUGRrZHM/view?usp=sharing

https://github.com/intel-iot-devkit/upm/issues/461

Please change https://github.com/intel-iot-devkit/upm/blob/master/src/smartdrive/smartdrive.cxx and https://github.com/intel-iot-devkit/upm/blob/master/src/smartdrive/smartdrive.hpp for this

https://github.com/neuberfran/SmartDriveCorrect/blob/master/smartdrive.cxx and this https://github.com/neuberfran/SmartDriveCorrect/blob/master/smartdrive.hpp

I did several tests and I advise that the best thing to do is

I need this urgent to put upm-smartdrive-1.2.0/ in gradle

ghost avatar May 13 '17 00:05 ghost

This artifact is now available in JCenter. For gradle you can use a compile dependency:

compile 'io.mraa.at.upm:upm_smartdrive:1.3.0'

pylbert avatar May 15 '17 23:05 pylbert

I don't understood. It would be a lot easier for you to make the changes I'm asking for.

ghost avatar May 16 '17 22:05 ghost

Hi, could you just submit a proper PR for this if there are problems with it?

jontrulson avatar May 16 '17 22:05 jontrulson

How to I do this (PR)? Why do not you do this to me?

ghost avatar May 16 '17 22:05 ghost

A PR is a Pull Request. That's when somebody has a patch to add some feature or fix bugs in existing code, then they create a PR so it can be reviewed and eventually merged.

I can't speak for others, but I simply cannot go looking through someone's git repo to try and figure out what is changed and create the PR myself.

PR's are discussed here: https://help.github.com/articles/about-pull-requests/

If there is a problem with the smartdrive, and you have fixed it, then you should create a PR that contains the fixes and submit it so it can be looked at and possibly merged into UPM.

jontrulson avatar May 16 '17 22:05 jontrulson

Thank you. I had already done something like that and did it again now

https://github.com/intel-iot-devkit/upm/pull/551

ghost avatar May 16 '17 22:05 ghost

+jontrulson I need your help. I have issues with a PR created

Look this https://github.com/intel-iot-devkit/upm/pull/551 please

ghost avatar May 16 '17 22:05 ghost

+jontrulson

How to I make whatever changes to the smartdrive src code needed to make it work in my (computer) branch repository?

I created in c:/ two pastes . In paste errataupm I have files with erros. In paste corretaupm I have files corrects

ghost avatar May 17 '17 01:05 ghost

I have errors with git push -u origin smartdrive-fixes

https://drive.google.com/file/d/0B9gPdWq4OH-XMUx1N3VFYlBIM3c/view?usp=sharing

ghost avatar May 17 '17 01:05 ghost