Search found 62 matches

by Lysenko
Wed Oct 26, 2016 3:02 pm
Forum: ESP8266 boards
Topic: Calling experienced network programmers
Replies: 31
Views: 12929

Re: Calling experienced network programmers

jms wrote: Block forever even when configured not to ?
To configure a socket not to block forever (which is the default) you need setsockopt to implement SO_RCVTIMEO and SO_SNDTIMEO.
by Lysenko
Tue Oct 25, 2016 4:55 pm
Forum: MicroPython pyboard
Topic: Best board/adapter solution for PoE setup
Replies: 3
Views: 2380

Re: Best board/adapter solution for PoE setup

Sorry, I meant using something like TRIPP's LITE's B203-101-PNP: http://www.tripplite.com/USB-2.0-Cat5-Cat6-Extender-Transmitter-Receiver-164-Feet-1-Port~B203-101-PNP Ok, so you'll need active power extraction at the node. 802.3bt is backwards compatible with af/at in theory, but it isn't actually ...
by Lysenko
Tue Oct 25, 2016 1:55 pm
Forum: MicroPython pyboard
Topic: Best board/adapter solution for PoE setup
Replies: 3
Views: 2380

Re: Best board/adapter solution for PoE setup

High power active PoE has already been/can be run to the various locations, What sort of PoE? Standards compliant (802.3af/t) PoE runs at 48V, supplies ~15-20W and requires a chipset at the end point to negotiate the power budget but there is still quite a lot of "dumb" PoE around that simply invol...
by Lysenko
Tue Oct 25, 2016 1:30 pm
Forum: Development of MicroPython
Topic: RFC: Hardware API: finalising machine.Pin
Replies: 62
Views: 22275

Re: RFC: Hardware API: finalising machine.Pin

If a microcontroller has a CAN bus, it's machine module has a CAN module. Defines are used in the board definition files, i.e. 'mpconfigboard.h' to activate or deactivate a module. I think I maybe phrased that badly: I intended to ask how you proposed that such situations be handled, not how are th...
by Lysenko
Tue Oct 25, 2016 9:56 am
Forum: Development of MicroPython
Topic: RFC: Hardware API: finalising machine.Pin
Replies: 62
Views: 22275

Re: RFC: Hardware API: finalising machine.Pin

I think it makes a lot of sense to ship the drivers for all the hardware present on the official boards -- such as LEDs, buttons, accelerometer, hobby servo connectors, etc. However, I feel they should not go in the "machine" module, but rather in a separate module, specific to the board, such as "...
by Lysenko
Mon Oct 24, 2016 10:47 pm
Forum: Development of MicroPython
Topic: RFC: Hardware API: finalising machine.Pin
Replies: 62
Views: 22275

Re: RFC: Hardware API: finalising machine.Pin

Don't think about apps, think about drivers. When I implement a module for i.e. a sensor I want that to be usable to people across all ports. I think the consensus is that 'machine' is the microcontrollers API. I was referring to this: "MicroPython (and its apps) being portable across boards is the...
by Lysenko
Mon Oct 24, 2016 8:20 pm
Forum: Development of MicroPython
Topic: RFC: Hardware API: finalising machine.Pin
Replies: 62
Views: 22275

Re: RFC: Hardware API: finalising machine.Pin

Are you trying to define a HW API for a chip or a board? If the former (which is better for portability) then there should be no assumptions made about what individual pins are connected to. Chips don't have LEDs or buttons. If the latter (which arguably makes things simpler for a limited set of use...
by Lysenko
Mon Oct 24, 2016 10:23 am
Forum: MicroPython pyboard
Topic: SD card filesystem type
Replies: 4
Views: 3042

Re: SD card filesystem type

shaoziyang wrote: I test 8G, 16G and 32G sdcard, with FAT and FAT32 filesystem, some works fine, some can't support.
You can't format a FAT (FAT16) partition >4Gb (2Gb for Windows).
by Lysenko
Sun Oct 23, 2016 6:00 pm
Forum: WiPy and CC3200 boards
Topic: WiPy 2.0 deepsleep not working(?)
Replies: 3
Views: 2200

Re: WiPy 2.0 deepsleep not working(?)

Hi there ;) I'm trying to get machine.deepsleep() working on the new WiPy 2.0 but it fails to do so. What am i missing? Thx for any hints ;) Dan Depending upon what version of the SDK your firmware was built against and depending upon what exactly isn't working, you might be running into this: http...
by Lysenko
Thu Oct 20, 2016 5:29 pm
Forum: ESP8266 boards
Topic: Calling experienced network programmers
Replies: 31
Views: 12929

Re: Calling experienced network programmers

But I believe the _only_ things we have here are socket timeouts and blocking through the usocket module. Good enough for everything you'll realistically do with the ESP8266. It is rather the reverse in my opinion. Blocking sockets and/or lenfthy timeouts are perfectly adequate if you're running Li...