Mifare classic 1K Reading/Writing implementation with ST25R3911B - authentication

I'm completely new in the NFC field, I want to build an application by using Mifare classic 1K with ST25R3911B, For that purpose i have to make proper communication between them by which i can do communication between them(Like to read/write operation).
I'm getting success to read UID, but rest of the things i'm not understand like how to authenticate or which is the proper command by which i can do communication or shares information between them.
If anyone have experience or any knowledge regarding that please help me,
Any kind of help would be appreciated!
Thank in advance!

I haven't used this chip, but I see its datasheet says that it supports Mifare as a custom protocol that you need to implement yourself as there is no generic method that is handled by the chip itself. That would mean you will need to implement the protocol based on NXP documentation including proprietary cryptography that is used there. If its only your private pet project, you could probably get away with some reverse engineered implementation that is floating around the internet, but the right way to do it is to contact NXP and obtain the license. Probably a way easier solution would be to replace the chip with something already licensed by NXP.

Related

Update programming on a PIC microcontroller without other external hardware?

I'm having a friend that is an electronics engineer plan and build some PCBs for myself and several friends, for use in an automotive environment. One major goal of this project is to allow the PIC microcontrollers to have the programming updated, without the use of additional external hardware, such as a PICkit or anything along those lines. I would love for us to be able to simply connect the PCB to a laptop or desktop via USB, and simply write updated programming to the controller, just like how an Arduino works.
We are currently looking at a PIC24F08KM204 for the project. Does anyone know how my goal can be accomplished, if it is possible? I don't mind adding some more components to the PCBs, at a reasonable cost, to avoid the need of an external piece of third-party hardware to update the controller as we tweak settings. Is there perhaps another controller line I should be looking at that offers this ability?
I'm not very familiar with a lot of the terms used in this environment, so if anyone that is willing to help wouldn't mind making their response dummy-proof I'd really appreciate it :) :)
Thank you!
What you need to implement is called a bootloader. For PIC24, start here -> http://www.microchip.com/SWLibraryWeb/product.aspx?product=Microchip%20Easy%20Bootloader . If you don't need USB for anything else, use serial port plus USB-to-serial converter chip.

digital audio workstation with API

Do you know any digital audio workstation that has API? I would like to create application that can generate music based on such programs possibility. This is purely for my own entertainment, I don't mean to make any kind of commercial moves...
There are a couple of different DAW's you can look at that allow you to interface with a variety of languages. The main ones that spring to mind are Reaper and Ableton. As far as I know, Ableton uses python internally and some clever people have found ways of taking advantage of that here;
https://code.google.com/p/liveapi/
The other one is Reaper, which allows you to script its internal features using Python using something called ReaScript;
http://www.reaper.fm/sdk/reascript/reascript.php
Hope that helps.

Get the total number of bytes sent/received through all network interfaces on iOS

I want to capture the total number of bytes sent/received through all network interfaces and particular interfaces of iPhone. I didn't find any help from Google about any similar code for this. Is there anyone can help me about an Objective C code for this?
This is not accessible information, and you would violate the private framework rules if you tried accessing this on the device.
So I'm afraid it is not possible.
I don't think you can do it. As iOS Technology Overview mentioned, the function as you described is on Core Service level and not found in official documents. There may be some private APIs for it but Apple will definitely prevent you from using them.
So, I am sorry for that.

A smart UDP protocol analyzer?

Is there a "smart" UDP protocol analyzer that can help me reverse engineer a message based protocol?
I'm using Wireshark to do the sniffing, but if there's a tool that can detect regularities in the protocol (repeated strings, bits of the protocol that are CRC/Checksum or length, ...) and aid the process that would help.
You are asking for a universal inference engine. The best way to try to recover the protocol (assuming you are in a jurisdiction that permits this) is to understand the underlying message transfer from the beginning of a session, and then trying to manually simulate the behaviour of each party through a sequence of ping-pong message trials. This way you develop an understanding of the message structures and their functioning.
Using the UDP frame boundaries is a good place to start looking for structure.
If you have no documentation, you will find that even if you gain a good understanding of the protocol, expect to be surprised many times during the project.
If you can, have your existing systems carry out exactly the scenario you need to use, and then simply replicate the same sequence with payload (and any checksum) changes only. This way you can possibly achieve the requirement without a comprehensive understanding of the protocol.
For an example of the effort in doing this you could look at a historical review of the Samba project at A bit of history and a bit of fun.

need primitive public key signature with out of band key distribution

I want to send an out of band message (don't worry about how it gets there) to a program I've written on a distant machine. I want the program to have some confidence the message is legit by attaching a digital signature to the message. The message will be small less than 200 characters.
It seems a public key based signature is what I want to use. I could embed the public key in the program.
I understand that the program would be vulnerable to attack by anyone who modifies it BUT I'm not too worried about that. The consequences are not dire.
I've looked through the MSDN and around the web but the prospect of diving in is daunting. I'm writing in straight c++, no NET framework or other fancy stuff. I've had no experience including NET framework stuff and little luck during previous attempts.
Can anyone point me at some very basic resources to get me started?
I want to know
How to generate the public and private keys
How to sign the message
How to verify the signature
You could try looking at the Keyczar library. It provides a high level abstraction to cryptographic functions with the aim to make is easy for developers to do crypto correctly. As an added bonus it has c++ bindings.
There is also Cryptlib which has been around for a while, and NaCl. As with Keyczar these libraries aim to provide a high level abstraction for common crypto functions.
gpgme is a high-level cryptographic API for GnuPG, written in C, but with bindings for a number of languages. GnuPG has excellent docs and is easy to use, so you can play around 'manually' on the command line and get a feel for how the key operations work, then look up the functions you need for your code in the API.