summary |
shortlog | log |
commit |
commitdiff |
tree
first ⋅ prev ⋅ next
Antonio Ospite [Thu, 24 Dec 2015 09:37:22 +0000 (10:37 +0100)]
call_distance_modulation.gnuplot: adjust to plot the new logs
Antonio Ospite [Thu, 24 Dec 2015 09:34:28 +0000 (10:34 +0100)]
CallDistanceTransceiver.py: make test_send_receive() use the new scheme
In test_send_receive() use the new way of passing parameters to
CallDistanceTransceiver, and while at it, improve the test adding some
randomness.
Antonio Ospite [Thu, 24 Dec 2015 09:29:29 +0000 (10:29 +0100)]
CallDistanceTransceiver.py: use a min,max scheme instead of avg,uncertainty
Specify parameters using a minimum and a maximum values, like
call_setup_time_min,call_setup_time_max and ring_time_min,ring_time_max.
This makes it more intuitive to measure the stability of the line, and
makes the code more readable too.
Antonio Ospite [Thu, 24 Dec 2015 09:24:30 +0000 (10:24 +0100)]
CallDistanceTransceiver.py: remove a leftover print() statement
Antonio Ospite [Wed, 23 Dec 2015 18:26:51 +0000 (19:26 +0100)]
MorseTranslator.py: don't sanitize away word spaces
Don't strip word spaces when sanitizing strings, those spaces may be
part of the original message.
Antonio Ospite [Wed, 23 Dec 2015 18:24:25 +0000 (19:24 +0100)]
receive.py: fix a print statement and also flush the output
Remove unneeded parentheses in a print statements, and also flush the
output: when using logging and redirection sometimes the output does not
get printed.
Antonio Ospite [Mon, 21 Dec 2015 19:39:30 +0000 (20:39 +0100)]
CallDistanceTransceiver.py: reformat printing the symbols times
Have the same number of spaces on each line, this makes it easier to
plot the data by fields using the space as a field delimiter.
While at it also split the lines as they would be too long according to
PEP8.
Antonio Ospite [Mon, 21 Dec 2015 19:30:12 +0000 (20:30 +0100)]
CallDistanceTransceiver.py: remove unneeded empty line
Antonio Ospite [Mon, 21 Dec 2015 19:25:31 +0000 (20:25 +0100)]
CallDistanceTransceiver.py: fix a print format in a debug message
The times here are not exact integers, so print them as float.
Antonio Ospite [Mon, 21 Dec 2015 19:22:57 +0000 (20:22 +0100)]
CallDistanceTransceiver.py: fix an error message
The error is about call_distance, not ring_distance.
Antonio Ospite [Mon, 21 Dec 2015 18:41:00 +0000 (19:41 +0100)]
measure_call_setup_time.py: make the output more readable
Sleep _after_ having printed the info about the call, the output flow is
more understandable this way.
While at it also avoid the "First ring" message which is misleading
besides, it was a leftover from measure_ring_distance.py
Antonio Ospite [Thu, 17 Dec 2015 17:08:50 +0000 (18:08 +0100)]
Resume command mode after dialing, always
Put a semicolon after the AT command when dialing the destination
number. Without this, some modems won't accept the ATH command and won't
be able to terminate a call before the receiver has answered.
Antonio Ospite [Thu, 17 Dec 2015 11:59:41 +0000 (12:59 +0100)]
CallDistanceTransceiver.py: resume command mode after dialing
Put a semicolon after the AT command when dialing the destination
number. Without this, some modems won't accept the ATH command and won't
be able to terminate a call before the receiver has answered.
Antonio Ospite [Thu, 17 Dec 2015 11:56:32 +0000 (12:56 +0100)]
CallDistanceTransceiver.py: don't put the general case in an else
Since the code returns when the particular case of the very first call
occurs, there is no need to put the general case in the else.
Antonio Ospite [Thu, 17 Dec 2015 11:55:05 +0000 (12:55 +0100)]
README.md: improve wording and make Corrado's name more visible
Antonio Ospite [Mon, 14 Dec 2015 18:53:34 +0000 (19:53 +0100)]
Modem.py: use the more idiomatic "while True" instead of "while 1"
Antonio Ospite [Mon, 14 Dec 2015 17:31:44 +0000 (18:31 +0100)]
MorseTranslator.py: remove unneeded code in sanitize_morse()
The Morse string will never contain a '|' because it would have been
already replaced in a previous sanitization step.
Also we don't define anywhere that '|' can act as an alternative word
separator, so it should be replaced with a space just like any other
invalid character.
Antonio Ospite [Mon, 14 Dec 2015 16:38:35 +0000 (17:38 +0100)]
MorseTranslator.py: fix sanitize_text
Use a regex more adherent to the characters actually translated, also
follow the order in which the characters appear in the signals table.
Antonio Ospite [Thu, 10 Dec 2015 21:31:04 +0000 (22:31 +0100)]
Initial import