Skip to content

Commit

Permalink
Merge pull request #13 from cslrfid/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
ksclam authored Oct 3, 2023
2 parents d3abaf5 + 4a6cd36 commit c7f0d4e
Show file tree
Hide file tree
Showing 8 changed files with 46 additions and 14 deletions.
9 changes: 5 additions & 4 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 = 51;
objectVersion = 53;
objects = {

/* Begin PBXBuildFile section */
Expand Down Expand Up @@ -315,7 +315,8 @@
CABA713D21325BF500D15BB1 /* Project object */ = {
isa = PBXProject;
attributes = {
LastUpgradeCheck = 1310;
BuildIndependentTargetsInParallel = YES;
LastUpgradeCheck = 1430;
ORGANIZATIONNAME = "Convergence Systems Limited";
TargetAttributes = {
CABA714421325BF500D15BB1 = {
Expand Down Expand Up @@ -589,7 +590,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 0.7;
MARKETING_VERSION = 0.8;
PRODUCT_BUNDLE_IDENTIFIER = com.csl.CS710SiOSClient;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
Expand All @@ -616,7 +617,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 0.7;
MARKETING_VERSION = 0.8;
PRODUCT_BUNDLE_IDENTIFIER = com.csl.CS710SiOSClient;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
Expand Down
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>114</string>
<string>170</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>NSBluetoothAlwaysUsageDescription</key>
Expand Down
1 change: 1 addition & 0 deletions CS710iOSClient/ViewControllers/CSLDeviceTV.m
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,7 @@ - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath
}
}
}
[[CSLRfidAppEngine sharedAppEngine].reader stopTriggerKeyAutoReporting];
[CSLReaderConfigurations setReaderRegionAndFrequencies];
[CSLReaderConfigurations setAntennaPortsAndPowerForTags:true];
[CSLReaderConfigurations setConfigurationsForTags];
Expand Down
2 changes: 1 addition & 1 deletion CS710iOSClient/ViewControllers/CSLHomeVC.m
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ - (IBAction)btnFunctionsPressed:(id)sender {

CSLMoreFunctionsVC * funcVC;
//if no device is connected, the settings page will not be loaded
if ([CSLRfidAppEngine sharedAppEngine].reader.connectStatus==NOT_CONNECTED || [CSLRfidAppEngine sharedAppEngine].reader.connectStatus==SCANNING || [CSLRfidAppEngine sharedAppEngine].reader.readerModelNumber == CS710) {
if ([CSLRfidAppEngine sharedAppEngine].reader.connectStatus==NOT_CONNECTED || [CSLRfidAppEngine sharedAppEngine].reader.connectStatus==SCANNING) {

UIAlertController *alert = [UIAlertController alertControllerWithTitle:@"Reader NOT connected" message:@"Please connect to reader first." preferredStyle:UIAlertControllerStyleAlert];

Expand Down
32 changes: 30 additions & 2 deletions CS710iOSClient/ViewControllers/CSLInventoryVC.m
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
@interface CSLInventoryVC ()
{
NSTimer * scrRefreshTimer;
NSTimer * scrBeepTimer;
UISwipeGestureRecognizer* swipeGestureRecognizer;
UIImageView *tempImageView;
MQTTCFSocketTransport *transport;
Expand Down Expand Up @@ -99,7 +100,7 @@ - (void)refreshTagListing {
@autoreleasepool {
if ([CSLRfidAppEngine sharedAppEngine].reader.connectStatus==TAG_OPERATIONS)
{
[[CSLRfidAppEngine sharedAppEngine] soundAlert:1005];
//[[CSLRfidAppEngine sharedAppEngine] soundAlert:1005];
//update table
[tblTagList reloadData];

Expand Down Expand Up @@ -144,6 +145,16 @@ - (void)refreshTagListing {
}
}

- (void)playBeepSound {
@autoreleasepool {
if ([CSLRfidAppEngine sharedAppEngine].reader.connectStatus==TAG_OPERATIONS)
{
[[CSLRfidAppEngine sharedAppEngine] soundAlert:1005];
}
}
}



- (void)viewWillAppear:(BOOL)animated {
[super viewWillAppear:animated];
Expand Down Expand Up @@ -176,6 +187,16 @@ - (void)viewWillAppear:(BOOL)animated {
repeats:YES];
[[NSRunLoop mainRunLoop] addTimer:scrRefreshTimer forMode:NSRunLoopCommonModes];

//timer event on beeping during tag read

scrBeepTimer = [NSTimer scheduledTimerWithTimeInterval:1.0
target:self
selector:@selector(playBeepSound)
userInfo:nil
repeats:YES];
[[NSRunLoop mainRunLoop] addTimer:scrBeepTimer forMode:NSRunLoopCommonModes];


if ([CSLRfidAppEngine sharedAppEngine].MQTTSettings.isMQTTEnabled) {
transport = [[MQTTCFSocketTransport alloc] init];
transport.host = [CSLRfidAppEngine sharedAppEngine].MQTTSettings.brokerAddress;
Expand Down Expand Up @@ -247,6 +268,9 @@ - (void)viewWillDisappear:(BOOL)animated {
[scrRefreshTimer invalidate];
scrRefreshTimer=nil;

[scrBeepTimer invalidate];
scrBeepTimer=nil;

[CSLRfidAppEngine sharedAppEngine].isBarcodeMode=false;
[self.view removeGestureRecognizer:swipeGestureRecognizer];

Expand Down Expand Up @@ -302,7 +326,11 @@ - (IBAction)btnInventoryPressed:(id)sender {
[CSLRfidAppEngine sharedAppEngine].reader.readerTagRate = 0;
tagRangingStartTime=[NSDate date];
[[CSLRfidAppEngine sharedAppEngine].reader setPowerMode:false];
[[CSLRfidAppEngine sharedAppEngine].reader startInventory];
if ([CSLRfidAppEngine sharedAppEngine].settings.isMultibank1Enabled &&
[CSLRfidAppEngine sharedAppEngine].reader.readerModelNumber == CS710)
[[CSLRfidAppEngine sharedAppEngine].reader E710StartMBInventory];
else
[[CSLRfidAppEngine sharedAppEngine].reader startInventory];
[btnInventory setTitle:@"Stop" forState:UIControlStateNormal];
btnInventory.enabled=true;
}
Expand Down
7 changes: 5 additions & 2 deletions CS710iOSClient/ViewControllers/CSLMoreFunctionsVC.m
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,10 @@ - (IBAction)btnMultibankPressed:(id)sender {
- (IBAction)btnFiltersPressed:(id)sender {

CSLFilterTabVC * tabVC = (CSLFilterTabVC*)[[UIStoryboard storyboardWithName:@"CSLRfidDemoApp" bundle:[NSBundle mainBundle]] instantiateViewControllerWithIdentifier:@"ID_FilterTabVC"];


if ([CSLRfidAppEngine sharedAppEngine].reader.readerModelNumber == CS710)
return;

[tabVC setActiveView:CSL_VC_RFIDTAB_PREFILTER_VC_IDX];
self.view.userInteractionEnabled=false;
if (tabVC != nil)
Expand All @@ -66,7 +69,7 @@ - (IBAction)btnFiltersPressed:(id)sender {
- (IBAction)btnMQTTPressed:(id)sender {
CSLMQTTClientSettings* mqttSettings;
mqttSettings = (CSLMQTTClientSettings*)[[UIStoryboard storyboardWithName:@"CSLRfidDemoApp" bundle:[NSBundle mainBundle]] instantiateViewControllerWithIdentifier:@"ID_MQTTSettingsVC"];

if (mqttSettings != nil)
{
[[self navigationController] pushViewController:mqttSettings animated:YES];
Expand Down
3 changes: 1 addition & 2 deletions CS710iOSClient/ViewControllers/CSLTagAccessVC.m
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,9 @@ - (void)viewWillAppear:(BOOL)animated {
self.txtPower.text=[NSString stringWithFormat:@"%d", [CSLRfidAppEngine sharedAppEngine].settings.power];

// Do any additional setup after loading the view.
//[((CSLTabVC*)self.tabBarController) setAntennaPortsAndPowerForTagAccess];
//[((CSLTabVC*)self.tabBarController) setConfigurationsForTags];
[CSLReaderConfigurations setAntennaPortsAndPowerForTagAccess:false];
[CSLReaderConfigurations setConfigurationsForTags];
[CSLReaderConfigurations setConfigurationsForClearAllSelectionsAndMultibanks];
}

- (void)viewWillDisappear:(BOOL)animated {
Expand Down
4 changes: 2 additions & 2 deletions Pods/Pods.xcodeproj/project.pbxproj

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

0 comments on commit c7f0d4e

Please sign in to comment.