-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Framebuffer update #60
Merged
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
6368765
first pass at changing the UI color based on state
cooperq f27b632
adding flag to qmdl metadata for when hueristic is triggered
cooperq 0beebdd
update style for web page to match UI and have color alert on heurist…
cooperq 0043c78
add test analyzer
cooperq ffd5e60
rename example_analyzer to test_analyzer
cooperq a66c507
refactor ui update to not depend on server
cooperq c72e701
refactor to pass around color instead of display state for framebuffe…
cooperq 2428d01
add debug feature flag for test analyzer
cooperq 16ef979
remove warning status from qmdl manifest
cooperq 5f505de
dont keep has warning around
cooperq File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
use std::borrow::Cow; | ||
|
||
use telcom_parser::lte_rrc::{PCCH_MessageType, PCCH_MessageType_c1, PagingUE_Identity}; | ||
|
||
use super::analyzer::{Analyzer, Event, EventType, Severity}; | ||
use super::information_element::{InformationElement, LteInformationElement}; | ||
|
||
pub struct TestAnalyzer{ | ||
pub count: i32, | ||
} | ||
|
||
impl Analyzer for TestAnalyzer{ | ||
fn get_name(&self) -> Cow<str> { | ||
Cow::from("Example Analyzer") | ||
} | ||
|
||
fn get_description(&self) -> Cow<str> { | ||
Cow::from("Always returns true, if you are seeing this you are either a developer or you are about to have problems.") | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. lol |
||
} | ||
|
||
fn analyze_information_element(&mut self, ie: &InformationElement) -> Option<Event> { | ||
self.count += 1; | ||
if self.count % 100 == 0 { | ||
return Some(Event { | ||
event_type: EventType::Informational , | ||
message: "multiple of 100 events processed".to_string(), | ||
}) | ||
} | ||
let InformationElement::LTE(LteInformationElement::PCCH(pcch_msg)) = ie else { | ||
return None; | ||
}; | ||
let PCCH_MessageType::C1(PCCH_MessageType_c1::Paging(paging)) = &pcch_msg.message else { | ||
return None; | ||
}; | ||
for record in &paging.paging_record_list.as_ref()?.0 { | ||
if let PagingUE_Identity::S_TMSI(_) = record.ue_identity { | ||
return Some(Event { | ||
event_type: EventType::QualitativeWarning { severity: Severity::Low }, | ||
message: "TMSI was provided to cell".to_string(), | ||
}) | ||
} | ||
} | ||
None | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/bin/sh | ||
cargo build --release --target="armv7-unknown-linux-gnueabihf" | ||
cargo build --release --target="armv7-unknown-linux-gnueabihf" #--features debug | ||
adb push target/armv7-unknown-linux-gnueabihf/release/rayhunter-daemon /data/rayhunter/rayhunter-daemon | ||
adb shell '/bin/rootshell -c "/etc/init.d/rayhunter_daemon restart"' |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nitpick: idiomatically i think this should be an
impl From<DisplayState> for Color565 {}
, and then we could just saydisplay_color = state.into()
in the recv block