Open aliozgur opened 9 years ago
Hi @aliozgur, have you found a solution? We got the same exception.
Thanks
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
@dtaylorus any idea on this? looks like it's part of your messaging enhancements?
It does look like my issue, sorry. I'll look into it tonight.
From: bryan costanichmailto:notifications@github.com Sent: 3/3/2015 1:43 PM To: xamarin/Monkey.Roboticsmailto:Monkey.Robotics@noreply.github.com Cc: David Taylormailto:dtaylorus@hotmail.com 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
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.
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
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.
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 thank you. I got it working with 19200 (not 19600) baud rate, no changes in wiring I just cleaned the solder.
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?