Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tool ignores baud rate #82

Open
GTP95 opened this issue Jul 15, 2018 · 0 comments
Open

tool ignores baud rate #82

GTP95 opened this issue Jul 15, 2018 · 0 comments

Comments

@GTP95
Copy link

GTP95 commented Jul 15, 2018

After flashing the firmware, my module is listening on ttyUSB0 at a baud rate of 9600 baud (checked with serial terminal), so I'm trying to connect to that port using that baud rate, but nodemcu-uploader seems to simply ignore the parameter I pass on terminal, here is a sample output:
`$nodemcu-uploader -b 9600
opening port /dev/ttyUSB0 with 115200 baud
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/nodemcu_uploader/uploader.py", line 72, in __sync
self.__exchange(';') # Get a defined state
File "/usr/lib/python3.6/site-packages/nodemcu_uploader/uploader.py", line 166, in __exchange
return self.__expect(timeout=timeout or self._timeout)
File "/usr/lib/python3.6/site-packages/nodemcu_uploader/uploader.py", line 137, in __expect
raise CommunicationTimeout('Timeout waiting for data', data)
nodemcu_uploader.exceptions.CommunicationTimeout: Timeout waiting for data

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/bin/nodemcu-uploader", line 11, in
load_entry_point('nodemcu-uploader==0.4.3', 'console_scripts', 'nodemcu-uploader')()
File "/usr/lib/python3.6/site-packages/nodemcu_uploader/main.py", line 252, in main_func
uploader = Uploader(args.port, args.baud, start_baud=args.start_baud)
File "/usr/lib/python3.6/site-packages/nodemcu_uploader/uploader.py", line 78, in init
__sync()
File "/usr/lib/python3.6/site-packages/nodemcu_uploader/uploader.py", line 76, in __sync
raise DeviceNotFoundException('Device not found or wrong port')
nodemcu_uploader.exceptions.DeviceNotFoundException: Device not found or wrong port`

I installed your tool via PyPy, my os is Netrunner (based on Arch Linux) and the --version switch gaves this output:
nodemcu-uploader 0.4.3 (serial 3.3)

@kmpm kmpm added this to the v1.0.0 milestone Sep 9, 2020
@kmpm kmpm modified the milestones: v1.0.0, future Dec 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants