Error with miniterm.py
Closed this issue · 7 comments
aabadie commented
Tested with basic shell RIOT firmware (examples/default
). When I type up-arrow, I get this error:
root@node-a8-155:~# miniterm.py /dev/ttyA8_M3 500000 -e
^[[B--- Miniterm on /dev/ttyA8_M3 500000,8,N,1 ---
--- Quit: Ctrl+] | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H ---
Exception in thread tx:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 754, in run
self.__target(*self.__args, **self.__kwargs)
File "/usr/bin/miniterm.py", line 449, in writer
self.console.write(echo_text)
File "/usr/bin/miniterm.py", line 60, in write
self.output.write(s)
UnicodeEncodeError: 'ascii' codec can't encode character u'\u241b' in position 0: ordinal not in range(128)
It looks the python installation has problems.
fsaintma commented
I cannot reproduce your bug.
I have launched an experiment on Saclay site with one A8 node and compiled default firmware from RIOT (2017.04-branch)
> make ETHOS_BAUDRATE=500000 BOARD=iotlab-a8-m3 -C examples/default clean all
After I go to A8 node, flash firmware and read serial port with success:
root@node-a8-174:~/A8# miniterm.py /dev/ttyA8_M3 500000 -e
--- Miniterm on /dev/ttyA8_M3 500000,8,N,1 ---
--- Quit: Ctrl+] | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H ---
> help
Command Description
---------------------------------------
reboot Reboot the node
ps Prints information about running threads.
ifconfig Configure network interfaces
txtsnd Sends a custom string as is over the link layer
saul interact with sensors and actuators using SAUL
>
aabadie commented
I could also have the shell commands until I hit the up/down arrow on my keyboard.
fsaintma commented
Ok I didn't view the up/down arrow :)
aabadie commented
well done! Is it available in Saclay ?
fsaintma commented
Yes it's done on Saclay site :)
aabadie commented
thanks ! good job