Search found 10 matches

by aivarannamaa
Thu Feb 07, 2019 7:07 am
Forum: General Discussion and Questions
Topic: Terminology: upload vs download
Replies: 4
Views: 151

Terminology: upload vs download

Hi!

Do you "upload" or "download" a firmware to a device? I've seen both usages. What about copying files to and from the device's file system? Are there better terms for these operations?

best regards,
Aivar
by aivarannamaa
Tue Oct 02, 2018 2:41 pm
Forum: General Discussion and Questions
Topic: possible to send command directly to WebREPL
Replies: 15
Views: 1876

Re: possible to send command directly to WebREPL

Whoa! Great job!
I hope your pull request gets accepted.

(Sorry for not checking this thread for so long)
by aivarannamaa
Sun Jun 10, 2018 3:26 pm
Forum: General Discussion and Questions
Topic: possible to send command directly to WebREPL
Replies: 15
Views: 1876

Re: possible to send command directly to WebREPL

Looks like WebREPL can be used quite like serial REPL, including raw-mode, interrupts etc. Here's my proof-of-concept client script (with https://github.com/websocket-client/websocket-client ). Note that here you need to manually suffix each command in normal mode with \n and in raw mode with \x04: ...
by aivarannamaa
Sun Jun 10, 2018 12:12 pm
Forum: General Discussion and Questions
Topic: possible to send command directly to WebREPL
Replies: 15
Views: 1876

Re: How to send commands directly to WebREPL? Raw-mode?

I'm also interested in accessing the REPL programmatically over network, instead of serial.

I noticed that WebREPL doesn't respond to Ctrl+A (but does respond to Ctrl+B). Is it a browser issue? If I implement my own client for the WebREPL interface, can I put it into raw mode by sending a `\x01` ?
by aivarannamaa
Wed Jan 24, 2018 3:08 pm
Forum: The micro:bit
Topic: Double echo in the REPL
Replies: 4
Views: 636

Re: Double echo in the REPL

rhubarbdog wrote:
Wed Jan 24, 2018 1:33 pm
Are you using the mu editor? If so bugs for that are reported on github.
No, I was using Putty (or TeraTerm, nor sure anymore).
by aivarannamaa
Mon Jan 22, 2018 5:10 pm
Forum: The micro:bit
Topic: Double echo in the REPL
Replies: 4
Views: 636

Double echo in the REPL

In micro:bit REPL I occasionally get double echo for my input (eg. I press '3' and Putty displays '33'). When I restart the device then this behaviour disappears.

What can be the reason for this and how to avoid it?
by aivarannamaa
Wed Dec 27, 2017 9:55 am
Forum: General Discussion and Questions
Topic: How to get machine-readable MicroPython API for particular firmware variant?
Replies: 4
Views: 670

Re: How to get machine-readable MicroPython API for particular firmware variant?

I'm afraid I don't understand your advice. I see how I can fetch the list of modules and list of functions, but what about signatures?
by aivarannamaa
Tue Dec 26, 2017 8:06 am
Forum: General Discussion and Questions
Topic: How to get machine-readable MicroPython API for particular firmware variant?
Replies: 4
Views: 670

How to get machine-readable MicroPython API for particular firmware variant?

Hi! I want to enhance MicroPython support in my Python IDE Thonny (currently it only supports Micro:bit ). One aspect of the support would be code completion in scripts. It would be rather easy to do with jedi if I had bunch of Python files corresponding to MicroPython modules containing stubs of th...
by aivarannamaa
Sat Sep 23, 2017 5:58 am
Forum: The micro:bit
Topic: Are simultaneous writes from both ends of the serial interface safe in micro:bit?
Replies: 5
Views: 881

Re: Are simultaneous writes from both ends of the serial interface safe in micro:bit?

Thanks a lot!

I was thinking about similar schemes, but worried that these might be more complex than necessary and I'm missing a shortcut. I'll continue experimenting with different sized chunks and different waiting times.
by aivarannamaa
Fri Sep 22, 2017 3:45 pm
Forum: The micro:bit
Topic: Are simultaneous writes from both ends of the serial interface safe in micro:bit?
Replies: 5
Views: 881

Are simultaneous writes from both ends of the serial interface safe in micro:bit?

Hi! Let's say my PC program is connected to microbit USB serial port (using PySerial library) in order to communicate with the program running on microbit. The desktop program thinks the microbit program requires input and starts writing something to the serial. Now it turns out that the microbit pr...