Comment by arminb on LoRa point-to-point limitations
@clfmaris Yes, especially then you are obligated to respect duty-cycles. Annoying, but that's how it works. Otherwise there would be anarchism in frequency distribution. Those guidelines are completely...
View ArticleComment by arminb on Multiple self referencing in Entity Framework fails with...
Can we achieve this behaviour with data annotations only?
View ArticleComment by arminb on Simple select statement of SQLite takes more than 2 seconds
Show an example of a full query (BARCODE).
View ArticleComment by arminb on Using the C++ standard library in a Windows User Mode...
You are practically writing a user mode application. The name says it all, no reason to overthink. Just do what you would do in a "normal" application.
View ArticleComment by arminb on How to communicate with the reader using PC/SC
There is this question stackoverflow.com/q/35389657/1110642 With an alternate solution as well.
View ArticleComment by arminb on getopt does not order arguments in Windows
Thank you for the clarification that the sorting is not POSIX standard.
View ArticleComment by arminb on Is there any way to get 64-bit time_t in 32-bit programs...
On my 32 bit Linux 5.4 i can't call clock_gettime64 etc. It tells me undefined reference. What do I need to include/define/install in order for it to work?
View ArticleComment by arminb on Hey, I've recently learned recurrsion and i want to know...
You maybe need a \n in your printf statements to write the output.
View ArticleComment by arminb on Do I have to re-compile glibc 2.34 itself for full...
@KamilCuk no it's not. BTW if I change lchmod(...) to chmod(...) it works. I tend to believe this is a glibc 2.34 bug.
View ArticleAnswer by arminb for GET RESPONSE APDU Command
I don't know the framework you are using. I assume you use native WinSCard or PCSC Lite. When using SCardTransmit you have to make sure parameter pcbRecvLength is big enough for your response to fit in.
View ArticleAnswer by arminb for Android smart-card interface over USB
Sadly there is no abstraction layer like PC/SC in the native Android system. But you can utilize Android USB library to talk directly to the USB smart card reader.
View ArticleAnswer by arminb for Simple c code with sleep gives no output after execution
Add \n when printing to stdout.printf("inside main\n");The reason a \n is needed is because printf flushes data to stdout after \n was reached.You can print to stderr to see your data immediately,...
View ArticleRetrieve interface number in Windows driver
In my INF file I write following line to load interface number 01 from my composite USB device:%DeviceName%=Device_Install, USB\VID_XXXX&PID_XXXX&MI_01Now how do I retrieve this interface...
View ArticleAnswer by arminb for PCSC detect multiple smartcards
ACR-1252 reader has only one contact-less interface. When you try to connect (lay on) two contact-less smartcards at the same time, it becomes the responsibility of the reader firmware to choose which...
View ArticleAnswer by arminb for How to store the random seed generated from time(NULL)...
The function time() returns time_t type which can be any integer or real-floating type.But you can cast it to a known type:printf("%lld\n", (long long) time(NULL));If you just want to store the...
View ArticleAnswer by arminb for What does APDU response 910B mean for a DESFire EV2 card?
I saw HID's firmware source code for OMNIKEY readers and I can tell you it's a catastrophic mess. The OK5x21 reader is quite old, so I would suggest you to contact HID directly and request a firmware...
View ArticleAnswer by arminb for The same barcode is unexpectedly inserting into my database
Not entirely sure, but you should check you array like this for entries:if (count($data) > 0)
View ArticleAnswer by arminb for Does the Single Responsibility Principle work in OOP?
A class shall handle one topic, that's its single responsibility. A class Car could contain methods like startEngine() or attributes like weight:class Car{ int weight; void startEngine(); void...
View ArticleAnswer by arminb for Can i use different timer channels when other channels...
The PWM and the I2C module are connected to the GPIO output via an multiplexer. By configuring related registers in your microcontroller you can decide which output will be passed through to the GPIO....
View Article