Espruino Serial Terminal drops characters. #6678
Replies: 1 comment
-
Posted at 2013-10-10 by @gfwilliams Hi, thanks for letting us know. What operating system are you using? Could you try plugging in the USB to serial dongle that you have (instead of the Espruino), and then connecting one strand of the wire up such that RX and tx are connected? That way, if you connect with the terminal and do the same thing, you should get the data sent right back to you and we can see if it is an Espruino problem or a web app one. You could also try using a different terminal app and copying and pasting code in - I believe there are some other examples on http://www.espruino.com/Quick+Start Posted at 2013-10-11 by IdeaShaker I'm using Mac OSX 10.7.5 I'm not getting very far with the dongle; "ls /dev/tty.*" comes up empty. If I use the micro-USB port, do "screen /dev/tty.usbmodem-whichever" and start pasting code into the Mac OSX terminal to send to Espruino, the problem persists. Doing it one function at a time works okay, but characters are still getting dropped when I try to paste in the entire program. Posted at 2013-10-12 by @gfwilliams Ok, thanks - I'll check it out. Pasting via 'screen' shouldn't drop characters - it doesn't seem to on Linux - but I'll do some tests with Mac OS. For now I'll add some kind of delay into the Web UI on Monday - which should patch up any problems until I fix this properly. Posted at 2013-10-12 by @gfwilliams By the way - you may need drivers for the USB-TTL dongle: https://forum.espruino.com/conversations/202/#comment1239 I wouldn't worry about it though - hopefully you won't need it now. Posted at 2013-10-13 by neil also observed as documented above (just to reinforce that you are not crazy IdeaShaker). I am using Windows 7 with Espruino board v1.1, code v40and the chrome app as posted on the chrome app store Also observe that random characters get dropped midline eg. SPI2.send (0xf, B6) becomes and a subsequent syntax error. Posted at 2013-10-13 by @gfwilliams Hi Neil, can you confirm that this doesn't happen when pasting code in via putty? (Eg, that it is only a web app problem). I think there are two problems here - web terminal losing characters (on some platforms) and then Espruino USB losing chars on Mac OS. It's a strange one because the USB code has been in use for over a year and I haven't had any reports of lost characters (it only seemed to happen on boards that used serial, or non-f103 chips) Posted at 2013-10-13 by @gfwilliams Ok, Just checked. Current state is:
So when I fix the Web App, that'll just leave local apps on Mac OS that have problems... Posted at 2013-10-13 by neil Hi Gordon just tried with putty on Windows 7 with espruino 1.1 v40: this method is certainly more robust than the web app - I can paste multi-line functions without issue. However, if I paste in a full file (into a console that has been first reset() and using code that has been verified to be ok), then something is still amiss as the ">" prompt never turns and stays at ":" as if expecting a closing bracket of some sort, which I don't believe to be the case. This can be verified using the MAX7219 code example I have sent you privately Gordon. Thanks Neil Posted at 2013-10-13 by tedbeer I have the same problem when pasting code. I use windows-7, putty, some dev board based on STM32F103vet6, espruino_1v39_hystm32_24_ve.bin. Posted at 2013-10-14 by @gfwilliams Hi user6065, Can you start a new thread for your problem, as we're trying to sort out an issue with the Espruino KickStarter board here. In your case I'd be 90% sure that your problems will be fixed by just trying the other USB port on your board (there is no flow control on the standard serial port, and as Espruino sends more characters back than it receives, after some time it will run out of buffer space). Posted at 2013-10-14 by @gfwilliams I've just updated the terminal app to fix a bunch of outstanding issues (including - hopefully - this one). The new version is 1v29 and should be appearing in the next hour or so. Please let me know if it updates automatically or not - you may have to uninstall and reinstall it from https://chrome.google.com/webstore/detail/espruino-web-ide/bleoifhkdalbjfbobjackfdifdneehpo. Note that serial writes are now throttled so should be more reliable - but will be slower. I'll look into whether I can modify Espruino's USB implementation (as it looks like it is something strange in there) - but for now I hope you won't hit this any more. Posted at 2013-10-15 by IdeaShaker The new terminal app looks good; it updated automatically for me when I relaunched Chrome. No more dropped characters! Mac OSX local app obviously still has the problem. If it would help, I can still spend some time playing around with that and the USB dongle. Posted at 2013-10-15 by @gfwilliams Great! It's ok - it looks like an issue with USB flow control on the Espruino Board itself (in fact on all operating systems). It is something I'll be trying to look at, but there isn't so much urgency now. Posted at 2023-01-27 by asez73 Hi, happy new year 2023 to every one! The screen below is a upload time or after a reboot, dump and reset... I also, with no results:
and this one is a dump of data, all lines should have the same structures, they obviously don't.
It is reproductible: issueing the same command produces the very same dump. Finally, It also happens if I paste some code on the right pane of the native editor: lost chars and randomly placed edit cursor on the edited line only while attempting to paste from elsewhere, say a web page. The full code below is hill named but at the end I expect this to run on an old original espruino board. So what could be the cause? Thanks for your attention... Attachments: Posted at 2023-01-27 by @gfwilliams Hi, I just tried this on a Pixl and I don't see anything from Are you connecting from https://www.espruino.com/ide/ or the Native IDE? I have seen issues with lost data using the Native IDE, but not with Web Bluetooth on https://www.espruino.com/ide Posted at 2023-01-27 by asez73 Hi, I use the native ide on windows 11. getData() reads the data stored in 4 arrays Uint16 or 32 bits. Basically, this is an extension of your puckjs ldr based tutorial wired just as you did and some other data logger tutorial... Posted at 2023-01-27 by asez73 Ok, I used Web ide with Chrome, it works immediatly better... Apparently nothing is lost in transmission. Posted at 2023-01-27 by asez73 Confirmed, works as a charm with Chrome, not with Firefox, Brave as BLE is missing to them. Sorry having disturbed you.. Posted at 2023-01-30 by @gfwilliams OK, great! No problem. I think I should probably start to deprecate the Native IDE - I'm not sure there's a great deal of use for it at the moment as it's really only for Windows 7 and earlier BLE. espruino.com/ide can still be installed and will work offline too! |
Beta Was this translation helpful? Give feedback.
-
Posted at 2013-10-10 by IdeaShaker
Hi, all
We just got our Espruino board; it's currently running Espruino 1v40.
The Serial Terminal in Chrome is great, but writing programs in the window to the right and clicking "Send to Espruino" results in some strange behavior. It report JavaScript errors that appear to be caused by characters in the code being dropped.
Example:
I'm not crazy! That 'i' was definitely there. Has anyone else seen this?
Is it already fixed in another build of Espruino?
Beta Was this translation helpful? Give feedback.
All reactions