Anderson > > If the user tried to read the Value property, it will return > immediately with "cached" value if not connected (which is an actual, > not invented value read before by this or some other application), A value which is cached, can be there for several minutes, hours or days. It is not relevant, since it is not the value from the sever. This could be a value of a patient in a hospital bed, and as far as the client is concerned (doctor), the patient temperature is ok, although the patient may be actually dead (the termperature is updated only at connection or on notification). Notification in health thermometer is only optional, so if the server did not implement notification, and the client only reads the value once on connection, and the client did not disconnect for hours, the value read by the client is invalid. > then attempt connection. After connection is done, the read request is > done, the value is updated, and a PropertyChanged signal is sent. > So again, basically, what you are saying here is that value is only updated when a connection is established. This is wrong. Value should be updated each time a client requests the value. > That is why we use Value as a property and not a method like you are > suggesting. Clients should be monitoring the PropertyChanged signals > all the time. > That's fine by me, as long as the value is also updated upon use request as well. > > We already do that. The point (which I already mentioned before) is > that sending errors to the users, which are temporary (so it is under > debate if they are actually errors), and even if they get these > errors, they can't do nothing about it, because they can't control the > connection by themselves. > Actually, Connection establishment and termination should be discussed in a different thread, as a continuation of the Bluetooth summit discussion of auto-connection mechanism. > > And another way is like it is currently :) a Value property for > read/writing, and PropertyChanged signal for when the new value is > read/written. I fail to see a difference between what you suggest > above. BlueZ has this "Property" concept for quite some time. > Properties are great, but need to be update correctly. I don't mind keeping it the way it is, but a fix is required for the following issues: 1. Values need to be updated when a user tries to read them (getProperties). 2. Why should I get all the properties every time I want the value ? Char properties may be constant throughout a session, but it's value may change frequently. 3. Writing to the value property needs to be done in one of 4 methods. How do you support that in the existing bluez property format ? > The only limitation is that we can't control which operation is used > for write (write without response vs. write request). But... what if > we detect that by the characteristic properties (like we discussed for > notification/indication in another message). Again, if both are > supported, Write Request takes priority because it is more "reliable". > What about authenticated write and signed write ? What about reliable write method? > If by "discover" you mean service discovery, it is already done "for > free" during pairing. The core spec says that this information is > valid for the time of bonding, and if some service needs to be added, > the server shall implement Service Changed. (BTW we don't support > Service Changed yet, neither as client nor server). > The service changed is mandatory for clients, optional for servers. If we intend to keep the cache of services/characteristics, we need to handle service changed notification. Otherwise, we must not cache and read the services on each connection. Regards, Chen Ganir. -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html