Search found 11 matches

by bibile
Wed Nov 16, 2016 4:08 pm
Forum: General Discussion and Questions
Topic: pyb.USB_VCP() performance?
Replies: 5
Views: 4994

Re: pyb.USB_VCP() performance?

Thanks!

I guess that with 9600, I am short.

On PC side, I simply run:

Code: Select all

import serial
ser = serial.Serial('COM5', 9600)
while True:
    nb = ser.in_waiting
    if nb > 0:
        buf = ser.read(nb)
        print buf
I will upgrade to 115200, that should help.
by bibile
Tue Nov 15, 2016 3:52 pm
Forum: General Discussion and Questions
Topic: Kicad files > shield
Replies: 1
Views: 7272

Kicad files > shield

Hi,

Just made kicad files for pyboard v1.1 to make a shield.
I am new to kicad, so might not be perfect. Any advice welcome !
by bibile
Tue Nov 15, 2016 10:19 am
Forum: General Discussion and Questions
Topic: pyb.USB_VCP() performance?
Replies: 5
Views: 4994

Re: pyb.USB_VCP() performance?

Hi,

Would it be more efficient to use pyb.UART?
Actually, I will have to use a RS232/USB adapter, but why not!

Any idea?
by bibile
Mon Nov 14, 2016 3:45 pm
Forum: General Discussion and Questions
Topic: pyb.USB_VCP() performance?
Replies: 5
Views: 4994

pyb.USB_VCP() performance?

Hi, I run into a small performance issue. I read an encoder and send a torque value (DAC) to a DC motor. My control loop runs at 200Hz, using a Timer. Everything works well, except when I try to send some data to the PC. I use USB_VCP u = pyb.USB_VCP() And write to the PC at 100Hz (another Timer) wi...
by bibile
Fri Sep 30, 2016 3:46 pm
Forum: MicroPython pyboard
Topic: Slow read?
Replies: 11
Views: 9521

Re: Slow read?

Perfect!
It works well, thanks.
For Windows users, a VM is pretty nice actually (for those who failed installing cygwin!)
by bibile
Wed Sep 28, 2016 2:49 pm
Forum: MicroPython pyboard
Topic: Slow read?
Replies: 11
Views: 9521

Re: Slow read?

Great, your screen command worked !

Then, rshell too: sudo rshell -p /dev/ttyACM0 -b 115200
by bibile
Wed Sep 28, 2016 1:05 pm
Forum: MicroPython pyboard
Topic: Slow read?
Replies: 11
Views: 9521

Re: Slow read?

Did someone had rshell working in an Ubuntu on VirtualBox (on a Windows 7 PC) ?
Just tried it but no success.

I see /dev/ttyACM0
but rshell nor screen /dev/ttyACM0 worked.
They are both installed of course.

It keeps running, looking for something, maybe. But no message untill I ctrl+C it..
by bibile
Wed Sep 28, 2016 7:36 am
Forum: MicroPython pyboard
Topic: Slow read?
Replies: 11
Views: 9521

Re: Slow read?

I tried a import pyreadline as readline but then get another error File "c:\python\python35-32\lib\site-packages\rshell\main.py", line 69, in <module> readline.parse_and_bind("tab: complete") AttributeError: module 'pyreadline' has no attribute 'parse_and_bind' I will try cygwin later, I guess it ne...
by bibile
Tue Sep 27, 2016 7:29 pm
Forum: MicroPython pyboard
Topic: Slow read?
Replies: 11
Views: 9521

Re: Slow read?

Thanks!

Actually, on Windows, rshell does not seem to work.
Get an error at "import readline"

Another way to never corrupt files?

About performances, is there something to activate, or deactivate?
by bibile
Sat Sep 24, 2016 1:38 pm
Forum: MicroPython pyboard
Topic: Slow read?
Replies: 11
Views: 9521

Re: Slow read?

<<accessing filesystem from "domains" is bad>>
I guess pyboard is only reading main.py
But does it mean that I should not edit the main.py on the board, directly ?