So how can i say to developer that this sensor is connected to port 1?
There is a desktop application that i coded before and it shows which port has which sensor. So where is the port information?
And it opens a socket to connect from HTML5 applications and also i coded a Flash/Flex and a Javascript API to connect to this mini local sensor server.
So how can developer query that which sensor is on port 1 with my API? I need to have the port data
?
In any system that contains sensors, you have two options to find out what sensor you have got:
1. Know what you are connecting already and in which order using paper and pen!
2. Go advanced and let the PIC on the other side tell the hub what sensor it has got and what its number is among other sensors of the same type, this requires ore-defining all possible sensors that you might use on all PICs. Sorry, but I doubt you can do this because it needs advanced programming skills, I mean concepts, not just the ability to write in C.
Even if you used backnet protocol (not blacknet), you need to give the sensor a name, at least!
Don't try to complicate things while you have such physical constraints... stay simple because your physical space is limited. If you want to automate sensor recognition, then you need more code and probably more chips, you are not in a position to tackle such functionality at the moment..
We are willing to help, but when you suggest SPI, we expect that you understand already how it works and the necessary connections to make it work. Please read more before you let yourself appear as if you know nothing about sth you have already suggested or sth that other members mentioned.
I feel like we have been running in a closed loop with you for many days. You have funny constraints and design requirements that what ever has been said is not working for your erroneous design and requirements decisions. You have requirements that can't meet some other specs in your system.