Monkey.BluetoothLE icon indicating copy to clipboard operation
Monkey.BluetoothLE copied to clipboard

Stream failed

Open aliozgur opened this issue 10 years ago • 9 comments

Hi, iOS app detects BLE Mini but when I go to device details I get "Stream Failed" error with "System.InvalidOperationException: Operation is not valid due to the current state of the object" error message.

Anyone has this issue and any advice for resolution?

aliozgur avatar Feb 20 '15 20:02 aliozgur

Hi @aliozgur, have you found a solution? We got the same exception.

Thanks

fabiocozzolino avatar Mar 02 '15 22:03 fabiocozzolino

I add some info:

We have built the robot and deployed the app, but we are receiving the InvalidOperationException throw in the ReadStartObjectToken method of the PortableBinaryObjectReader class

On the robot-side the Read method of the Message class seem to be unable to read correctly the message because it is not valid (bad message):

// Bad message, skip the lead byte and try again Array.Copy (readBuffer, 1, readBuffer, 0, bufferSize - 1); bufferSize--;

That exception happens when the mobile app try to send a GetVariablesMessage to the robot. Any ideas about that? Serialization, Encoding, others...

@bryancostanich @conceptdev

fabiocozzolino avatar Mar 03 '15 21:03 fabiocozzolino

@dtaylorus any idea on this? looks like it's part of your messaging enhancements?

bryancostanich avatar Mar 03 '15 21:03 bryancostanich

It does look like my issue, sorry. I'll look into it tonight.


From: bryan costanichmailto:[email protected] Sent: ‎3/‎3/‎2015 1:43 PM To: xamarin/Monkey.Roboticsmailto:[email protected] Cc: David Taylormailto:[email protected] Subject: Re: [Monkey.Robotics] Stream failed (#24)

@dtaylorus any idea on this? looks like it's part of your messaging enhancements?


Reply to this email directly or view it on GitHub: https://github.com/xamarin/Monkey.Robotics/issues/24#issuecomment-77042310

dtaylorus avatar Mar 03 '15 22:03 dtaylorus

Hi, My problem is with the wiring of BLE Mini or the BLE Mini itself I guess. I ordered a BLE Shield and see what happens with that set up. I will post my findings here.

aliozgur avatar Mar 04 '15 07:03 aliozgur

The BLE Shield is for Arduino. It will fit on a Netduino fine but you would need to write/port the libraries to make the Shield work.

The wiring is simple if you get the soldering right. https://www.youtube.com/watch?v=ugTbu7vefbE

henslecd avatar Mar 04 '15 13:03 henslecd

Yes, you are right my problem is with the soldering. I will post the changes needen for BLE Sheild if I get it working. I guess modifying the baud rate might be enogh we will see.

aliozgur avatar Mar 04 '15 13:03 aliozgur

Hi guys, we have downloaded the following tree and changed the baud rate to 19600. Now all works fine. In the next days we can try to solve the problems of the current version.

fabiocozzolino avatar Mar 07 '15 10:03 fabiocozzolino

@fabiocozzolino thank you. I got it working with 19200 (not 19600) baud rate, no changes in wiring I just cleaned the solder.

aliozgur avatar Apr 19 '15 19:04 aliozgur