You can get the device signature which is unique to each of the processor type , then have a look up table to identify the processor, so you can get the A/D type etc . You can also read the fuses to work out clock speed etc .
Can’t see this being easy , as you might need to upload a program to get that info - never tried it, or needed to .
I’ve no idea why you want to do this , and suspect there is a further question in here somewhere - what is your project ?
first of all, thank you for helping.It is my summer practise project. I'm doing degree at software engineering. Actually that is the part of the my project. I completed some parts. I will give more information about the project in below. I am confused about it.
Topic: Internet of Things
The project is to control small internet devices using a remote program upload and peripharel discovery. A listening program will run in the background and will listen for external commands.
Requirement: The program will listen to a port for external commands and requests. After receiving the command, the listener program will execute the request. It is possible to transfer data in/out the device if necessary. The commands will have a predefined structure whicl should be identifies during the project. The small device can be an Ardunio system although this is not a must.
This command is sent by an external system to the device. The listening program will collect information about the device it is running on, and using a parsebla format (like XML), it will send it back. Some items can be listed as :
o # of AD converters
o Clock Frequeny
o Chip Model
o # of timers
o Serial/ USB/CAN/I2C communication types
o Size of registers (8,16,32,64)
Using a predefined format, data needs to be passed to the device and a suitable location will be used to store the data.
o # of values to be stored
o Set of values
o Location ??? (dynamicly determined)
Data generated after the running a program, will be transferred using a predefined protocol to external systems.
o Store the generated data to a predefined location. The data will uploaded to an external system upon request.
This is to upload a program to the device. The program will be compiled externally using the info collected above. After receiving the program to a suitable region in the memory, the listener program will pass the control to the program. Using a timer, the listener program will wake up periodically and it may check the health of the running program and interrupt if necessary.
This command will be used to stop the running program.