microsoft / pxt-ev3

Microsoft MakeCode editor for the LEGO MINDSTORMS EV3 Brick
https://makecode.mindstorms.com/
Other
54 stars 39 forks source link

Bluetooth does not work #998

Closed THEb0nny closed 1 year ago

THEb0nny commented 3 years ago

I tried to load the bluetooth code into EV3. But now it cannot be done. An error is always thrown. Try it yourself. Something might have been updated in Chrome. @pelikhan

pelikhan commented 3 years ago

I'll take a peek next week.

THEb0nny commented 3 years ago

@pelikhan hi, have you looked?

THEb0nny commented 3 years ago

@pelikhan https://github.com/microsoft/pxt-ev3/issues/902#issuecomment-674217648

THEb0nny commented 3 years ago

@pelikhan it turned out that with the bluetooth connection?

THEb0nny commented 3 years ago

@pelikhan have you seen why bluetooth does not work?

dmitryaleshin commented 1 year ago

The project is death but problem exists. I've attempted to create a PR with fix but have no proper rights.

THEb0nny commented 1 year ago

The project is death but problem exists. I've attempted to create a PR with fix but have no proper rights.

hello, I support the project, my changes are accepted, a new version is added.

I have looked at this problem myself. The problem on all platforms is in makecode, but the developers have no plans to fix it. For example, in microbit it is also impossible to fill in the firmware in the same way.

dmitryaleshin commented 1 year ago

The problem on all platforms is in makecode

The problem could be fixed in this repo. I've forked out repository and fixed the issue a dirty way. But i'm fine wiht dirty fix instead to leave without bluetooth.

THEb0nny commented 1 year ago

I didn't understand that the second part

dmitryaleshin commented 1 year ago

I didn't understand that the second part

Thats not a big deal. https://www.lego.com/cdn/cs/set/assets/blt6879b00ae6951482/LEGO_MINDSTORMS_EV3_Communication_Developer_Kit.pdf the protocol mentioned the length property. My fix is to read full packet instead the buffer. This is a common problem with all the serial communication and i think it's pretty clear.

THEb0nny commented 1 year ago

Хорошо, я тоже посмотрю, потом дам отзыв.