loginek0 wrote:sprinkmeier wrote:Could you try
just to see what happens?
The following screen with responses:
These values are different each time after execution of this command.
That's expected :-)
urandom is a non-blocking source of random bytes, so if they'd been the same every time I'd have been worried :-)
Given that urandom seems to be working I'm not sure why opening it in a python program is causing the program to block.
weird...
You're not doing a 'read()' by any chance? that will read as much data as the device has available which, in the case of urandom, is approximately infinite...
sprinkmeier wrote:
The converter can probably work even faster, but it the cable has too much capacitance then you'll have problems.
Assuming the same hardware (cable, length, converter...) works on the windows though then baud rate shouldn't be the problem.
I checked the communication on ubuntu system (not on the Raspberry pi) - is working properly, as well as on windows. Unfortunately, the Raspberry Pi still are returned only four bytes.
same python code on Ubuntu works, but not on pi?
the plot thickens...
un-plug the dongle
run
sudo dmesg -c to clean the kernel debug message buffer (*)
plug in the dongle
run
dmesg again and post the output (text in CODE block is fine, no need for a screenshot)
(*) _NEVER_ run anything (especially with "sudo" in it) that you don't understand, unless it's from a trusted source (**)
(**) you can trust me. really!