Commit Graph

46 Commits

Author SHA1 Message Date
Johannes Pohl
7fdc05ab01 Save antenna selection (#494)
* fix #493

* update changelog

* refactor open label dialog test
2018-07-08 15:30:10 +02:00
Johannes Pohl
5ac33fa30c Add alignment action in analysis (#458)
* add align action to gui

* initial message alignment

* consider alignment in diff and search

* add reset link for alignment

* consider alignment in setData

* rebuild icons + change placeholder text of search line edit

* catch None error

* increase timeout for ci

* fix restore selection + label adding for aligned messages

* consider alignment for labels

* consider alignment offset when calculating column count

* enhance show diff unittest

* scroll to alignment

* consider hidden labels when changing alignment

* update changelog
2018-06-24 21:02:37 +02:00
Johannes Pohl
543d7f3b5e compress larger test signals 2018-06-18 20:26:13 +02:00
Johannes Pohl
09026b9952 make endianness selectable in order column (#428)
* make endianness selectable in order column

* improve display for BE and LE

* add test for choosing endianness

* update coveragerc
2018-04-17 13:05:01 +02:00
Johannes Pohl
6c1ae0ec25 Integrate Simulator Tab (#395)
* enable simulator tab

* save simulated participant in project

* add link for checksum label and make it configurable

* handle checksum label change for simulator label

* fix crash when editing field types with active simulator labels

* allow assigning multiple source/destination at once

* remove unused event

* use default line color for arrows

* cleanup code

* refactor bootstrapping of device settings and sniff widget
add button for opening sniff dialog in simulator dialog

* reformat code

* enhance bootstrapping to keep initial project manager settings

* highlight simulated participants in flow graph

* more verbose logging

* reformat file

* fix initial gain settings

* reformat code

* also save antenna index

* unify sniffer settings

* add signal selection to sniff widget to take values from signal

* add default argument

* fix missing refresh when adding items to scene with participant assigned

* catch error when saving xml

* refactor SimulatorProtocolLabel

* Improve handling of checksum labels

* travis: generate coverage data for all python > 3.4

* replace print calls with logger calls

* refactor goto action

* refactor simulator message

* refactor simulator rule

* rename to SimulatorExternalProgramAction

* add tooltip for value type

* improve performance of protocol sniffer

* improve performance of protocol sniffer even further

* directly emit signal and do not use timer

* add unittest for protocol sniffer

* add test for clear action

* add test for settings proxy

* add test for accepting sniffed messages

* make test more generic

* repair test

* catch none error

* fix typo

* refactor dialog creation

* add test for simulation flow

* refactor read_receiving_queue

* fix unittest

* increase timeout for ci

* improve sniffer performance especially when reaching end of buffer

* catch error

* add timeout for windows

* improve condition

* move run command and parse command to util and refactor methods

* add validate command method and refactor run_command

* fix imports

* improve validate check

* proper renaming

* rename log messages accordingly

* cleanup method

* add external program support for simulator

* fix if condition

* travis ci: use sudo for all builds

* revert

* add wait for ci

* improve test

* fix shebang

* refactor run command

* fix enabled repeat status and add wait for sync send

* pad send buffer with zeros if not enough data present

* catch exceptions when closing errors

* Revert "pad send buffer with zeros if not enough data present"

This reverts commit b5ea80ae27.

* remove timeout and return zeros properly in callback

* prevent calling gnuradio installed check too often

* rename repeat -> copies

* mark get live vs static labels

* Get live from simulation -> Live Input

* use shlex for calling programs

* fix valid check

* catch empty list error

* check if commmand is available before running

* windows support

* catch value error

* improve windows support

* adapt unittests

* Revert "adapt unittests"

This reverts commit 97d8a2c45a.

* get and store default programs on windows

* improve condition and pipe stderr

* also pipe stderr

* add validity check when assigning multiple message sources/destinations

* remove Create new message type based on this message

* Rename External Program Action -> Trigger Command

* fix unittest

* increase timeout for ci

* get external command action to work

* add timeout for sync send devices

* fix windows test

* fix call

* improve logging view

* make use of filter

* append participants instead of overwriting to prevent key errors

* add sip version str

* travis: test revent pyqt5

* Revert "travis: test revent pyqt5"

This reverts commit df1b403a51.

* proper naming + add context menu action for set value type

* support batch assigning of value type index

* fix method name

* adapt unittest to new logic

* add copy and paste for simulator scene

* show transcript

* support bit and hex view for transcript

* Fix display error in simulator

* improve logging

* catch index error

* improve condition

* show signals in modulation dialog created from simulator dialog

* fix filtering for KDE users

* add comment

* improve performance of filtering rows

* remove redundant update

* fix empty frame visible status to handle larger protocol files

* fix sending finished status

* fix unittest

* enhance modulation API do not cache result to avoid memory leak

* increase wait for devices timeout

* Fix memory leak for send dialog

* fix data loss for tree views

* Fix sample rates for AirSpy
- R2: 10M only
- Mini: 6M only

* set delete on close attribute

* Fix sample rates for AirSpy
- R2: 10M only
- Mini: 6M only

* Fix sample rates for AirSpy
- R2: 10M only
- Mini: 6M only

* Fix sample rates for AirSpy
- R2: 10M only
- Mini: 6M only

* allow capture full rx in simulator and make it possible to save rx data

* do not add gr device for continuous send mode

* fix property

* Some UI improvements

* improve performance of fsk modulation

* Fixed handle width

* improve performance of ask modulation

* improve performance of psk modulation

* fix unittest

* improve gfsk performance

* remove old modulation implementation

* increase timeout for ci

* use sudo by default for travis

* use fsk for test

* remove prange as it can lead to errors in continous modulation

* short async wait

* use spawn on all platforms

* increase timeout for ci

* decrease modulator buffer size

* make fsk parallel

* improve data types

* centralize setting of CONTINUOUS_BUFFER_SIZE_MB

* add log message

* add reset link for filtering

* new simulator default timeout

* catch index error

* catch error

* use shared memory for send buffer

* remove auto assign decodings

* remove dup variable

* rename sendbuffersize to rx chunk size and remove var dup

* READ_SAMPLES->SYNC_RX_CHUNK_SIZE

* fix data type in send config and remove pause in simulation

* improve hackrf send callback

* Tab prio changed

* improve sending backend

* fix lime send

* fix usrp send

* improve continous send mode for usrp

* improve code

* pad limesdr with zeros if needed

* fix log error

* enter continuous send dialog earlier

* add missing set_bandwidth_status call for RTLSDR

* save gains and antenna index per rx/tx

* show modulation profiles only when requested in options

* decrease complexity

* add edit labels action to context menu in simulator message table

* improve performance of auto detect freq

* add sleep action

* fix unittests + remove redundant test

* add counter action

* add parent to timers + increase coverage for cfc

* improve test

* use sip to delete dialogs

* improve tests

* set dialog to none

* add log message

* remove unneeded base class

* remove redundant test

* do not inherit qttestcase without reason

* stop sniffer in test

* reformat test files

* add a short wait after teardown

* give each app a unique name

* fix travis conf

* name concurrency setting in coveragerc

* remove xml setting

* improve condition

* add combine

* coverage only for python 3.6

* install pytest cov and coveralls only for python 3.6

* remove concurrency setting

* update coveragerc

* add tests for decoding dialog

* Added external programm for decoding/encoding Homematic that does a dirty trick:
After "decryption" the CRC is recalculated and the corresponding field will be overwritten if the CRC was correct before. In this way you can directly see whether the Homematic message is correct without switching to a intermediate layer (before decryption).

* fix selection error in Decoding dialog and move test to TestExternalDecodings.py

* beautify simulation scene

* show shown rows labels always and not only for filter

* prevent auto default

* clear transcript only on start and add crc log

* Minor stuff:
* Timeout Sim in ms
* CRC Label check fixed
* transcript format improved

* improve loading of txt support transcript and hex

* fix close all disbled status

* prepare open in analysis

* implement logic for open in analysis button

* refactor transcript newline

* enhance order of close event

* improve logging output

* increase align depth

* only color got string in log

* update userguide
2018-02-28 10:15:08 +01:00
Johannes Pohl
fd933edfc7 integrate changes from simulator branch but disable simulator for now
The simulator is not yet ready for usage but the changes on the
architecture are valueable for the master branch.
Therefore, I merged the branch with the following addition:
 * Close the Simulator Tab whenever the program starts
2018-01-30 11:58:30 +01:00
Johannes Pohl
5215a703cd add unittest for drop mime data of protocol tree model 2018-01-23 18:14:09 +01:00
Johannes Pohl
82279c9767 make bit order configurable in analysis view table (#390)
* make bit order configurable in analysis view table

* save bit order to project file

* reformat files

* ensure message is aligned

* update coveragerc

* add test for tooltips
2018-01-16 13:47:21 +01:00
Johannes Pohl
9a32c4b698 fix bcd display 2018-01-09 12:44:18 +01:00
Johannes Pohl
a89a39504d add bcd display type 2018-01-08 14:26:34 +01:00
Johannes Pohl
be1c8bc79a refactor label value model + add unittest 2018-01-08 14:26:34 +01:00
Johannes Pohl
26072bf3ec show warning at bottom if no project loaded (#374)
* show warning at bottom if no project loaded

* fix unittest

* increase verbosity

* remove debug prints from tests

* remove redundant close

* add two participants by default

* keep loaded files if new project created from non project

* add link to new project dialog

* fix link aesthetics

* update coveragerc
2017-12-03 10:23:38 +01:00
Johannes Pohl
48111af1e6 Show Checksum Status in Tooltip (#337) 2017-10-03 22:17:09 +02:00
Johannes Pohl
6f199d9110 do not clear search text on failed searches fix #333 2017-09-29 08:08:59 +02:00
Johannes Pohl
87a5c6558c Optimize fuzzing performance (#255)
optimize fuzzing performance
2017-04-30 14:59:21 +02:00
Johannes Pohl
69070617cf refactor context menu event + add unittest 2017-03-30 23:12:43 +02:00
Johannes Pohl
745d351b2c remove unused signal references 2017-03-28 00:11:23 +02:00
Johannes Pohl
05769a0700 add missing process events 2017-03-27 23:59:59 +02:00
jopohl
612dcdf38c centralize add signal to form 2017-03-27 10:58:13 +02:00
jopohl
fc793e2e71 add common base class for test cases 2017-03-27 10:16:43 +02:00
Johannes Pohl
37a92f8683 write settings 2017-03-26 22:19:28 +02:00
Johannes Pohl
574c8b92ee add dedicated app context for tests 2017-03-26 22:03:35 +02:00
Johannes Pohl
b82638d50b remove signal ref 2017-03-26 15:21:15 +02:00
Johannes Pohl
4dddae33e3 add logs 2017-03-26 12:04:05 +02:00
Johannes Pohl
4a12fa52bc remove unneeded process events 2017-03-26 11:53:34 +02:00
Johannes Pohl
0d22b1e858 add process events 2017-03-26 04:17:16 +02:00
Johannes Pohl
48e476607b improve stability 2017-03-26 01:35:23 +01:00
Johannes Pohl
286b5bc1b9 refactor test timeouts 2017-03-20 18:53:47 +01:00
jopohl
a9f406d992 add tests for label selection and remove label 2017-03-18 19:27:49 +01:00
jopohl
d18934b6d3 improve stability 2017-03-18 17:28:08 +01:00
Johannes Pohl
9e2529cc24 improve test stability 2017-03-17 10:13:12 +01:00
Johannes Pohl
66268ba44e add tests for cfc 2017-03-11 14:47:51 +01:00
Johannes Pohl
1ca601f955 fix failing tests 2017-03-10 17:00:53 +01:00
Johannes Pohl
f3ab1dec6b fix test for show in interpretation 2017-03-06 19:26:16 +01:00
Johannes Pohl
30643c1a68 fix tests 2017-03-06 18:18:47 +01:00
Johannes Pohl
3bf6bb63b3 fix #182 2017-03-06 14:48:43 +01:00
Johannes Pohl
cfabd7f8bd add assert 2017-02-28 16:45:03 +01:00
Johannes Pohl
4d3859bfe1 add test for show in interpretation 2017-02-28 16:43:28 +01:00
Johannes Pohl
efcee1235c prevent interactive close questions in analysis test 2017-02-16 19:48:17 +01:00
Johannes Pohl
a56d7982c2 add process events before close for travis 2017-02-16 19:44:58 +01:00
Johannes Pohl
29886e126b add unittests for table context menus 2017-02-16 19:09:53 +01:00
andynoack
b6a8099d51 fix unittests for non bit default view type 2017-02-16 10:38:14 +01:00
Johannes Pohl
b281b81b8f enhance tests for analysis tab 2017-02-11 20:54:39 +01:00
Johannes Pohl
bb94ad6cf1 absolute paths in testing, to start tests from any directory 2017-01-31 15:12:08 +01:00
jopohl
55fe34488a catch indexerror for dirty preambles 2016-10-28 15:57:26 +02:00
jopohl
b8d5c40e92 create unittest for analyze button 2016-10-28 13:36:54 +02:00