Hello.
I’m using iPhone 4S to communicate with Bluegiga’s BLED112 (USB dongle).
BLED112 is acting as server, having one indicated characteristic value which the
iPhone, as client, receives as is updated. I’ve programed the server side to
first send a connection_update command with interval_min and interval_max of 20
ms and 40 ms, wait for new connection_status event, then write to the value
once, and then write new values after receiving attclient_indicated
events.
At the server side, every new value sent is logged, and at the client side,
every value received is also logged. What happens is that for each 2 values
sent, iPhone receives only the first one. Or, looking at the server side, for
each value iPhone receives, it looks like it is sending two value confirmations.
Or, iPhone is losing every other packet. When the server sends the
connection_update command, it receives the new connection properties only at the
second connection_status event, so I’m gessing iPhone sends its responses
twice... How do I solve this?
Also, my tests showed that iPhone receives a maximum of 20 bytes per value
-- larger values got truncated. Is that correct?
Kind regards,
Eric Nielsen