Android Things NFC (Raspberry PI) - Android Q&A, Help & Troubleshooting

I'm having trouble reading NFC tags on my Raspberry Pi. I'm using galarzaa90's library (new account, can't post outside link. However googling "galarzaa90 android-things-rc522" will give you the library). I installed his example app and it boots and when I click on "START" it starts to read (my NFC Tag lights up) however, putting a card on my reader results in nothing...
Any one an idea why this could be or an alternative solution to get NFC working on Android Things?

Related

Barcode data transfer idea

Hello XDA-Developers!
I had an idea this morning.
Current Transfer Tech:
Bluetooth - Requires the user of both devices to enable their bluetooth devices, then they have to go about pairing the devices to allow file tansfer (this is not always the case though). then the, shall we call him "sender" has to select a file and attempt to bluetooth the file to the, shall we say "reciever", who in turn has to accept the data and then the transfer starts.
Wifi - not used very often but files can be transferred through an app or through an ftp server etc from one device to another. this however requires a little, if not more, skill to complete and can be fustrating looking for ip addresses etc.
NFC - this is an emerging technology that is being implemented in more and more devices such as the Galaxy Nexus. This is a very efficient and fast way to transfer data from one NFC enabled device to another NFC enabled device, however like most of the android community, my phone does not have this capability.
My Idea:
This is just an idea and you may say what you like about it but i thought i would write it down here, the first place that came into my mind where i thought that someone could take this idea further.
Now my friend uses a blackberry, and i know that that word is almost taboo on this forum but hear me out. He uses his blackberry for a service called BBM (Blackberry Messenger), i am sure you are all familiar, and to add a friend of his so that he can contact them using the service, he simply uses his blackberrys camera to scan a 2D Barcode on his friends device and all his BBM Pin and other data is transfered through the phones camera so that they can communicate on the service.
I though that this could be used more on android devices. This could be used to transfer small files from one device to another such as contact information, websites (already a reality), even larger files such as word documents and other reletavely small documents. Now i know that these files cannot be displayed on a single 2D barcode but maybe they can be send using not one barode but a series, the barcodes could be in an animation on the device screen, showing one barcode after another all and the "reciever" could simply hold his device's camera over the animation and it could read the series of barcodes and then compile all of the data to create a single document.
Now i realise that this could be a silly idea as the ammount of data that can be transferred through a 2D barcode is not huge, al lot of barcodes would be needed to transfer a larger file than someones contact details.
Let me know what you think, and you are free to do what you want with my idea, i wont hold it against you
hazzahex
Hello
I know it's a little late (only 3 years lol), but I just wanted you to know that I've implemented a system similar to the one you describe
It was my college's final project
hazzahex said:
Hello XDA-Developers!
I had an idea this morning.
Current Transfer Tech:
Bluetooth - Requires the user of both devices to enable their bluetooth devices, then they have to go about pairing the devices to allow file tansfer (this is not always the case though). then the, shall we call him "sender" has to select a file and attempt to bluetooth the file to the, shall we say "reciever", who in turn has to accept the data and then the transfer starts.
Wifi - not used very often but files can be transferred through an app or through an ftp server etc from one device to another. this however requires a little, if not more, skill to complete and can be fustrating looking for ip addresses etc.
NFC - this is an emerging technology that is being implemented in more and more devices such as the Galaxy Nexus. This is a very efficient and fast way to transfer data from one NFC enabled device to another NFC enabled device, however like most of the android community, my phone does not have this capability.
My Idea:
This is just an idea and you may say what you like about it but i thought i would write it down here, the first place that came into my mind where i thought that someone could take this idea further.
Now my friend uses a blackberry, and i know that that word is almost taboo on this forum but hear me out. He uses his blackberry for a service called BBM (Blackberry Messenger), i am sure you are all familiar, and to add a friend of his so that he can contact them using the service, he simply uses his blackberrys camera to scan a 2D Barcode on his friends device and all his BBM Pin and other data is transfered through the phones camera so that they can communicate on the service.
I though that this could be used more on android devices. This could be used to transfer small files from one device to another such as contact information, websites (already a reality), even larger files such as word documents and other reletavely small documents. Now i know that these files cannot be displayed on a single 2D barcode but maybe they can be send using not one barode but a series, the barcodes could be in an animation on the device screen, showing one barcode after another all and the "reciever" could simply hold his device's camera over the animation and it could read the series of barcodes and then compile all of the data to create a single document.
Now i realise that this could be a silly idea as the ammount of data that can be transferred through a 2D barcode is not huge, al lot of barcodes would be needed to transfer a larger file than someones contact details.
Let me know what you think, and you are free to do what you want with my idea, i wont hold it against you
hazzahex
Click to expand...
Click to collapse

