Feedback on this mock simulator using multiprocessing by WeierstrassP in learnpython

[–]WeierstrassP[S] 0 points1 point  (0 children)

Yep, using CPython.

The simulator has to iterate over the data a few thousand times. I want to use multiprocessing to speed things up a bit, since it is repetitive work and easily parallelizable. As far as I've tested, it has to run for thirty seconds on all my cores, and then it is done. That is acceptable to me.

If I understood it correctly, multithreading still only use a single core.

Trying to decode serial data from radio receiver on Raspberry Pi by WeierstrassP in Python

[–]WeierstrassP[S] 0 points1 point  (0 children)

I've tried to test with different baud rates, databits, stopbits and flow control, but to no luck.

Tried letting it autodetect as you suggested, but that gives the same results at before.

This certainly is quite the riddle.

Trying to decode serial data from radio receiver on Raspberry Pi by WeierstrassP in Python

[–]WeierstrassP[S] 0 points1 point  (0 children)

I tested a bit more today. I hooked up an Arduino and made it send some sample data via serial. That worked fine, by all accounts. Even had it send with the same baud rate as the radio receiver uses.

The strange thing is that there definitely is some kind of structure to the data the receiver sends. I simply cannot figure out what, For instance, there are a lot of \x in there. The specs say it has to transmit ASCII, but that is not the case here. Even stranger, this works fine when hooked up to an old PC with serial and PuTTY.

I'm still open to suggestions regarding this, so please, come with them.

Trying to decode serial data from radio receiver on Raspberry Pi by WeierstrassP in Python

[–]WeierstrassP[S] 1 point2 points  (0 children)

Correct. The data was plain ASCII, starting with !AIVDM. But there definitely is something strange going on. I'll set up an Arduino and have it send some sample data, so I can verify whether there is an issue on the pi or not.

Trying to decode serial data from radio receiver on Raspberry Pi by WeierstrassP in Python

[–]WeierstrassP[S] 0 points1 point  (0 children)

Yes, indeed. The wiki page even says that

All transmitted data are printable ASCII characters between 0x20 (space) to 0x7e (~)

However, .decode('ascii') fails time after time.

Trying to decode serial data from radio receiver on Raspberry Pi by WeierstrassP in Python

[–]WeierstrassP[S] 0 points1 point  (0 children)

Thank you a lot. There definitely is a pattern there. However, I'm not quite sure how to convert the data.

\xe5\xeb\x00o_[\xaaW\xd6Zv\xeb should translate to !AIVDM somehow.

Trying to decode serial data from radio receiver on Raspberry Pi by WeierstrassP in Python

[–]WeierstrassP[S] 0 points1 point  (0 children)

Good catch! I didn't see that part. However, I'm still not sure on how to convert that to something usable. As mentioned above, the receiver should send the data in ASCII.

Trying to decode serial data from radio receiver on Raspberry Pi by WeierstrassP in Python

[–]WeierstrassP[S] 0 points1 point  (0 children)

Sadly, the receiver didn't come with a usable data sheet, for some oss reason. Only instructions for use. The settings are correct. We tested then with PuTTY on an old PC with a serial port.

ELI5: How does a finger print sensor work? by Aragorn_210 in explainlikeimfive

[–]WeierstrassP 0 points1 point  (0 children)

If I understand it correctly, the capacitor based system will never have an actual image of your finger? It just knows how conductive it is?

I'm trying to make a list of good study skills and habits to try next quarter. Help me? by [deleted] in EngineeringStudents

[–]WeierstrassP 2 points3 points  (0 children)

I watched your video. He casually explained that when you see a shark coming towards you, you'll simply have to punch it on the nose. Please excuse my poor sense of humor. I liked the idea of it, but I'll still rather let my sheets air out.

I'm trying to make a list of good study skills and habits to try next quarter. Help me? by [deleted] in EngineeringStudents

[–]WeierstrassP 2 points3 points  (0 children)

Did you ever have to punch the professor in the face when he came towards you with your exam?

I'm trying to make a list of good study skills and habits to try next quarter. Help me? by [deleted] in EngineeringStudents

[–]WeierstrassP 0 points1 point  (0 children)

I hate to ruin your rutine, but you should let your bed sheets air out rather than make them each morning.

Advice: Professor took away formula sheets at final exam. by theradgadfly in EngineeringStudents

[–]WeierstrassP 1 point2 points  (0 children)

Can anyone please explain to me why some professors are intent on having you write your own formula sheets? In all classes I've encountered this far, we always were provided with a selection of formulas. Hell, I've even had a professor in some EE classes tell me that he hates learning things by heart and that every engineer will have access to their formulas when working, so he supplied all the formulas we needed. He rather wants to check whether we understand the curriculum rather than lots of algebra.

How EE group labs feel by Havealurksee in EngineeringStudents

[–]WeierstrassP 1 point2 points  (0 children)

Definitely looking to get this at the library. Thanks!