Not able to scan datetime format barcode using zxing barcode scanner - zxing

I integrated ZXING barcode scanner into my project but its not working for datetime format 2021-05-19 12:25:09
I tried to scan using https://zxing-js.github.io/ngx-scanner and enable all the format but no luck.
In my codebase after scanning I am getting random numeric value as result.
I used the following barcode format in my code
BarcodeFormat.CODE_128, BarcodeFormat.DATA_MATRIX, BarcodeFormat.EAN_8, BarcodeFormat.EAN_13,
BarcodeFormat.ITF, BarcodeFormat.MAXICODE, BarcodeFormat.PDF_417, BarcodeFormat.QR_CODE, BarcodeFormat.RSS_14,
BarcodeFormat.RSS_EXPANDED, BarcodeFormat.UPC_A, BarcodeFormat.UPC_E, BarcodeFormat.UPC_EAN_EXTENSION]```

Related

How can I calculate the difference between two timestamps using micropython?

I have a raspberry pi pico and a DS3231 real time clock hooked up to it. I'm able to receive the current time in BCD and format it in a string by Hours:Minutes:seconds "00:00:00" using the DS3231 sample code that has been provided from the waveshare wiki waveshare wiki
I've tried using a datetime module but I get the error "no module named datetime" so I'm unsure if it's included within micropython.
this was my attempt
def elapsed_time(self, start, end):
start_time = datetime.strptime(start,"%H:%M:%S")
end_time = datetime.strptime(end,"%H:%M:%S")
return end_time - start_time
You can find datetime in the micropython-lib repository, a collection of curated (by the MicroPython core team) libraries useful when developing MicroPython applications.
For now, the easiest way to use datetime is to copy datetime.py to your device and ensure it can be found in your sys.path.

How to generate QR code for every prediction?

I've created a mobile app with Flutter framework that can predict laptop prices. Now, I want to add a special functionality: for every prediction the user does, I want the app to generate a QR Code with the price, so that another user scan it, and it will automatically fill his characteristics like the other user.
Your QR code generator string must contain all characteristics that the creator entered
Ex.:
User x created a computer with 16GB ram & Core i7 7700HQ etc..
the generator string should be
{"ram":"16gb","cpu":"i7 7700hq",...}
you can use a Map<String, String> for the entered characteristics and use jsonEncode(yourMap) to convert it to string and pass it the the QR Code generator
when the receiver scan the QR Code, he will get {"ram":"16gb","cpu":"i7 7700hq",...}, use jsonDecode(yourMap) to reconvert the string to Map<String, String> characteristics in your receiver's device, predict the price according to what you got in the map
there is a package called qr_flutter you can throw data to it and it will generate a QR code for the user
package : https://pub.dev/packages/qr_flutter

[ Flutter QRcode successive scans ]

I'm developing a Flutter application based on QRcode scan.
I'd want the user to be able to scan multiple QRCODES without exiting the scan screen so we can scan like ten of them in a row that would update a results list and when the user manually exit the screen and is back on previous screen would display this results list.
How can i achieve this please ?
Is there a Qr code reader package from pub.dev allowing this ?
Thanks for any help !
PS : I'm actually using "qr_flutter" lib here : https://pub.dev/packages/qr_flutter
because it seems to be the most popular but can change if needed.
EDIT :: Also checking this one :: qr_code_scanner 0.5.2 https://pub.dev/packages/qr_code_scanner
as popular as the first one and seems to allow continuous scan for QRcodes...
if you want to try continiusly scan for the screen check this package https://pub.dev/packages/flutter_barcode_scanner
Well i finally used qr_code_scanner 0.5.2
https://pub.dev/packages/qr_code_scanner
That works very well and allows to scan several QRcodes in a row and personnalize your "QRView" as you want.
That's, of course, more code than using the 1st lib which gives you it's own "QRview" and just return a single scan result per time.
So
1st lib > 1 result per time / easiest to use
2nd lib > customize as you want ^^

Reading Dogbone (Magnus 3) sensor tags with Zebra RFD8500

I'am trying to read the new sensor tags Dogbone, (with Magnus S3 IC) but I don't have luck.
I'am using Zebra RFD8500 and programming with the Zebra SDK for Android.
I want to read the RSSI or the temperature values, but it seems the problem is with the Select command.
In either case, it is a two step procedure : 1) select command to match a specific tag pattern in a specific pointer address at the MEMORY_USER_BANK. Then the IC detect that have to store
the solicited value in a specific address at the MEMORY_RESERVED_BANK and 2) read the value, from the specific address at the MEMORY_RESERVED_BANK.
For the Select command (C1G2) I tried with Access-filters and Pre-Filters, but although the tag is matched, the IC doesn't store a value in the RESERVED Bank.
Somebody knows if Zebra APIs support the reading of this newers tags ? Or suggest me any other test?
Thanks a lot for your help
Regards.
It's possible to read the RSSI value with EPC Gen2 tags, so if the tag you're referring to supports this standard it should work.
Try downloading the Zebra RFID sample app > Perform inventory > If the tag is found it should display the RSSI. The sample app code can be found here
As for the temperature values try reading the USER memory in the sample app as well to see if you can get it.
I suggest using the SLS smartSLED; it has built-in functionality for the Magnus (Axzon) chip family (both S2 and S3).

Jasper Reports - Generating PDF 417 barcodes using Barcode4j

We are currently using Jasper Reports to generate PDF 417 barcodes using Barcode4j.
We are using Barcode component for the same. If we set CodeExpression property to "CASE-SEPARATOR%$DEFKCNBSMEDPB%$CASEGPE0000115%$LOBDBAN%$CUSTG00012345" it throws following runtime exception.
Error filling print... net.sf.jasperreports.engine.fill.JRExpressionEvalException: Error evaluating expression : Source text : "CASE-SEPARATOR%$DEFKCNBSMEDPB%$CASEGPE0000115%$LOBDBAN%$CUSTG00012345"
net.sf.jasperreports.engine.JRRuntimeException: net.sf.jasperreports.engine.fill.JRExpressionEvalException: Error evaluating expression : Source text : "CASE-SEPARATOR%$DEFKCNBSMEDPB%$CASEGPE0000115%$LOBDBAN%$CUSTG00012345"
at net.sf.jasperreports.components.barcode4j.BarcodeEvaluator.evaluateExpression(BarcodeEvaluator.java:72) at net.sf.jasperreports.components.barcode4j.BarcodeEvaluator.evaluateBaseBarcode(BarcodeEvaluator.java:53) at net.sf.jasperreports.components.barcode4j.BarcodeEvaluator.evaluatePDF417(BarcodeEvaluator.java:145) at net.sf.jasperreports.components.barcode4j.AbstractBarcodeEvaluator.visitPDF417(AbstractBarcodeEvaluator.java:424)
If we remove $ character from above code expression value it works fine.
Has anyone got idea how to generate PDF417 barcodes having $ characted in Message using Jasper reports/Barcode 4J. Thanks
We are able to generate barcode in png format by directly using Barcode4J API. It seems that there is a bug in jasper reports which does not allow $ character in barcode messgae while generating PDF 417 barcode.