[Q] NFC

So I understand this phone has NFC. I've been looking online and am still confused. Is this the thing I can connect to Google Wallet and use my phone to pay for stuff at the checkout by putting the phone up to the reader thingee I see all over??
It supports nfc but as of now i think it cant be incorporated in any of our roms. Maybe wen ics comes
Sent from my NRGized Amaze...
via xda premium
NFC only works on unrooted phones.
NFC is there and it does work, but nothing uses it yet.
Upon pressing my phone against an NFC enabled soda machine at work, the CATLOG file clearly shows that the system's NFC chip is being used, but there isn't an app out right now that utilizes it.
I have installed the APK for Wallet (crashes on startup by the way) and it looks to me like the HTC is using its own NFC method and not one that is recognized by Google's software. (it crashes because it looks for the NFC drivers in a different location than what the NFC catlog shows me)
This summer, Tmobile/ATT/Verizon are rolling out their ISIS mobile payment system (competetor to Google Wallet). So far it seems like ISIS is planning on launching with a better backing than Google Wallet. They have Visa, Mastercard, Discover, and American Express on board. So I would guess that more of us will be seeing mobile payments later this year
Thanks, that's what I figured. I noticed Google Wallet only allowed Citi Bank, and I don't do business with them. I was reading some posts on here where some people got the apk to work on their Android based phones, but the results were mixed with a few people having it work, and many not.
Anyways, thx for the replies.
there is a setting under "wireless & networks" that you have to enable for it to work. maybe try that
Its true that the setting is there and it does currently work, not very many apps use it currently.
I believe you can program NFC tags using the built in NFC tag app that came with the phone. I think part of the reason that it isn't functional right now is because it doesn't use the standard Android NFC functions but instead uses HTC's own. Apps like PayPal don't recognize the phone as having NFC, so the function for it is absent.
But as I stated before, I did tap my phone to a NFC enabled soda machine while it was recording a CATLOG, it does show that its accessing the NFC hardware. Opening Google Wallet shows that its searching in a whole different area for the NFC drivers, and it comes back as not being able to do so.
In sense 3, I'm pretty confedant that HTC created their own makeshift NFC system and hopefully in 4.0+ they use the one that was built into Android
I was walking through a building at work and noticed a soda machine with paypass built into it, so I turned on Catlog and tapped it up against the machine.
This is what the Catlog reads:
NFC JNI Callback:
nfc_jni_transaction_callback() - status=0x0000[NFCSTATUS_SUCESS
NFC JNI > SE EVT_FIELD_ON
NFC JNI Notify Nfc Service
Click to expand...
Click to collapse
So yes, the Amaze is reading the NFC from the machine. This seems to repeat about 10-15 times in the few seconds that I moved my phone over the machine.
I believe that the "Notify Nfc Service" is trying to call out to an app that can access the information from the soda machine, but since there is only the default NFC app availiable to us right now, it doesn't do anything with the data.
I'll try running Wallet with Catlog soon to see what its trying to call
Do you have kind a batch for the soda machine?
If yes, you can try to copy the nfc informations from it to your phone and use your phone as a batch...
Not quite sure what you mean about having a batch on the Soda Machine

NFC Tag Writing

Is there an app out there that we can write/config NFC tgas to launch apps, wifi, Bluetooth etc?
I wouldn't mind getting some and putting them around the house & car!
zok-star said:
Is there an app out there that we can write/config NFC tgas to launch apps, wifi, Bluetooth etc?
I wouldn't mind getting some and putting them around the house & car!
Click to expand...
Click to collapse
I've used NFC Interactor to write tags, I think it's a dollar or two. Just so you know apparently there is a windows phone limitation where it can't format tags. In my case I had to use a friends android tablet for that. I don't think there is a way to toggle wifi/bluetooth at the moment and it might not be possible with the SDK. But you can definitely start apps or phone settings if you find the GUID for it.
Goatmaster said:
I've used NFC Interactor to write tags, I think it's a dollar or two. Just so you know apparently there is a windows phone limitation where it can't format tags. In my case I had to use a friends android tablet for that. I don't think there is a way to toggle wifi/bluetooth at the moment and it might not be possible with the SDK. But you can definitely start apps or phone settings if you find the GUID for it.
Click to expand...
Click to collapse
that's a bit of a shame!
Found some useful links!
URI scheme listing
Reserved file and URI associations for Windows Phone 8
NFC tags, is there a good reliable place to get blank tags (no graphics on them) in Canada? I've been looking around on the net for the plastic ones but all I can find are paper ones or ones with company or product logos. Any recommendations are welcome.
NFC Publisher
Hi all
I've downloaded NFC Publisher but haven't tested it yet.
God bless
andrew-in-woking

viktorgino's HeadUnit Desktop

Hi guys!
I'm working on a Car PC software and I'm looking for contributors. You can find the project on github: https://github.com/viktorgino/headunit-desktop
More about the project:
HeadUnit Desktop is a based free and open source software that is intended to be run on computers built into cars. This software is currently under active development and lot of the features are experimental. As of now there are three main features:
Media player with a media library and media scanner
Android Auto™ client
DAB radio (integrating welle.io)
Proposed features:
FM radio
CAN bus sniffer with a customizable profile for each car.
Click to expand...
Click to collapse
Some screenshots of the GUI: http://imgur.com/a/pnrpy
And a screen recording: https://www.youtube.com/watch?v=26EYhQuH-Xs
I'm using the C++ and Qt for this project, the front end is QML.
If you are interested in helping with this project, then PM me here, hit me up on Gitter https://gitter.im/headunit-desktop or drop me an email on [email protected]
Pretty excited about this, wish I could help
very interesting project today I try it on my p9 lite. any help files regarding steering wheel controls and buttons?
This is exactly the type of experience that I was looking for, something that allows AA but also maintains AM/FM radio so this can be used as a replacement to the current stereo.
I've been trying to get this installed, but running into some issues in the instructions.
I have the PI all setup, and now following the instructions here:
I'm stuck on this step:
After you’ve installed Qt add the lib folder its installed in to the library load path, the bin folder to your PATH and the lib/pkgconfig folder to the pkg-config path.
I'm not really sure what it's telling me to do here or how to do it.
Can anyone help?
So i got this up and running, this has a lot of potential.
Hopefully development of it can continue soon.
I have a few questions I'm hoping someone can answer.
Questions on current build
1. How is the progress for the FM radio going? Do you know what hardware requirements will be to use AM/FM?
This was the biggest draw to me, to allow me to use this as a replacement to a standard head unit.
2. With Android Audio, when I push the button to go into AA mode. When I plug my phone in, nothing happens? I have AA installed on my phone and it works on other devices.
3. I have a red box at the bottom of the screen that says 'no valid device found use Null device instead.'
What is this trying to tell me? Message is there regardless if phone is plugged in or not.
4. How do you enable the bluetooth so it can connect to the phone contacts etc?
Features I would like to see:
1. Customization navigation bar.
This will be going in an older car, with old fashion lever type heater controls, so I really don't need the climate control button on the screen. Be nice to be able to swap that out for something else.
Also I don't think DAB radio is available in the US, so that would be another one that I would like to remove. Any plans on HD radio for those in the US?
2. Will this support wireless AA at some point?
3. Suppress the Pi Login/Password screen on boot. It seems if you wait about 20 seconds it skips over it automatically. Would be nice in the settings if there was a way to turn that on/off.
So I think this is almost exactly what I have been looking for as a carpc setup, but I had a couple of questions/suggestions. It would be great if you could customize the "action menu" on the right to open other apps that are installed on the system. Like chrisfromwa said above, I have an older car and have no need for the A/C controls, but would I do have an aftermarket fuel injection system and have tuning software currently running on my Raspberry Pi that I would like to be able to open from the "desktop" environment. Also, while I realize that you can do mapping through Android Auto, it would be great if you could launch a navigation system that is installed on the Pi itself like Navit. That way I could have fully offline maps and navigation via a USB GPS dongle and not have to worry about my phone having a signal to have mapping info.
Ultimately I'm really just looking for a "launcher" of sorts that can do FM radio, navigation, and open my tuning app, but that has a nice interface that is easy to use in a car with the 7" touchscreen I have. This is one of the most promising I have seen and would love it if it could launch other apps from the main screen.
i would like to ask a question, and please know that i mean ABSOLUTELY no disrespect by this, but why build one? I ask because there are many head units that are double din, touchscreen, can play darn near every file known to man, have android auto, can interface easily with your car itself, much less the steering wheel controls (cheap interface built with the molex plugs needed for plug-n-play use. Again, i mean no disrespect as i tried doing this a few years back. I gave up because to do it properly, i found that i would have to pretty much rewrite the kernel so that it could idle when necessary and go into full-on ready in seconds vs a full boot every time. Creating an output section thats worth a damn would also prove to be expensive, which is what inexorably led me back to the pioneers, kenwoods etc etc etc of the world. I guess if youre wanting full, unrestricted access to what android has to offer while driving, that would explain it then. But you can also achieve this with some automated processes in your phone to lie to the deck and tell it that youre not moving etc etc. Anyways, just curious of your reasoning for doing this
Youdoofus said:
i would like to ask a question, and please know that i mean ABSOLUTELY no disrespect by this, but why build one? I ask because there are many head units that are double din, touchscreen, can play darn near every file known to man, have android auto, can interface easily with your car itself, much less the steering wheel controls (cheap interface built with the molex plugs needed for plug-n-play use. Again, i mean no disrespect as i tried doing this a few years back. I gave up because to do it properly, i found that i would have to pretty much rewrite the kernel so that it could idle when necessary and go into full-on ready in seconds vs a full boot every time. Creating an output section thats worth a damn would also prove to be expensive, which is what inexorably led me back to the pioneers, kenwoods etc etc etc of the world. I guess if youre wanting full, unrestricted access to what android has to offer while driving, that would explain it then. But you can also achieve this with some automated processes in your phone to lie to the deck and tell it that youre not moving etc etc. Anyways, just curious of your reasoning for doing this
Click to expand...
Click to collapse
I've built my own and after you see so many people having issues with their official head units, it is nice to know that you have the control and aren't at the mercy of a car manufacturer or company. Also, I can use it to play retro games and more. Plus I have a unique dashboard that I have helped design in some ways. Honestly I've tried this project and while it was heading in a good direction there wasn't enough for me to use it as it is currently. I have something else and don't have to pay for like Openauto pro. It's called OpenDash and while it functions as is, it is continuously adding functionality and customizations that you can't find in anything commercial.
talon_dgnr8 said:
I've built my own and after you see so many people having issues with their official head units, it is nice to know that you have the control and aren't at the mercy of a car manufacturer or company. Also, I can use it to play retro games and more. Plus I have a unique dashboard that I have helped design in some ways. Honestly I've tried this project and while it was heading in a good direction there wasn't enough for me to use it as it is currently. I have something else and don't have to pay for like Openauto pro. It's called OpenDash and while it functions as is, it is continuously adding functionality and customizations that you can't find in anything commercial.
Click to expand...
Click to collapse
Right on. What model car?

NFC Tags and Greenify (best combo ever!)

(note: I just searched the entire Forum not mention a word about NFC Tags yet)
I just bought a package of NFC Tags and I'm learning&playing with those.
I see mainly that you can add an App to run after use it, and a universe of things you can also do with it.
But I'd like to use your App's shortcut: 'Hibernate Now' that I did create within the App options to my Home Screen.
Those NFC Tags Apps don't show how to run App's shortcuts, and google is confusing or too deep. Anything else, yes is standard and there exist.
But IDK if someone or developers can tell me how to run 'Hibernate Now' Shortcut with a NFC Tag.
Someone suggested on Google recommend do a URI but doesn't work for me (Android/Samsung):
Even more interesting is to run shortcut instead to DEPEND on loaded App to watch for the tag to run anything (for iPhone, IDK for Android):
'reddit dot com/r/shortcuts/comments/9ifl9y/i_have_an_nfc_tag_that_opens_up_a_shortcut_to'
Everybody (even Developers) will be happy with this new combo-use !
Thanks in advance for any help and Happy New Year for everyone ! =D
You can use An App like AutomateIt or tasker to trigger the required action when NFC tag is detected.

Categories

Resources