notes:datacomm
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
notes:datacomm [2018/09/20 18:28] – [Morse Code Fun (Mcf0)?] bstrong2 | notes:datacomm [2018/11/14 20:07] (current) – [Mcf1?] bstrong2 | ||
---|---|---|---|
Line 10: | Line 10: | ||
Since our getting started plan is learning some python, generally the first project that you do is making the " | Since our getting started plan is learning some python, generally the first project that you do is making the " | ||
- | ======Morse Code Fun (Mcf0)?====== | + | ======Morse Code Fun (Mcf0) |
**morse code sender/ | **morse code sender/ | ||
Line 22: | Line 22: | ||
^^^ totally not copied from Wikipedia... Basically it's a way of communication through sound using long and short sounds called dits(short sounds) and dahs(long sounds). | ^^^ totally not copied from Wikipedia... Basically it's a way of communication through sound using long and short sounds called dits(short sounds) and dahs(long sounds). | ||
+ | |||
+ | |||
+ | **How much functionality should the program have?** | ||
+ | |||
+ | The program shall be able to recognize these letters: | ||
+ | * **[A-Z]** | ||
+ | * **Comma: ---...** | ||
+ | * **Equals: -...-** | ||
+ | * **Period (also called full stop): .-.-.-** | ||
+ | * **Question mark: ..--..** | ||
+ | * **AA new line (\n): .-.-** | ||
+ | * **AR end of message (EOF): .-.-.** | ||
**Well okay what does this program need to do?** | **Well okay what does this program need to do?** | ||
- | First thing we need to come up with a way to express our dits and dahs (that way we can use each others programs to encode/ | + | First thing we need to come up with a way to express our dits and dahs (that way we can use each others programs to encode/ |
- | So our encoder should be able to convert text into the dits and dahs, and our decoder should convert dits and dahs to text. | + | So our encoder should be able to convert text into the dits and dahs, and our decoder should convert dits and dahs to text. |
encoder ex: | encoder ex: | ||
- | * encoder --> . -. -.-. --- -.. . .-. | + | * $ ./encode <<< |
- | * enc oder --> . -. -.-. | --- -.. . .-. | + | * $ ./encode <<< |
+ | * $ ./encode <<< | ||
+ | |||
decode ex: | decode ex: | ||
- | * . -. -.-. --- -.. . .-. --> encoder | + | * $ ./decode «< “. -. -.-. --- -.. . .-. .-.- .-.-." |
- | * . -. -.-. | --- -.. . .-. --> enc oder | + | * $ ./decode «< “. -. -.-. | --- -.. . .-. .-.- .-.-." |
+ | * $ ./encode <<< | ||
+ | | ||
- | It might be a good idea to use more than one space between each letter separation... | + | **Should we have the program accept the augments in argv, or use input?** |
+ | Quote from our lord: " | ||
+ | know if we have that logic in place, | ||
+ | communication scenarios." | ||
- | **How much functionality should the program have?** | ||
- | |||
- | This meaning should we only have the program go from A-Z or include special characters (things like ! , . /)? | ||
- | |||
- | |||
- | **Should we have the program accept the augments in argv, or use input?** | ||
- | |||
- | This probably doesn' | ||
+ | **If one desires, there is an opportunity to get some nice testing scripts up and going** | ||
+ | Yet another quote from our lord again: "Also, there are opportunities to write evaluation scripts and whatnot to | ||
+ | really give our encoders/ | ||
+ | information accordingly." | ||
- | **Anything else that anyone can think of that this program should | + | ======EOCE====== |
+ | Well looks like the EOCE' | ||
======URLs====== | ======URLs====== | ||
Pythons built in functions: | Pythons built in functions: | ||
Line 65: | Line 80: | ||
How does one start programming on lab46? | How does one start programming on lab46? | ||
- | There might be a different way, but this is what i'm doing... So if you add this line to the file that you intend to program in, then you're all good to start programming in thee dank python. **# | + | There might be a different way, but this is what i'm doing... So if you add this line to the file that you intend to program in, then you're all good to start programming in thee dank python. **# |
Another way to run a Python Program is to simply include the command python before your script. | Another way to run a Python Program is to simply include the command python before your script. |
notes/datacomm.1537482506.txt.gz · Last modified: 2018/09/20 18:28 by bstrong2