Skip to content

Commit

Permalink
Merge pull request #15 from cslrfid/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
ksclam authored Nov 26, 2023
2 parents c1dab95 + a9ba297 commit 620c202
Show file tree
Hide file tree
Showing 13 changed files with 285 additions and 184 deletions.
10 changes: 5 additions & 5 deletions CS710iOSClient.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
archiveVersion = 1;
classes = {
};
objectVersion = 53;
objectVersion = 54;
objects = {

/* Begin PBXBuildFile section */
Expand Down Expand Up @@ -578,7 +578,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
DEVELOPMENT_TEAM = ZDHT9HGJF7;
DEVELOPMENT_TEAM = 67RT9ZRG3Y;
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
"$(PROJECT_DIR)",
Expand All @@ -590,7 +590,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 1.0;
MARKETING_VERSION = 1.1;
PRODUCT_BUNDLE_IDENTIFIER = com.csl.CS710SiOSClient;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
Expand All @@ -605,7 +605,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
DEVELOPMENT_TEAM = ZDHT9HGJF7;
DEVELOPMENT_TEAM = 67RT9ZRG3Y;
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
"$(PROJECT_DIR)",
Expand All @@ -617,7 +617,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 1.0;
MARKETING_VERSION = 1.1;
PRODUCT_BUNDLE_IDENTIFIER = com.csl.CS710SiOSClient;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"images" : [
{
"filename" : "authentication.png",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
363 changes: 209 additions & 154 deletions CS710iOSClient/CSLRfidDemoApp.storyboard

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion CS710iOSClient/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<key>CFBundleShortVersionString</key>
<string>$(MARKETING_VERSION)</string>
<key>CFBundleVersion</key>
<string>250</string>
<string>376</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>NSBluetoothAlwaysUsageDescription</key>
Expand Down
12 changes: 0 additions & 12 deletions CS710iOSClient/ViewControllers/CSLHomeVC.m
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,6 @@ - (IBAction)btnInventoryPressed:(id)sender {
[self presentViewController:alert animated:YES completion:nil];
}
else {
[self.actHomeSpinner startAnimating];
[[NSRunLoop currentRunLoop] runUntilDate:[NSDate dateWithTimeIntervalSinceNow:0.0]];
self.view.userInteractionEnabled=false;
[self showTabInterfaceActiveView:CSL_VC_RFIDTAB_INVENTORY_VC_IDX];
}

Expand Down Expand Up @@ -254,9 +251,6 @@ - (IBAction)btnTagAccessPressed:(id)sender {
[self presentViewController:alert animated:YES completion:nil];
}
else {
[self.actHomeSpinner startAnimating];
[[NSRunLoop currentRunLoop] runUntilDate:[NSDate dateWithTimeIntervalSinceNow:0.0]];
self.view.userInteractionEnabled=false;
[self showTabInterfaceActiveView:CSL_VC_RFIDTAB_ACCESS_VC_IDX];
}

Expand All @@ -277,9 +271,6 @@ - (IBAction)btnTagSearchPressed:(id)sender {
[self presentViewController:alert animated:YES completion:nil];
}
else {
[self.actHomeSpinner startAnimating];
[[NSRunLoop currentRunLoop] runUntilDate:[NSDate dateWithTimeIntervalSinceNow:0.0]];
self.view.userInteractionEnabled=false;
[self showTabInterfaceActiveView:CSL_VC_RFIDTAB_SEARCH_VC_IDX];
}

Expand Down Expand Up @@ -323,9 +314,6 @@ - (IBAction)btnReadTemperaturePressed:(id)sender {
[self presentViewController:alert animated:YES completion:nil];
}
else {
[self.actHomeSpinner startAnimating];
[[NSRunLoop currentRunLoop] runUntilDate:[NSDate dateWithTimeIntervalSinceNow:0.0]];
self.view.userInteractionEnabled=false;
[self showTemperatureTabInterfaceActiveView:CSL_VC_TEMPTAB_READTEMP_VC_IDX];
}

Expand Down
8 changes: 8 additions & 0 deletions CS710iOSClient/ViewControllers/CSLInventoryVC.m
Original file line number Diff line number Diff line change
Expand Up @@ -240,10 +240,18 @@ - (void)viewWillAppear:(BOOL)animated {
[self->uivSendTagData setHidden:true];
}

self.view.userInteractionEnabled=false;
[self.actInventorySpinner startAnimating];

}

- (void)viewDidAppear:(BOOL)animated {
// Do any additional setup after loading the view.
[CSLReaderConfigurations setAntennaPortsAndPowerForTags:false];
[CSLReaderConfigurations setConfigurationsForClearAllSelectionsAndMultibanks];
[CSLReaderConfigurations setConfigurationsForTags];
self.view.userInteractionEnabled=true;
[self.actInventorySpinner stopAnimating];
}

- (void)viewWillDisappear:(BOOL)animated {
Expand Down
31 changes: 30 additions & 1 deletion CS710iOSClient/ViewControllers/CSLTagAccessVC.m
Original file line number Diff line number Diff line change
Expand Up @@ -93,12 +93,24 @@ - (void)viewWillAppear:(BOOL)animated {
}

self.txtPower.text=[NSString stringWithFormat:@"%d", [CSLRfidAppEngine sharedAppEngine].settings.power];

[self.actTagAccessSpinner startAnimating];
self.view.userInteractionEnabled=false;

}

- (void)viewDidAppear:(BOOL)animated {
// Do any additional setup after loading the view.
[CSLReaderConfigurations setAntennaPortsAndPowerForTagAccess:false];
[CSLReaderConfigurations setConfigurationsForClearAllSelectionsAndMultibanks];
[CSLReaderConfigurations setConfigurationsForTags];

self.view.userInteractionEnabled=true;
[self.actTagAccessSpinner stopAnimating];

self.btnRead.enabled=true;
self.btnWrite.enabled=true;
self.btnSecurity.enabled=true;
self.btnKill.enabled=true;
}

- (void)viewWillDisappear:(BOOL)animated {
Expand Down Expand Up @@ -241,8 +253,12 @@ - (IBAction)btnUserWordPressed:(id)sender {
- (IBAction)btnReadPressed:(id)sender {

@autoreleasepool {
self.btnRead.enabled=false;
self.btnWrite.enabled=false;
self.btnSecurity.enabled=false;
self.btnKill.enabled=false;
[self.actTagAccessSpinner startAnimating];
self.view.userInteractionEnabled=false;

BOOL result=true;
Byte tidWordCount =[[[self.btnTidUidWord titleLabel].text substringFromIndex:5] intValue];
Expand Down Expand Up @@ -535,16 +551,24 @@ - (IBAction)btnReadPressed:(id)sender {
[alert addAction:ok];
[self presentViewController:alert animated:YES completion:nil];

self.btnRead.enabled=true;
self.btnWrite.enabled=true;
self.btnSecurity.enabled=true;
self.btnKill.enabled=true;

[self.actTagAccessSpinner stopAnimating];
self.view.userInteractionEnabled=true;
}
}

- (IBAction)btnWritePressed:(id)sender {
@autoreleasepool {
self.btnRead.enabled=false;
self.btnWrite.enabled=false;
self.btnSecurity.enabled=false;
self.btnKill.enabled=false;
[self.actTagAccessSpinner startAnimating];
self.view.userInteractionEnabled=false;

BOOL result=true;
Byte userWordCount = [[[self.btnUserWord titleLabel].text substringFromIndex:5] intValue];
Expand Down Expand Up @@ -842,7 +866,12 @@ - (IBAction)btnWritePressed:(id)sender {
[self presentViewController:alert animated:YES completion:nil];

self.btnRead.enabled=true;
self.btnWrite.enabled=true;
self.btnSecurity.enabled=true;
self.btnKill.enabled=true;

[self.actTagAccessSpinner stopAnimating];
self.view.userInteractionEnabled=true;
}

}
Expand Down
3 changes: 2 additions & 1 deletion CS710iOSClient/ViewControllers/CSLTagKillVC.m
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,8 @@ - (void) didReceiveTagResponsePacket: (CSLBleReader *) sender tagReceived:(CSLBl
}
- (void) didReceiveTagAccessData:(CSLBleReader *)sender tagReceived:(CSLBleTag *)tag {
if ([CSLRfidAppEngine sharedAppEngine].reader.readerModelNumber == CS710 && tag.AccessCommand == KILL) {
if (tag.AccessError == 0x10 && tag.BackScatterError == 0x00) {
//a killed tag would have 0x00 (No error) or 0x04 (no access reply) as the tag has already been killed
if (tag.AccessError == 0x10 && (tag.BackScatterError == 0x00 ||tag.BackScatterError == 0x04)) {
killCommandAccepted=true;
}
killCommandCompleted=true;
Expand Down
7 changes: 7 additions & 0 deletions CS710iOSClient/ViewControllers/CSLTagSearchVC.m
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,17 @@ - (void)viewWillAppear:(BOOL)animated {

rollingAvgRssi = [[CSLCircularQueue alloc] initWithCapacity:ROLLING_AVG_COUNT];

[self.actSearchSpinner startAnimating];
self.view.userInteractionEnabled=false;
}

- (void)viewDidAppear:(BOOL)animated {
// Do any additional setup after loading the view.
[CSLReaderConfigurations setAntennaPortsAndPowerForTagSearch:false];
[CSLReaderConfigurations setConfigurationsForClearAllSelectionsAndMultibanks];
[CSLReaderConfigurations setConfigurationsForTags];
self.view.userInteractionEnabled=true;
[self.actSearchSpinner stopAnimating];
}

- (void)viewWillDisappear:(BOOL)animated {
Expand Down
1 change: 1 addition & 0 deletions CS710iOSClient/ViewControllers/CSLTemperatureReadVC.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ NS_ASSUME_NONNULL_BEGIN
@property (weak, nonatomic) IBOutlet UITableView *tblTagList;
@property (weak, nonatomic) IBOutlet UILabel *lbTagCount;
@property (weak, nonatomic) IBOutlet UILabel *lbInventory;
@property (weak, nonatomic) IBOutlet UIActivityIndicatorView *actLoading;

- (IBAction)btnInventoryPressed:(id)sender;
- (IBAction)btnSelectAllTagPressed:(id)sender;
Expand Down
18 changes: 9 additions & 9 deletions CS710iOSClient/ViewControllers/CSLTemperatureReadVC.m
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,6 @@ @implementation CSLTemperatureReadVC
- (void)viewDidLoad {
[super viewDidLoad];

// Do any additional setup after loading the view.
[CSLReaderConfigurations setAntennaPortsAndPowerForTemperatureTags:false];
[CSLReaderConfigurations setConfigurationsForClearAllSelectionsAndMultibanks];
[CSLReaderConfigurations setConfigurationsForTemperatureTags];

//initialize averaging buffer
[CSLRfidAppEngine sharedAppEngine].temperatureSettings.temperatureAveragingBuffer = [[NSMutableDictionary alloc] init];
[CSLRfidAppEngine sharedAppEngine].temperatureSettings.lastGoodReadBuffer = [[NSMutableDictionary alloc] init];
Expand Down Expand Up @@ -74,13 +69,18 @@ - (void)viewWillAppear:(BOOL)animated {
[self.tblTagList setEditing:true animated:true];
self.tblTagList.backgroundView = nil;
self.tblTagList.backgroundColor = [UIColor whiteColor];


[self.actLoading startAnimating];
self.view.userInteractionEnabled=false;

}
- (void)viewDidAppear:(BOOL)animated {



// Do any additional setup after loading the view.
[CSLReaderConfigurations setAntennaPortsAndPowerForTemperatureTags:false];
[CSLReaderConfigurations setConfigurationsForClearAllSelectionsAndMultibanks];
[CSLReaderConfigurations setConfigurationsForTemperatureTags];
self.view.userInteractionEnabled=true;
[self.actLoading stopAnimating];
}
/*
#pragma mark - Navigation
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 620c202

Please sign in to comment.