Add support of Wiegand card reader
Hello,
I would like to add support of Wiegand card reader [1]. Where can I place it : drivers/iio/access/wiegand.c or drivers/iio/security/wiegand.c?
Thank you for your help?
Best regards,
Gaëtan.
On Mon, Apr 9, 2018 at 7:05 AM, Ga=C3=ABtan Carlier <[email protected]> wro= te:
Quoted 2 lines
Hello,
I would like to add support of Wiegand card reader [1]. Where can I place=
it : drivers/iio/access/wiegand.c or drivers/iio/security/wiegand.c?
Question here is why is this ideal for iio versus using the input subsystem= ?
Also a few issues/points:
* What is the interface to the Wiegand data? If it is inputting on a GPIO that is for sure not going to be real time enough to get valid data
* Aren't there multiple Wiegand transport standards?
* Most keyreaders I've seen are emulated as keyboard devices so they use the input subsystem.
* Also if the data being output is ASCII data, then I'm not sure that fits anywhere in iio
- Matt
Quoted 10 lines
Thank you for your help?
Best regards,
Ga=C3=ABtan.[1] https://en.wikipedia.org/wiki/Wiegand_interface
--
To unsubscribe from this list: send the line "unsubscribe linux-iio" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Hello,
Thank you for your reply.
Quoted 5 lines · Matt Ranostay
Quoted 2 lines · Gaëtan Carlier
Hello,
I would like to add support of Wiegand card reader [1]. Where can I place it :drivers/iio/access/wiegand.cordrivers/iio/security/wiegand.c?Question here is why is this ideal for iio versus using the input subsystem?
What can I send to userspace from a bitstream using Input subsystem ?
Datas on Wiegand depend on readers used/setup. The best is to send bitstream directly to userspace and let user split bitstream into facilty/area code, card ID, ... My idea is to send a structure with
* number of bits read
* if two parity bits are valid
* the bitstream itself saved in a 64 bit unsigned integer (or a buffer of chars) including or not the parity bits (I still have to decide). I don't see readers with more than 60 bits.
I already start writting driver based on humidity/dht11.c that uses similar timings.
Quoted 6 lines
Also a few issues/points:
* What is the interface to the Wiegand data? If it is inputting on a GPIO that is for sure not going to be real time enough to get valid data
Wiegand protocol uses two data lines. Both data lines are pulled-up. When a 0 must be send, D0 line is set low, when a 1 must be sent, D1 line is set low. D0 and D1 line can never be set low at the same time. Reader will convert ID of the card into binary data flow of 26, 34, .... 60 bits. The length of a data flow is configured in the reader and all readers connected on the same Wiegand bus have generally the same length.
Quoted 1 line
* Aren't there multiple Wiegand transport standards?
Yes they are several data length.
Quoted 2 lines
* Most keyreaders I've seen are emulated as keyboard devices so they use the input subsystem.
If they are emulated as keyboard, they don't use Wiegand anymore ! Wiegand is still often used for hotels, ...
Quoted 4 lines
* Also if the data being output is ASCII data, then I'm not sure that
fits anywhere in iioData received from Wiegand bus are bits. They are not packed in 8 bits or any other size.
Quoted 13 lines
- Matt
Quoted 10 lines
Thank you for your help?
Best regards,
Gaëtan.[1] https://en.wikipedia.org/wiki/Wiegand_interface
--
To unsubscribe from this list: send the line "unsubscribe linux-iio" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Regards,
Gaëtan.
On Tue, Apr 10, 2018 at 1:57 AM, Ga=C3=ABtan Carlier <[email protected]> wr= ote:
Quoted 5 lines
Hello,
Thank you for your reply.Quoted 1 line · Matt Ranostay
On Mon, Apr 9, 2018 at 7:05 AM, Ga=C3=ABtan Carlier <[email protected]> =
Quoted 2 lines · wrote:
Quoted 2 lines
Quoted 2 lines
Hello,
I would like to add support of Wiegand card reader [1]. Where can I pla=
ce it : drivers/iio/access/wiegand.c or drivers/iio/security/wiegand.c?
Quoted 2 lines
Quoted 2 lines
Question here is why is this ideal for iio versus using the input subsys=
tem?
Quoted 2 lines
What can I send to userspace from a bitstream using Input subsystem ? Datas on Wiegand depend on readers used/setup. The best is to send bitstr=
eam directly to userspace and let user split bitstream into facilty/area co= de, card ID, ...
Quoted 4 lines
My idea is to send a structure with
* number of bits read
* if two parity bits are valid
* the bitstream itself saved in a 64 bit unsigned integer (or a buffe=
r of chars) including or not the parity bits (I still have to decide). I do= n't see readers with more than 60 bits.
Quoted 2 lines
I already start writting driver based on
humidity/dht11.cthat uses simil=
ar timings.
Another question is what would your struct iio_chan_spec definition look like? Namely the .type assignments
Quoted 8 lines
Quoted 7 lines
Also a few issues/points:
* What is the interface to the Wiegand data? If it is inputting on a GPIO that is for sure not going to be real time enough to get valid data
Wiegand protocol uses two data lines. Both data lines are pulled-up. When=
a 0 must be send, D0 line is set low, when a 1 must be sent, D1 line is se=
t low. D0 and D1 line can never be set low at the same time. Reader will co= nvert ID of the card into binary data flow of 26, 34, .... 60 bits.
Quoted 1 line
The length of a data flow is configured in the reader and all readers con=
nected on the same Wiegand bus have generally the same length.
Quoted 7 lines
Quoted 2 lines
* Aren't there multiple Wiegand transport standards?
Yes they are several data length.
Quoted 2 lines
* Most keyreaders I've seen are emulated as keyboard devices so they use the input subsystem.
If they are emulated as keyboard, they don't use Wiegand anymore ! Wiegan=
d is still often used for hotels, ...
Quoted 3 lines
Quoted 3 lines
* Also if the data being output is ASCII data, then I'm not sure that fits anywhere in iioData received from Wiegand bus are bits. They are no=
t packed in 8 bits or any other size.
Quoted 18 lines
Quoted 15 lines
- Matt
Quoted 10 lines
Thank you for your help?
Best regards,
Ga=C3=ABtan.[1] https://en.wikipedia.org/wiki/Wiegand_interface
--
To unsubscribe from this list: send the line "unsubscribe linux-iio" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.htmlRegards,
Ga=C3=ABtan.
Quoted 17 lines · Matt Ranostay
Quoted 16 lines · Gaëtan Carlier
Hello,
Thank you for your reply.Quoted 5 lines · Matt Ranostay
Quoted 2 lines · Gaëtan Carlier
Hello,
I would like to add support of Wiegand card reader [1]. Where can I place it :drivers/iio/access/wiegand.cordrivers/iio/security/wiegand.c?Question here is why is this ideal for iio versus using the input subsystem?
What can I send to userspace from a bitstream using Input subsystem ?
Datas on Wiegand depend on readers used/setup. The best is to send bitstream directly to userspace and let user split bitstream into facilty/area code, card ID, ... My idea is to send a structure with
* number of bits read
* if two parity bits are valid
* the bitstream itself saved in a 64 bit unsigned integer (or a buffer of chars) including or not the parity bits (I still have to decide). I don't see readers with more than 60 bits.
Quoted 5 lines
Quoted 1 line
I already start writting driver based on
humidity/dht11.cthat uses similar timings.Another question is what would your struct
iio_chan_specdefinition look like? Namely the .type assignments
For now, I did not have define any channels and num_channels in struct iio_dev in probe function.
That is what I have to investigate today : study how buffers work for IIO subsystem.
The idea is to have a blocking call from the userspace and every time a card is read, the buffer is filled and pushed to userspace. Userspace application will be unblocked and the buffer will be read.
Couldn't I create a new iio_chan_type IIO_ID (or even IIO_BIOMETRIC) ?
Quoted 29 lines
Quoted 29 lines
Quoted 7 lines
Also a few issues/points:
* What is the interface to the Wiegand data? If it is inputting on a GPIO that is for sure not going to be real time enough to get valid data
Wiegand protocol uses two data lines. Both data lines are pulled-up. When a 0 must be send, D0 line is set low, when a 1 must be sent, D1 line is set low. D0 and D1 line can never be set low at the same time. Reader will convert ID of the card into binary data flow of 26, 34, .... 60 bits. The length of a data flow is configured in the reader and all readers connected on the same Wiegand bus have generally the same length.
Quoted 1 line
* Aren't there multiple Wiegand transport standards?
Yes they are several data length.
Quoted 2 lines
* Most keyreaders I've seen are emulated as keyboard devices so they use the input subsystem.
If they are emulated as keyboard, they don't use Wiegand anymore ! Wiegand is still often used for hotels, ...
Quoted 12 lines
* Also if the data being output is ASCII data, then I'm not sure that
fits anywhere in iioData received from Wiegand bus are bits. They are not packed in 8 bits or any other size.- Matt
Quoted 5 lines
Thank you for your help?
Best regards,
Gaëtan.
Quoted 8 lines
Quoted 8 lines
Quoted 5 lines
Quoted 5 lines
[1] https://en.wikipedia.org/wiki/Wiegand_interface
--
To unsubscribe from this list: send the line "unsubscribe linux-iio" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.htmlRegards,
Gaëtan.
Thank you,
Regards,
Gaëtan.
On Wed, Apr 11, 2018 at 1:36 AM, Ga=C3=ABtan Carlier <[email protected]> wr= ote:
Quoted 2 lines · Matt Ranostay
Quoted 1 line
On Tue, Apr 10, 2018 at 1:57 AM, Ga=C3=ABtan Carlier <[email protected]>=
Quoted 8 lines · wrote:
Quoted 5 lines
Quoted 5 lines
Hello,
Thank you for your reply.Quoted 1 line · Matt Ranostay
On Mon, Apr 9, 2018 at 7:05 AM, Ga=C3=ABtan Carlier <[email protected]=
Quoted 2 lines · wrote:
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Hello,
I would like to add support of Wiegand card reader [1]. Where can I p=
lace it : drivers/iio/access/wiegand.c or drivers/iio/security/wiegand.c?
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Question here is why is this ideal for iio versus using the input subs=
ystem?
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
What can I send to userspace from a bitstream using Input subsystem ? Datas on Wiegand depend on readers used/setup. The best is to send bits=
tream directly to userspace and let user split bitstream into facilty/area = code, card ID, ...
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
My idea is to send a structure with
* number of bits read
* if two parity bits are valid
* the bitstream itself saved in a 64 bit unsigned integer (or a buf=
fer of chars) including or not the parity bits (I still have to decide). I = don't see readers with more than 60 bits.
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
I already start writting driver based on
humidity/dht11.cthat uses sim=
ilar timings.
Quoted 5 lines
Quoted 4 lines
Another question is what would your struct
iio_chan_specdefinition look like? Namely the .type assignmentsFor now, I did not have define any channels and
num_channelsin struct ii=
o_dev in probe function.
Quoted 1 line
That is what I have to investigate today : study how buffers work for IIO=
subsystem.
Quoted 1 line
The idea is to have a blocking call from the userspace and every time a c=
ard is read, the buffer is filled and pushed to userspace. Userspace applic= ation will be unblocked and the buffer will be read.
Quoted 1 line
Yeah buffers need to work independent of userspace and can't be blocking at=
all.
Quoted 2 lines
Couldn't I create a new
iio_chan_typeIIO_ID(or evenIIO_BIOMETRIC) ?
Yeah IIO_BIOMETRIC or even IIO_ID is a bit odd since it isn't an SI unit or similar. Maybe Jonathan has some thoughts on this
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 7 lines
Also a few issues/points:
* What is the interface to the Wiegand data? If it is inputting on a GPIO that is for sure not going to be real time enough to get valid data
Wiegand protocol uses two data lines. Both data lines are pulled-up. Wh=
en a 0 must be send, D0 line is set low, when a 1 must be sent, D1 line is = set low. D0 and D1 line can never be set low at the same time. Reader will = convert ID of the card into binary data flow of 26, 34, .... 60 bits.
Quoted 1 line
Quoted 1 line
Quoted 1 line
The length of a data flow is configured in the reader and all readers c=
onnected on the same Wiegand bus have generally the same length.
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 2 lines
* Aren't there multiple Wiegand transport standards?
Yes they are several data length.
Quoted 2 lines
* Most keyreaders I've seen are emulated as keyboard devices so they use the input subsystem.
If they are emulated as keyboard, they don't use Wiegand anymore ! Wieg=
and is still often used for hotels, ...
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
* Also if the data being output is ASCII data, then I'm not sure that fits anywhere in iioData received from Wiegand bus are bits. They are =
not packed in 8 bits or any other size.
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
- Matt
Quoted 1 line
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Thank you for your help?
Best regards,
Ga=C3=ABtan.[1] https://en.wikipedia.org/wiki/Wiegand_interface
--
To unsubscribe from this list: send the line "unsubscribe linux-iio" =
in
Quoted 9 lines
Quoted 5 lines
Quoted 5 lines
Quoted 2 lines
Quoted 2 lines
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.htmlRegards,
Ga=C3=ABtan.Thank you,
Regards,
Ga=C3=ABtan.
Quoted 29 lines · On Wed, 11 Apr 2018 20:41:30 -0700 Matt Ranostay <[email protected]>…
Quoted 18 lines · Gaëtan Carlier
Quoted 17 lines · Matt Ranostay
Quoted 16 lines · Gaëtan Carlier
Hello,
Thank you for your reply.Quoted 5 lines · Matt Ranostay
Quoted 2 lines · Gaëtan Carlier
Hello,
I would like to add support of Wiegand card reader [1]. Where can I place it :drivers/iio/access/wiegand.cordrivers/iio/security/wiegand.c?Question here is why is this ideal for iio versus using the input subsystem?
What can I send to userspace from a bitstream using Input subsystem ?
Datas on Wiegand depend on readers used/setup. The best is to send bitstream directly to userspace and let user split bitstream into facilty/area code, card ID, ... My idea is to send a structure with
* number of bits read
* if two parity bits are valid
* the bitstream itself saved in a 64 bit unsigned integer (or a buffer of chars) including or not the parity bits (I still have to decide). I don't see readers with more than 60 bits.Quoted 9 lines
Quoted 5 lines
Quoted 1 line
I already start writting driver based on
humidity/dht11.cthat uses similar timings.Another question is what would your struct
iio_chan_specdefinition look like? Namely the .type assignmentsFor now, I did not have define any channels and
num_channelsin structiio_devin probe function.
That is what I have to investigate today : study how buffers work for IIO subsystem.
The idea is to have a blocking call from the userspace and every time a card is read, the buffer is filled and pushed to userspace. Userspace application will be unblocked and the buffer will be read.
Quoted 7 lines
Yeah buffers need to work independent of userspace and can't be blocking at all.
Quoted 2 lines
Couldn't I create a new
iio_chan_typeIIO_ID(or evenIIO_BIOMETRIC) ?Yeah
IIO_BIOMETRICor evenIIO_IDis a bit odd since it isn't an SI unit or similar. Maybe Jonathan has some thoughts on this
I'll confess I'm not sure this is really a good fit for IIO. It's kind of similar to some of the things like fingerprint readers that generate a block of data in some cryptic format that needs a userspace library to interpret it.
We have talked in the past about optimal storage for binary data (GPI signals on devices that scan them in groups). This is kind of like that I guess.
So, Gaetan, what were you thinking the actual data layout in the buffer would be?
Quoted 46 lines
Quoted 36 lines
Quoted 36 lines
Quoted 36 lines
Quoted 8 lines
Also a few issues/points:
* What is the interface to the Wiegand data? If it is inputting on a GPIO that is for sure not going to be real time enough to get valid data
Wiegand protocol uses two data lines. Both data lines are pulled-up. When a 0 must be send, D0 line is set low, when a 1 must be sent, D1 line is set low. D0 and D1 line can never be set low at the same time. Reader will convert ID of the card into binary data flow of 26, 34, .... 60 bits. The length of a data flow is configured in the reader and all readers connected on the same Wiegand bus have generally the same length.
Quoted 1 line
* Aren't there multiple Wiegand transport standards?
Yes they are several data length.
Quoted 2 lines
* Most keyreaders I've seen are emulated as keyboard devices so they use the input subsystem.
If they are emulated as keyboard, they don't use Wiegand anymore ! Wiegand is still often used for hotels, ...
Quoted 17 lines
* Also if the data being output is ASCII data, then I'm not sure that
fits anywhere in iioData received from Wiegand bus are bits. They are not packed in 8 bits or any other size.- Matt
Quoted 10 lines
Thank you for your help?
Best regards,
Gaëtan.[1] https://en.wikipedia.org/wiki/Wiegand_interface
--
To unsubscribe from this list: send the line "unsubscribe linux-iio" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.htmlQuoted 6 lines
Quoted 2 lines
Quoted 2 lines
Regards,
Gaëtan.Thank you,
Regards,
Gaëtan.--
To unsubscribe from this list: send the line "unsubscribe linux-iio" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 37 lines · Jonathan Cameron
Quoted 34 lines · On Wed, 11 Apr 2018 20:41:30 -0700 Matt Ranostay <[email protected]>…
Quoted 18 lines · Gaëtan Carlier
Quoted 17 lines · Matt Ranostay
Quoted 16 lines · Gaëtan Carlier
Hello,
Thank you for your reply.Quoted 5 lines · Matt Ranostay
Quoted 2 lines · Gaëtan Carlier
Hello,
I would like to add support of Wiegand card reader [1]. Where can I place it :drivers/iio/access/wiegand.cordrivers/iio/security/wiegand.c?Question here is why is this ideal for iio versus using the input subsystem?
What can I send to userspace from a bitstream using Input subsystem ?
Datas on Wiegand depend on readers used/setup. The best is to send bitstream directly to userspace and let user split bitstream into facilty/area code, card ID, ... My idea is to send a structure with
* number of bits read
* if two parity bits are valid
* the bitstream itself saved in a 64 bit unsigned integer (or a buffer of chars) including or not the parity bits (I still have to decide). I don't see readers with more than 60 bits.Quoted 9 lines
Quoted 5 lines
Quoted 1 line
I already start writting driver based on
humidity/dht11.cthat uses similar timings.Another question is what would your struct
iio_chan_specdefinition look like? Namely the .type assignmentsFor now, I did not have define any channels and
num_channelsin structiio_devin probe function.
That is what I have to investigate today : study how buffers work for IIO subsystem.
The idea is to have a blocking call from the userspace and every time a card is read, the buffer is filled and pushed to userspace. Userspace application will be unblocked and the buffer will be read.Yeah buffers need to work independent of userspace and can't be blocking at all.
Quoted 2 lines
Couldn't I create a new
iio_chan_typeIIO_ID(or evenIIO_BIOMETRIC) ?
Quoted 7 lines
Quoted 2 lines
Yeah
IIO_BIOMETRICor evenIIO_IDis a bit odd since it isn't an SI unit or similar. Maybe Jonathan has some thoughts on thisI'll confess I'm not sure this is really a good fit for IIO. It's kind of similar to some of the things like fingerprint readers that generate a block of data in some cryptic format that needs a userspace library to interpret it.
It looks like we are removing the frame from framework ;)
Hi,
Quoted 45 lines · Jonathan Cameron
Quoted 29 lines · On Wed, 11 Apr 2018 20:41:30 -0700 Matt Ranostay <[email protected]>…
Quoted 18 lines · Gaëtan Carlier
Quoted 17 lines · Matt Ranostay
Quoted 16 lines · Gaëtan Carlier
Hello,
Thank you for your reply.Quoted 5 lines · Matt Ranostay
Quoted 2 lines · Gaëtan Carlier
Hello,
I would like to add support of Wiegand card reader [1]. Where can I place it :drivers/iio/access/wiegand.cordrivers/iio/security/wiegand.c?Question here is why is this ideal for iio versus using the input subsystem?
What can I send to userspace from a bitstream using Input subsystem ?
Datas on Wiegand depend on readers used/setup. The best is to send bitstream directly to userspace and let user split bitstream into facilty/area code, card ID, ... My idea is to send a structure with
* number of bits read
* if two parity bits are valid
* the bitstream itself saved in a 64 bit unsigned integer (or a buffer of chars) including or not the parity bits (I still have to decide). I don't see readers with more than 60 bits.Quoted 9 lines
Quoted 5 lines
Quoted 1 line
I already start writting driver based on
humidity/dht11.cthat uses similar timings.Another question is what would your struct
iio_chan_specdefinition look like? Namely the .type assignmentsFor now, I did not have define any channels and
num_channelsin structiio_devin probe function.
That is what I have to investigate today : study how buffers work for IIO subsystem.
The idea is to have a blocking call from the userspace and every time a card is read, the buffer is filled and pushed to userspace. Userspace application will be unblocked and the buffer will be read.Quoted 7 lines
Yeah buffers need to work independent of userspace and can't be blocking at all.
Quoted 2 lines
Couldn't I create a new
iio_chan_typeIIO_ID(or evenIIO_BIOMETRIC) ?Yeah
IIO_BIOMETRICor evenIIO_IDis a bit odd since it isn't an SI unit or similar. Maybe Jonathan has some thoughts on thisI'll confess I'm not sure this is really a good fit for IIO. It's kind of similar to some of the things like fingerprint readers that generate a block of data in some cryptic format that needs a userspace library to interpret it.
Quoted 6 lines
We have talked in the past about optimal storage for binary data (GPI signals on devices that scan them in groups). This is kind of like that I guess.
So, Gaetan, what were you thinking the actual data layout in the buffer would be?
The buffer will contain : a u64 variable, a counter that will tell how much bits in u64 variables a used (wiegand is generally 26 bits or 34 bits but it can rise upto 60 bits but this situation is really rare).
Initially, I though that IIO subsystem was done for this kind of interface but after more reading it is only suited for ADC/DAC devices. Unfortunately, I can not use input subsystem because, I need raw data that must not be converted to Key code, ... So I am little lost. Where can I place my code ? Even is Wiegand is a very old/unsecured/... protocol, it is still used a lot. And with pulse of some microseconds, it is difficult to handle them via exported GPIO on sysfs and do all the stuff in userspace.
I clearly understand (now) that Wiegand can not stay in IIO but do you have any lead for me please ?
Quoted 40 lines
Quoted 40 lines
Quoted 40 lines
Quoted 39 lines
Quoted 39 lines
Quoted 9 lines
Also a few issues/points:
* What is the interface to the Wiegand data? If it is inputting on a GPIO that is for sure not going to be real time enough to get valid data
Wiegand protocol uses two data lines. Both data lines are pulled-up. When a 0 must be send, D0 line is set low, when a 1 must be sent, D1 line is set low. D0 and D1 line can never be set low at the same time. Reader will convert ID of the card into binary data flow of 26, 34, .... 60 bits. The length of a data flow is configured in the reader and all readers connected on the same Wiegand bus have generally the same length.
Quoted 1 line
* Aren't there multiple Wiegand transport standards?
Yes they are several data length.
Quoted 2 lines
* Most keyreaders I've seen are emulated as keyboard devices so they use the input subsystem.
If they are emulated as keyboard, they don't use Wiegand anymore ! Wiegand is still often used for hotels, ...
Quoted 4 lines
* Also if the data being output is ASCII data, then I'm not sure that
fits anywhere in iioData received from Wiegand bus are bits. They are not packed in 8 bits or any other size.Quoted 13 lines
- Matt
Quoted 10 lines
Thank you for your help?
Best regards,
Gaëtan.[1] https://en.wikipedia.org/wiki/Wiegand_interface
--
To unsubscribe from this list: send the line "unsubscribe linux-iio" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.htmlRegards,
Gaëtan.
Quoted 8 lines
Quoted 7 lines
Quoted 3 lines
Thank you,
Regards,
Gaëtan.--
To unsubscribe from this list: send the line "unsubscribe linux-iio" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Thank you.
Regards,
Gaëtan.
On Thu, Apr 12, 2018 at 5:20 AM, Ga=C3=ABtan Carlier <[email protected]> wr= ote:
Quoted 9 lines
Hi,
Quoted 4 lines · Jonathan Cameron
Quoted 1 line · On Wed, 11 Apr 2018 20:41:30 -0700 Matt Ranostay <[email protected]>…
On Wed, Apr 11, 2018 at 1:36 AM, Ga=C3=ABtan Carlier <[email protected]=
Quoted 2 lines · wrote:
Quoted 2 lines
Quoted 2 lines · Matt Ranostay
Quoted 1 line
On Tue, Apr 10, 2018 at 1:57 AM, Ga=C3=ABtan Carlier <[email protected]=
Quoted 5 lines · om> wrote:
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Hello,
Thank you for your reply.Quoted 1 line · Matt Ranostay
On Mon, Apr 9, 2018 at 7:05 AM, Ga=C3=ABtan Carlier <gcembed@gmail.=
Quoted 2 lines · com> wrote:
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Hello,
I would like to add support of Wiegand card reader [1]. Where can =
I place it : drivers/iio/access/wiegand.c or drivers/iio/security/wiegand.c= ?
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Question here is why is this ideal for iio versus using the input s=
ubsystem?
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
What can I send to userspace from a bitstream using Input subsystem =
?
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Datas on Wiegand depend on readers used/setup. The best is to send b=
itstream directly to userspace and let user split bitstream into facilty/ar= ea code, card ID, ...
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
My idea is to send a structure with
* number of bits read
* if two parity bits are valid
* the bitstream itself saved in a 64 bit unsigned integer (or a =
buffer of chars) including or not the parity bits (I still have to decide).=
I don't see readers with more than 60 bits.
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
I already start writting driver based on
humidity/dht11.cthat uses =
similar timings.
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 4 lines
Another question is what would your struct
iio_chan_specdefinition look like? Namely the .type assignmentsFor now, I did not have define any channels and
num_channelsin struct=
iio_dev in probe function.
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
That is what I have to investigate today : study how buffers work for =
IIO subsystem.
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
The idea is to have a blocking call from the userspace and every time =
a card is read, the buffer is filled and pushed to userspace. Userspace app= lication will be unblocked and the buffer will be read.
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 1 line
Yeah buffers need to work independent of userspace and can't be blockin=
g at all.
Quoted 7 lines
Quoted 7 lines
Quoted 6 lines
Quoted 3 lines
Couldn't I create a new
iio_chan_typeIIO_ID(or evenIIO_BIOMETRIC) ?Yeah
IIO_BIOMETRICor evenIIO_IDis a bit odd since it isn't an SI unit or similar. Maybe Jonathan has some thoughts on this
Quoted 6 lines
Quoted 6 lines
I'll confess I'm not sure this is really a good fit for IIO. It's kind of similar to some of the things like fingerprint readers that generate a block of data in some cryptic format that needs a userspace library to interpret it.
We have talked in the past about optimal storage for binary data (GPI si=
gnals
Quoted 6 lines
Quoted 5 lines
on devices that scan them in groups). This is kind of like that I guess.
So, Gaetan, what were you thinking the actual data layout in the buffer would be?
The buffer will contain : a u64 variable, a counter that will tell how mu=
ch bits in u64 variables a used (wiegand is generally 26 bits or 34 bits bu= t it can rise upto 60 bits but this situation is really rare).
Quoted 2 lines
Initially, I though that IIO subsystem was done for this kind of interfac=
e but after more reading it is only suited for ADC/DAC devices.
Quoted 1 line
Unfortunately, I can not use input subsystem because, I need raw data tha=
t must not be converted to Key code, ...
Quoted 1 line
So I am little lost. Where can I place my code ? Even is Wiegand is a ver=
y old/unsecured/... protocol, it is still used a lot.
Quoted 1 line
And with pulse of some microseconds, it is difficult to handle them via e=
xported GPIO on sysfs and do all the stuff in userspace.
Yeah in userspace that would totally wrong way to do it. One issue
you probably going to have is you can't really be that deterministic with sampling the GPIO input
esp if you dont' have many cores. Then again I'm not sure how sensitive Wiegand is to timing.
Quoted 2 lines
I clearly understand (now) that Wiegand can not stay in IIO but do you ha=
ve any lead for me please ?
Quoted 1 line
Which platform are you using for this?
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Also a few issues/points:
* What is the interface to the Wiegand data? If it is inputting on =
a
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 2 lines
GPIO that is for sure not going to be real time enough to get valid data
Wiegand protocol uses two data lines. Both data lines are pulled-up.=
When a 0 must be send, D0 line is set low, when a 1 must be sent, D1 line =
is set low. D0 and D1 line can never be set low at the same time. Reader wi= ll convert ID of the card into binary data flow of 26, 34, .... 60 bits.
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
The length of a data flow is configured in the reader and all reader=
s connected on the same Wiegand bus have generally the same length.
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 2 lines
* Aren't there multiple Wiegand transport standards?
Yes they are several data length.
Quoted 1 line
* Most keyreaders I've seen are emulated as keyboard devices so the=
y
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 1 line
use the input subsystem.
If they are emulated as keyboard, they don't use Wiegand anymore ! W=
iegand is still often used for hotels, ...
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
* Also if the data being output is ASCII data, then I'm not sure th=
at
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
fits anywhere in iioData received from Wiegand bus are bits. They a=
re not packed in 8 bits or any other size.
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
- Matt
Quoted 1 line
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Thank you for your help?
Best regards,
Ga=C3=ABtan.[1] https://en.wikipedia.org/wiki/Wiegand_interface
--
To unsubscribe from this list: send the line "unsubscribe linux-ii=
o" in
Quoted 18 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 5 lines
Quoted 5 lines
Quoted 2 lines
Quoted 2 lines
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.htmlRegards,
Ga=C3=ABtan.Quoted 8 lines
Quoted 7 lines
Quoted 3 lines
Thank you,
Regards,
Ga=C3=ABtan.--
To unsubscribe from this list: send the line "unsubscribe linux-iio" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.htmlThank you.
Regards,
Ga=C3=ABtan.
Quoted 61 lines · Matt Ranostay
Quoted 53 lines · Gaëtan Carlier
Hi,
Quoted 45 lines · Jonathan Cameron
Quoted 29 lines · On Wed, 11 Apr 2018 20:41:30 -0700 Matt Ranostay <[email protected]>…
Quoted 18 lines · Gaëtan Carlier
Quoted 17 lines · Matt Ranostay
Quoted 16 lines · Gaëtan Carlier
Hello,
Thank you for your reply.Quoted 5 lines · Matt Ranostay
Quoted 2 lines · Gaëtan Carlier
Hello,
I would like to add support of Wiegand card reader [1]. Where can I place it :drivers/iio/access/wiegand.cordrivers/iio/security/wiegand.c?Question here is why is this ideal for iio versus using the input subsystem?
What can I send to userspace from a bitstream using Input subsystem ?
Datas on Wiegand depend on readers used/setup. The best is to send bitstream directly to userspace and let user split bitstream into facilty/area code, card ID, ... My idea is to send a structure with
* number of bits read
* if two parity bits are valid
* the bitstream itself saved in a 64 bit unsigned integer (or a buffer of chars) including or not the parity bits (I still have to decide). I don't see readers with more than 60 bits.Quoted 9 lines
Quoted 5 lines
Quoted 1 line
I already start writting driver based on
humidity/dht11.cthat uses similar timings.Another question is what would your struct
iio_chan_specdefinition look like? Namely the .type assignmentsFor now, I did not have define any channels and
num_channelsin structiio_devin probe function.
That is what I have to investigate today : study how buffers work for IIO subsystem.
The idea is to have a blocking call from the userspace and every time a card is read, the buffer is filled and pushed to userspace. Userspace application will be unblocked and the buffer will be read.Quoted 7 lines
Yeah buffers need to work independent of userspace and can't be blocking at all.
Quoted 2 lines
Couldn't I create a new
iio_chan_typeIIO_ID(or evenIIO_BIOMETRIC) ?Yeah
IIO_BIOMETRICor evenIIO_IDis a bit odd since it isn't an SI unit or similar. Maybe Jonathan has some thoughts on thisI'll confess I'm not sure this is really a good fit for IIO. It's kind of similar to some of the things like fingerprint readers that generate a block of data in some cryptic format that needs a userspace library to interpret it.
Quoted 6 lines
We have talked in the past about optimal storage for binary data (GPI signals on devices that scan them in groups). This is kind of like that I guess.
So, Gaetan, what were you thinking the actual data layout in the buffer would be?
Quoted 6 lines
The buffer will contain : a u64 variable, a counter that will tell how much bits in u64 variables a used (wiegand is generally 26 bits or 34 bits but it can rise upto 60 bits but this situation is really rare).
Initially, I though that IIO subsystem was done for this kind of interface but after more reading it is only suited for ADC/DAC devices. Unfortunately, I can not use input subsystem because, I need raw data that must not be converted to Key code, ... So I am little lost. Where can I place my code ? Even is Wiegand is a very old/unsecured/... protocol, it is still used a lot. And with pulse of some microseconds, it is difficult to handle them via exported GPIO on sysfs and do all the stuff in userspace.
Quoted 6 lines
Yeah in userspace that would totally wrong way to do it. One issue
you probably going to have is you can't really be that deterministic with sampling the GPIO input
esp if you dont' have many cores. Then again I'm not sure how sensitive Wiegand is to timing.
A valid frame must follows these specs:
- (negative) pulse width : from 30us to 200us
- pause between two pulses : from 500us to 10ms.
In my case, Each time I receive a (falling) interrupt on one of two GPIOs (D1 or D0), I reload a timer of 20ms (mod_timer). If the timer overflows, this means that all bits have been receeived, I check the parity and data is ready to be forwarded to userspace : the number of bit received (depends on the reader), the bitstream stored in a 64-bit variable, a "valid" flag sets if parity bits are OK. Normally Wiegand data is between 26 and 60 bits.
Quoted 6 lines
Quoted 3 lines
I clearly understand (now) that Wiegand can not stay in IIO but do you have any lead for me please ?
Which platform are you using for this?
I am working with an ARM Freescale i.MX286
Quoted 52 lines
Quoted 52 lines
Quoted 40 lines
Quoted 40 lines
Quoted 40 lines
Quoted 39 lines
Quoted 39 lines
Quoted 9 lines
Also a few issues/points:
* What is the interface to the Wiegand data? If it is inputting on a GPIO that is for sure not going to be real time enough to get valid data
Wiegand protocol uses two data lines. Both data lines are pulled-up. When a 0 must be send, D0 line is set low, when a 1 must be sent, D1 line is set low. D0 and D1 line can never be set low at the same time. Reader will convert ID of the card into binary data flow of 26, 34, .... 60 bits. The length of a data flow is configured in the reader and all readers connected on the same Wiegand bus have generally the same length.
Quoted 1 line
* Aren't there multiple Wiegand transport standards?
Yes they are several data length.
Quoted 2 lines
* Most keyreaders I've seen are emulated as keyboard devices so they use the input subsystem.
If they are emulated as keyboard, they don't use Wiegand anymore ! Wiegand is still often used for hotels, ...
Quoted 4 lines
* Also if the data being output is ASCII data, then I'm not sure that
fits anywhere in iioData received from Wiegand bus are bits. They are not packed in 8 bits or any other size.Quoted 13 lines
- Matt
Quoted 10 lines
Thank you for your help?
Best regards,
Gaëtan.[1] https://en.wikipedia.org/wiki/Wiegand_interface
--
To unsubscribe from this list: send the line "unsubscribe linux-iio" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.htmlRegards,
Gaëtan.Quoted 8 lines
Quoted 7 lines
Quoted 3 lines
Thank you,
Regards,
Gaëtan.--
To unsubscribe from this list: send the line "unsubscribe linux-iio" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.htmlThank you.
Regards,
Gaëtan.
On Fri, Apr 13, 2018 at 1:11 AM, Ga=C3=ABtan Carlier <[email protected]> wr= ote:
Quoted 2 lines · Matt Ranostay
Quoted 1 line
On Thu, Apr 12, 2018 at 5:20 AM, Ga=C3=ABtan Carlier <[email protected]>=
Quoted 6 lines · wrote:
Quoted 6 lines
Quoted 6 lines
Hi,
Quoted 4 lines · Jonathan Cameron
Quoted 1 line · On Wed, 11 Apr 2018 20:41:30 -0700 Matt Ranostay <[email protected]>…
On Wed, Apr 11, 2018 at 1:36 AM, Ga=C3=ABtan Carlier <[email protected]=
Quoted 2 lines · om> wrote:
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines · Matt Ranostay
Quoted 1 line
On Tue, Apr 10, 2018 at 1:57 AM, Ga=C3=ABtan Carlier <gcembed@gmail=
Quoted 5 lines · .com> wrote:
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Hello,
Thank you for your reply.Quoted 1 line · Matt Ranostay
On Mon, Apr 9, 2018 at 7:05 AM, Ga=C3=ABtan Carlier <gcembed@gmai=
Quoted 2 lines · l.com> wrote:
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Hello,
I would like to add support of Wiegand card reader [1]. Where ca=
n I place it : drivers/iio/access/wiegand.c or drivers/iio/security/wiegand= .c?
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Question here is why is this ideal for iio versus using the input=
subsystem?
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
What can I send to userspace from a bitstream using Input subsyste=
m ?
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Datas on Wiegand depend on readers used/setup. The best is to send=
bitstream directly to userspace and let user split bitstream into facilty/=
area code, card ID, ...
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
My idea is to send a structure with
* number of bits read
* if two parity bits are valid
* the bitstream itself saved in a 64 bit unsigned integer (or =
a buffer of chars) including or not the parity bits (I still have to decide= ). I don't see readers with more than 60 bits.
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
I already start writting driver based on
humidity/dht11.cthat use=
s similar timings.
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 4 lines
Another question is what would your struct
iio_chan_specdefinition look like? Namely the .type assignmentsFor now, I did not have define any channels and
num_channelsin stru=
ct iio_dev in probe function.
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
That is what I have to investigate today : study how buffers work fo=
r IIO subsystem.
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
The idea is to have a blocking call from the userspace and every tim=
e a card is read, the buffer is filled and pushed to userspace. Userspace a= pplication will be unblocked and the buffer will be read.
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 1 line
Yeah buffers need to work independent of userspace and can't be block=
ing at all.
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Couldn't I create a new
iio_chan_typeIIO_ID(or even IIO_BIOMETRIC)=
?
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 4 lines
Quoted 1 line
Yeah
IIO_BIOMETRICor evenIIO_IDis a bit odd since it isn't an SI unit or similar. Maybe Jonathan has some thoughts on thisI'll confess I'm not sure this is really a good fit for IIO. It's kind of similar to some of the things like fingerprint readers that generat=
e
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
a block of data in some cryptic format that needs a userspace library =
to
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
interpret it.
We have talked in the past about optimal storage for binary data (GPI =
signals
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
on devices that scan them in groups). This is kind of like that I gues=
s.
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
So, Gaetan, what were you thinking the actual data layout in the buffe=
r
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 2 lines
would be?
The buffer will contain : a u64 variable, a counter that will tell how =
much bits in u64 variables a used (wiegand is generally 26 bits or 34 bits = but it can rise upto 60 bits but this situation is really rare).
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Initially, I though that IIO subsystem was done for this kind of interf=
ace but after more reading it is only suited for ADC/DAC devices.
Quoted 1 line
Quoted 1 line
Quoted 1 line
Unfortunately, I can not use input subsystem because, I need raw data t=
hat must not be converted to Key code, ...
Quoted 1 line
Quoted 1 line
Quoted 1 line
So I am little lost. Where can I place my code ? Even is Wiegand is a v=
ery old/unsecured/... protocol, it is still used a lot.
Quoted 1 line
Quoted 1 line
Quoted 1 line
And with pulse of some microseconds, it is difficult to handle them via=
exported GPIO on sysfs and do all the stuff in userspace.
Quoted 7 lines
Quoted 7 lines
Yeah in userspace that would totally wrong way to do it. One issue
you probably going to have is you can't really be that deterministic with sampling the GPIO input
esp if you dont' have many cores. Then again I'm not sure how sensitive Wiegand is to timing.
Quoted 8 lines
A valid frame must follows these specs:
- (negative) pulse width : from 30us to 200us
- pause between two pulses : from 500us to 10ms.In my case, Each time I receive a (falling) interrupt on one of two GPIOs (D1 or D0), I reload a timer of 20ms (
mod_timer). If the timer overflows, this means that all bits have been receeived, I check the parity and data is ready to be forwarded to userspace : the number of bit received (depen=
ds
Quoted 2 lines
on the reader), the bitstream stored in a 64-bit variable, a "valid" flag sets if parity bits are OK. Normally Wiegand data is between 26 and 60 bi=
ts.
Quoted 1 line
Personally I think you overly optimistic that this would work with 100% of card swipes (propagation delay of the interrupt and scheduler would be an issue), and it wouldn't be fully in spec.
Any reason not to use a Wiegand to RS232 converter?
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
I clearly understand (now) that Wiegand can not stay in IIO but do you =
have any lead for me please ?
Quoted 13 lines
Quoted 4 lines
Quoted 1 line
Which platform are you using for this?
I am working with an ARM Freescale i.MX286
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Also a few issues/points:
* What is the interface to the Wiegand data? If it is inputting o=
n a
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
GPIO that is for sure not going to be real time enough to get val=
id
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 1 line
data
Wiegand protocol uses two data lines. Both data lines are pulled-u=
p. When a 0 must be send, D0 line is set low, when a 1 must be sent, D1 lin= e is set low. D0 and D1 line can never be set low at the same time. Reader = will convert ID of the card into binary data flow of 26, 34, .... 60 bits.
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
The length of a data flow is configured in the reader and all read=
ers connected on the same Wiegand bus have generally the same length.
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 2 lines
* Aren't there multiple Wiegand transport standards?
Yes they are several data length.
Quoted 1 line
* Most keyreaders I've seen are emulated as keyboard devices so t=
hey
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 1 line
use the input subsystem.
If they are emulated as keyboard, they don't use Wiegand anymore !=
Wiegand is still often used for hotels, ...
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
* Also if the data being output is ASCII data, then I'm not sure =
that
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
fits anywhere in iioData received from Wiegand bus are bits. They=
are not packed in 8 bits or any other size.
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
- Matt
Quoted 1 line
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Thank you for your help?
Best regards,
Ga=C3=ABtan.[1] https://en.wikipedia.org/wiki/Wiegand_interface
--
To unsubscribe from this list: send the line "unsubscribe linux-=
iio" in
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.ht=
ml
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 7 lines
Quoted 3 lines
Quoted 3 lines
Regards,
Ga=C3=ABtan.Thank you,
Regards,
Ga=C3=ABtan.--
To unsubscribe from this list: send the line "unsubscribe linux-iio" =
in
Quoted 8 lines
Quoted 7 lines
Quoted 7 lines
Quoted 3 lines
Quoted 2 lines
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.htmlThank you.
Regards,
Ga=C3=ABtan.