acr122U NFC Tag reading - c#

UPDATE:
let me sum up what i have done so far.
I updated my smartphone to 4.0.4 because of android beam.
The following site allows one to send and receive NDEF Messages:
http://www.grundid.de/nfc/ndef-applet.html
that worked perfectly for me.
After that i was able to write an little app which sends NDEF Tags over an P2P connection.
There is only one topic left: Create a desktop based application to receive the tags.
I implemented the following example from github.com :
https://github.com/grundid/nfctools-examples/blob/master/src/main/java/org/nfctools/examples/llcp/LlcpService.java
that worked also well. But i just dont know what happens behind the example. The example class uses a package (jar) consisting of *.class files. Its the same as using the applett. My aim is to create code by my self. A complete project.
So is there a way, to receive ndef tags (over p2p) in .net? or java? this is what iam looking for.
Next Steps:
i will try to use the Winscard.dll:
http://www.aspfree.com/c/a/.NET/Smart-Cards-in-.NET/
but it seems to be only for SDCards and have nothing to do with NFC.
Have you any suggestions or tips to achieve my gaols? that would be wonderful.
Thank you.
Berry

Did you have a look at this project: http://www.grundid.de/nfc/?

Related

How to send data from iOS to C# using "remoting" library?

// question
I have an existing c# program that uses Microsoft .net's "remoting" SDK.
I want to send some data from a new iOS app to this c# program.
The existing c# program is huge (with existing clients) and I am not sure if rewriting the entire thing in asmx is a good idea.
I have looked at other online sources, they all say no, but some mentioned Xamarin (wfc server).
Xamarin.Forms Connection to Wcf Service from iOS
I don't mind converting to iOS app to Xamarin, but just want to get some expert opinion before going ahead.
I am also open to other options as well.
Thank you very much for you help.
// what I have tried
I have looked at various stack-overflow posts & online sources and tried to use regular soap request instead, but I realized that this requires restructuring of entire c# codebase.
I would like to know if there is a smarter way to do this.
// update
I've tried Xamarin and it keeps crashing for some reason... when I try to use .dll reference.

Certificate Transparency Logs for C#

Currently working on a certificate transparency logs. My goal is to read each log just like what CertStream - (Open the fire hose button) did, my boss wants to create another one that is written in C#. Just a simple code to parse the logs can really help me. Not necessarily as fancy as CertStream does its stuff.
These are the following links/APIs that I've read:
(API's from Google or related)
https://ct.googleapis.com/pilot/ct/v1/get-sth
https://ct.googleapis.com/logs/argon2020/ct/v1/get-entries?start=20200201&end=20200205
https://www.rfc-editor.org/rfc/rfc6962
Valuable info:
https://certstream.calidog.io/
https://stackoverflow.com/questions/59772797/cant-parse-precertificate-from-certificate-transparency-log
For the code I started,
byte[] byte_LeafInput = Convert.FromBase64String(leaf_input);
byte[] byte_extradata = Convert.FromBase64String(extra_data);
string strLeafInput = Encoding.UTF8.GetString(byte_LeafInput);
string strExtraData = Encoding.UTF8.GetString(byte_extradata);
But it only shows some gibberish data with few readable words.
Any codes or libraries that can help me with that? Upon searching, I found so many codes written in different languages like Python, Go, etc., but based on what I understand in their code, they are also using libraries which is not available in NuGet. X509Certificate might be useful but I don't know how to use it in this case.
Any lead would really be appreciated. Thank you.
Upon searching for a long time. My boss advised me to get the logs and parse it through Python and save that in a text file or csv. After that, my program in C# can use all functions to analyze the information in the created text file. I guess using the current wheel is more efficient than creating one. :)

Reading NFC Tag in Unity3D

I would like to get the text string saved on an NFC tag in Unity. I'm not experienced with developing for Android, it seems there was already success doing this but it seems to involve extensive use of the Android SDK and Eclipse, neither I'm familiar with.
I found also this thread though the source code is incomplete and I'm not sure how to declare the variables used in this if statement: http://forum.unity3d.com/threads/162834-AndroidJavaObject-as-array-for-NFC-access?p=1115826&posted=1#post1115826
Any usings that I need to import in order to use this snippet and the "var" type variable mentioned in the first post?
OP hasn't been answering all the other questions for over a year now.
I hoped someone here might have an answer for NFC in general.
Pablo from Twinsprite has put a full working example project on GitHub
And he has written a very detailed blog-post about how to create the required plugin yourself.
Works great for me!
For someone else reading in the future, they have an updated link:
The new Link
I am working with this right now and I will keep you updated

Windows 8 upload file via FTP [duplicate]

I'm trying to create an FTP Application in Metro and C# but the FTP class in System.Net has been removed and now I can't figure out how to do this. I've looked into the BackgroundUploader but can't understand how I can bring back directory structures etc.
Does anyone have any experience doing this, I know it is achievable since there is an app already available on the Windows Store.
Thanks
I haven't checked it yet, since I just started to look for it. In this article they're sharing an FTP sample in C#.
http://code.msdn.microsoft.com/windowsapps/CSWindowsStoreAppFTPDownloa-88a90bd9
Regards,
Herb
Take a look at http://www.dreamincode.net/forums/topic/35902-create-an-ftp-class-library-in-c%23/. It's a C# implementation of a FTP client using sockets, unless you have advanced requirements this may be sufficient for you.
And if you need more you could Always expand on his example!
Please have a look at this sample below. The difference from the Microsoft sample is the use of sockets:
- Windows 8.1 Sockets: Ftp Client Sample in C#

Sharp Pcap and multiple ICaptureDevices in c#.NET

im having a nightmare of a time trying to get sharp Pcap to send packets happily via multiple instances of ICaptureDevice. The problem is that If i use more than one instance of ICaptureDevice any existing ones will just drop out and no error is thrown.
I was wondering if you have any ideas on how to keep all instances of ICaptureDevice work happily. ( If you have had this issue)
Unfortunately I can not provide code examples as this is Proprietary software im building.
I have tried aggregrating all the packets into one queue stream and getting a single ICapDev to send them but i found this to be too slow for the device recieving them at the other end.
Many thanks for any help
Ok i had a talk with Chris - the use of CaptureDeviceList.New()[i] is advised instead of CaptureDeviceList.Instance[i].

Categories

Resources