Search found 67 matches

by kwiley
Fri Jun 15, 2018 4:26 pm
Forum: General Discussion and Questions
Topic: uzlib error
Replies: 3
Views: 612

uzlib error

I'm compressing data on a desktop with zlib before sending it over serial comms to a PyBoard via USB_VCP. The PyBoard then decompresses packets of data before processing them. I have confirmed that any overhead of compression or decompression is, in fact, compensated by the reduced transmission size...
by kwiley
Mon Jun 11, 2018 8:50 pm
Forum: MicroPython pyboard
Topic: USB virtual com RTS/CTS?
Replies: 10
Views: 1480

Re: USB virtual com RTS/CTS?

Thank you. I had noticed the other discussions in the forums that explained that the baud rate was ignored, so I'm aware of that. I'm just trying to figure out what to do about the lack of flow control. It looks like I'll have to implement flow control at the application layer. I have to have the Py...
by kwiley
Mon Jun 11, 2018 4:58 pm
Forum: MicroPython pyboard
Topic: USB virtual com RTS/CTS?
Replies: 10
Views: 1480

Re: USB virtual com RTS/CTS?

I see the following, which explains that UARTs 2 and 3 offer flow control: http://docs.micropython.org/en/latest/pyboard/library/pyb.UART.html So, does USB_VCP rely on (utilize) one of the UARTs for its communications? I would generally assume it does, but perhaps that makes no sense, perhaps it doe...
by kwiley
Mon Jun 11, 2018 4:49 pm
Forum: MicroPython pyboard
Topic: USB virtual com RTS/CTS?
Replies: 10
Views: 1480

Re: USB virtual com RTS/CTS?

Okay. Thanks. So are you saying that flow control is enabled by some of the UARTs, but there is no simple way to take advantage of them over a USB-to-desktop serial connection? So even though PyBoard can engage in flow control communication, it can't do with with a desktop for the purpose of shoveli...
by kwiley
Fri Jun 08, 2018 9:35 pm
Forum: MicroPython pyboard
Topic: USB virtual com RTS/CTS?
Replies: 10
Views: 1480

USB virtual com RTS/CTS?

I am communicating with a PyBoard over USB from a desktop (Jupyter on a Mac if you're curious). The PyBoard is using pyb.USB_VCP to read and write byte streams and the desktop has opened serial communication to the PyBoard. This works fine so long as I close my terminal REPL so the data isn't redire...
by kwiley
Fri Jun 01, 2018 9:06 pm
Forum: General Discussion and Questions
Topic: Why does pyb.SPI.init() take a nondefaulted prescaler?
Replies: 3
Views: 715

Re: Why does pyb.SPI.init() take a nondefaulted prescaler?

Yep. Thanks for considering the question.
by kwiley
Wed May 30, 2018 4:52 pm
Forum: General Discussion and Questions
Topic: Why does pyb.SPI.init() take a nondefaulted prescaler?
Replies: 3
Views: 715

Why does pyb.SPI.init() take a nondefaulted prescaler?

According to https://docs.micropython.org/en/latest/pyboard/library/pyb.SPI.html the pyb.SPI init() function takes a prescaler parameter with no default value. It appears to work if none is provided (which I find a little confusing; shouldn't Python require a parameter for which no default value is ...
by kwiley
Wed May 30, 2018 4:35 pm
Forum: Programs, Libraries and Tools
Topic: PyCharm MicroPython pyb module?
Replies: 3
Views: 2129

Re: PyCharm MicroPython pyb module?

Thanks. The dummy file will be good enough for now, since I only intend to run the code on the PyBoard. I am curious about options of integrating PyCharm with the PyBoard for tightly coupled development, but one step at a time. It's nice just to be able to develop code in a completed and checked fas...
by kwiley
Tue May 29, 2018 10:15 pm
Forum: Programs, Libraries and Tools
Topic: PyCharm MicroPython pyb module?
Replies: 3
Views: 2129

PyCharm MicroPython pyb module?

I found the MicroPython PyCharm plugin, installed it, and activated it for my project, but references to the pyb module are still unrecognized in my code. I realize pyb isn't really part of MicroPython native, but I also activated the plugin's Pyboard option under the Languages & Frameworks settings...
by kwiley
Fri May 18, 2018 8:28 pm
Forum: General Discussion and Questions
Topic: No luck with SPI
Replies: 5
Views: 947

Re: No luck with SPI

If anyone is curious about my progress on this problem, I have gotten it to work by going directly to the machine module for SPI control. Attempting to operate SPI via the pyb module fails while identical code (modulo slight SPI naming differences) works via the machine module. Printing the spi obje...