Search found 353 matches

by devnull
Sat Sep 21, 2019 12:20 pm
Forum: ESP8266 boards
Topic: rshell not working on Mac OS
Replies: 7
Views: 72

Re: rshell not working on Mac OS

Try: /dev/tty.SLAB_USBtoUART
by devnull
Mon Sep 16, 2019 12:23 pm
Forum: Pyboard D-series
Topic: I2C Sniffing
Replies: 1
Views: 65

I2C Sniffing

I have been using BusPirate for several years for I2C sniffing, however the firmware has not been officially updated for many years, although there is a community firmware which I am using. It is temperamental when used with python and the pyBusPirateLite libraries, and I am unable to get consistent...
by devnull
Sat Sep 14, 2019 11:56 am
Forum: General Discussion and Questions
Topic: Servo - Motor & Pot Control
Replies: 1
Views: 60

Servo - Motor & Pot Control

To save me reinventing the wheel, has anyone done anything with motor / pot servos (not R/C) servos ? The motor drives a gearbox and the output shaft rotates a 10K servo pot. I want to be able to rotate the motor to specific positions using upython. I am guessing that the servo pot will be read as A...
by devnull
Wed Sep 04, 2019 11:40 pm
Forum: General Discussion and Questions
Topic: umqtt_simple - bytes index out of range new error
Replies: 7
Views: 436

Re: umqtt_simple - bytes index out of range new error

Can anybody else confirm with a live mqtt setup (simple_mqtt or robust_mqtt) on the pyboard D series that mqtt is working for them ??

My gut feeling is that this is somehow related to the socket, as this code is pretty much only reading and writing to the socket and is not getting a reply.
by devnull
Wed Sep 04, 2019 10:23 am
Forum: General Discussion and Questions
Topic: umqtt_simple - bytes index out of range new error
Replies: 7
Views: 436

Re: umqtt_simple - bytes index out of range new error

OK, here's some debug info that has been added to mqtt_simple: This is the code from mqtt_simple: self.sock.write(premsg, i + 2) self.sock.write(msg) print('dbug-msg:',hex(len(msg)), hexlify(msg, ":")) self._send_str(self.client_id) if self.lw_topic: self._send_str(self.lw_topic) self._send_str(self...
by devnull
Wed Sep 04, 2019 7:19 am
Forum: General Discussion and Questions
Topic: umqtt_simple - bytes index out of range new error
Replies: 7
Views: 436

Re: umqtt_simple - bytes index out of range new error

Hi;

Thanks so much for offering help Jimmo, I have yet to debug myself, this is already mounted to a PCB and boxed.

I need to first do some basic debugging and potentially create some steps to replicate.

Will get beck to you once I have done that.
by devnull
Tue Sep 03, 2019 11:34 pm
Forum: General Discussion and Questions
Topic: umqtt_simple - bytes index out of range new error
Replies: 7
Views: 436

Re: umqtt_simple - bytes index out of range new error

When I revert back to an older build, the problem goes away and connection is successful every time with no errors:

Code: Select all

MicroPython v1.9.3-1869-ga9b1d3ca3
Using my latest, I get the bytes index out of range errors, and it very very rarely connects:

Code: Select all

micropython v1.11-218-g3eff81288
by devnull
Tue Sep 03, 2019 1:13 pm
Forum: General Discussion and Questions
Topic: umqtt_simple - bytes index out of range new error
Replies: 7
Views: 436

Re: umqtt_simple - bytes index out of range new error

Hello Jimmo, thanks for helping.

Sorrie, specifying the line number was misleading as I maye have added some comments to the top of the file, this in fact is line 84:

Code: Select all

assert resp[0] == 0x20 and resp[1] == 0x02
Cheers

PeterC
by devnull
Tue Sep 03, 2019 12:00 pm
Forum: General Discussion and Questions
Topic: umqtt_simple - bytes index out of range new error
Replies: 7
Views: 436

umqtt_simple - bytes index out of range new error

Just updated micropython on the SF2 and are now noticing mqtt errors (umqtt_simple line 84) during the connection process. This tries to connect 3 times and if it fails will goto sleep and try again later. But I don't recall seeing this "bytes index out of range" error ever before, and I have been u...
by devnull
Thu Jul 04, 2019 11:05 am
Forum: General Discussion and Questions
Topic: REPL - disable echo
Replies: 1
Views: 136

REPL - disable echo

I am talking to the device using nodejs serialport, and I need to disable the reply echo of the command entered.

Can this be done ??