Giter Club home page Giter Club logo

cs108-ios-swift-app's Introduction

CS108-iOS-Swift-App

Library and demo app for Convergence Systems Limited CS108 UHF RFID handheld reader written in Swift. All features are exactly the same as Objective-C version except the View Controllers are rewritten in Swift. The data model and reader connector (CSLReader classes) remains the same with Swift and in common with the Objective-C project.

Product Information

 
 

Development Environment

  • XCode 9
  • iOS 11
  • Tested on iPhone 8 (optimized for 4.7" but functional on all screen sizes)

cs108-ios-swift-app's People

Contributors

ksclam avatar

Watchers

 avatar  avatar

Forkers

opsumo

cs108-ios-swift-app's Issues

Antenna Power issue

setings

As you can see I set the power as 0.
But I can still detect tags on the Inventory page.
It looks like it doesn't work setting the power.

Function: - (void)decodePacketsInBufferAsync;

Hi,

Today we use Firebase Crashlytics to track crashes.
It reported several crashes related to - (void)decodePacketsInBufferAsync; in CSLBleReader.m.
But the function has about 700 lines of code so it's very difficult to investigate crashes.
Could you divide the function into small functions? (i.e: that includes less than 30 lines of codes)
It will be very helpful for us to investigate crashes.

Thanks

Crash when decode packets in Buffer

Could you check - (void)decodePacketsInBufferAsync; in the CSLBleReader.m

NSUInteger findIndex = [filteredBuffer indexOfObject:barcode inSortedRange:searchRange options:NSBinarySearchingInsertionIndex | NSBinarySearchingFirstEqual usingComparator:^(id obj1, id obj2) { NSString* str1=((CSLReaderBarcode*)obj1).barcodeValue; NSString* str2=((CSLReaderBarcode*)obj2).barcodeValue; return [str1 compare:str2 options:NSCaseInsensitiveSearch]; }];
Here sometimes obj1 is CSLBleTag object and obj2 is CSLReaderBarcode.
So NSString* str1=((CSLReaderBarcode*)obj1).barcodeValue; crashes.

Suggetion:
You can add some filter functions above the codes so that we can handle only CSLReaderBarcode objects, what do you think?

Ditto

NSUInteger findIndex = [filteredBuffer indexOfObject:tag inSortedRange:searchRange options:NSBinarySearchingInsertionIndex | NSBinarySearchingFirstEqual usingComparator:^(id obj1, id obj2) { NSString* str1=((CSLBleTag*)obj1).EPC; NSString* str2=((CSLBleTag*)obj2).EPC; return [str1 compare:str2 options:NSCaseInsensitiveSearch]; }];
Here sometimes obj1 is CSLReaderBarcode and obj2 is CSLBleTag.
So NSString* str1=((CSLBleTag*)obj1).EPC; crashes.

CPU usage is always 100%

Screen Shot 2022-04-07 at 8 45 03 AM

While I run this project, CPU usage is about 100% once I connect to a handheld.
Could you investigate and fix it?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.