Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

missing renderer.h in universal branch #2

Open
ozett opened this issue Jan 4, 2019 · 18 comments
Open

missing renderer.h in universal branch #2

ozett opened this issue Jan 4, 2019 · 18 comments

Comments

@ozett
Copy link

ozett commented Jan 4, 2019

hi,
i came over from the tasmota-thread to try the rfid-pn532 driver.
as you mentioned to copy only the pn532.ino and the lib over,
i did this but i got errors. i had arduino-ide1.611 comipling my tasmota 6.x fine,
but only copying lib and your .ino showed errors.

image

i took your complete universal-branch,
made a new arduino-ide v1.88, made the portable-dir and put all your source and libs in (as i alyway normally do), but got a different error.

image

In file included from C:\Users\olaf\AppData\Local\Temp\arduino_build_1307\sketch\ILI9488.cpp:18:0:

D:\daten\olaf.arduino\arduino-1.8.8.qmu2015\portable\sketchbook\libraries\ILI9488-master/ILI9488.h:27:22: fatal error: renderer.h: No such file or directory

 #include <renderer.h>

                      ^

compilation terminated.

may you have a hint for me?

@ozett
Copy link
Author

ozett commented Jan 4, 2019

for my first version, i made a mistake:
first i used the "only" the xsns_40_pn532_ic,
and "not" from universal-branch.

i corrected this, and found the xsns93_pn532.
i used this also in my existing tasmota and now i compiled fine.

image

(the renderer.h is still missing in your universal branch on my arduino-install. may you still have a hint for me..)

@ozett
Copy link
Author

ozett commented Jan 4, 2019

now i flashed the wemos-mini-d1 succesfull,
got all the pn532.inos and libs, in,
but you have to get me going, i guess..

image

what are my next steps to get the pn532 reader active?
configure i2s on the pins?
what about the reset-line (you mentioned in the tasmota-thread)?
how can i configure this?

thanks for helping me out..

@gemu2015
Copy link
Owner

gemu2015 commented Jan 5, 2019

i would recommend to use the pn532 branch. it is the newest tasmota release and an updated driver from andrethomas . the pn532_89 ist no longer supported.
this is work in progress anyhow but the more testers the better.
we try to avoid using the reset line currently, we are not sure if we succeed.
so simply connect SDA,SCL and it should run. think on configuring your pn532 board for i2c (mostly by dip switches)
in the config you must enable
#define USE_PN532_I2C
and if you want to test the learning feature also
#define LEARN_TAGS

@ozett
Copy link
Author

ozett commented Jan 5, 2019

thanks for the info, i will try it now.

just for comparison: on espeasy i was used to do the following settings, to have my pn532 running (with reset) since 2016:

image

image

image

@ozett
Copy link
Author

ozett commented Jan 5, 2019

@gemu2015

i would recommend to use the pn532 branch.

just by the way:
i think there is a typo-mistake in the branch-spelling ?!

@ozett
Copy link
Author

ozett commented Jan 5, 2019

maybe also for reference,
my settings on espeasy for my wiegand-fingerprint...

(sda is not needeed, but an impression of the actual interface lookout)
image

image

@ozett
Copy link
Author

ozett commented Jan 5, 2019

👍 running...
image

@ozett
Copy link
Author

ozett commented Jan 5, 2019

only as an idea: very helpful on the espeasy for debugging device-error is the i2c-scan:

image

==>

🔦

==>

image

@ozett
Copy link
Author

ozett commented Jan 5, 2019

this one for completness of report:
on the espeasy the same TAG-ID is somehow different diplayed. (no problem for me)
but maybe worth a look?
image

@ozett
Copy link
Author

ozett commented Jan 5, 2019

this is work in progress anyhow but the more testers the better.
we try to avoid using the reset line currently, we are not sure if we succeed.

just a an observation: back in the old-days of espeasy in 2016 the developer martinus build a tag-robot in his lab (as he posted in the forum), to have automatic testing for the need of the reset line.
as i have only readings from time-to-time, i guess i will not see if i need the reset-line

and if you want to test the learning feature also
#define LEARN_TAGS

just as an idea for learning-tags:
its difficult to have the console at my housedoor to activate read-in.
on my fingerprint-reader i have to designate a tag, which activates the read-in of the next tag.
the first tag is made a master-tag to activate reading-in of the next tag, which is presented to the reader.
ne need for console-cmds.
also there can be a master-tag for deletion.. 📦

@gemu2015
Copy link
Owner

gemu2015 commented Jan 5, 2019 via email

@ozett
Copy link
Author

ozett commented Jan 5, 2019

console entry is not a problem however. you enter the code in console where ever you want, the reader waits for the next tag that is applied and learns it.

just for my handling i would have to walk 2 min. up to the door.
if anybody in the meantime (>2min 😄 ) holds a tag in front of the reader,
he was faster than me.

if i would have master-tag, i could stand directly in front of the reader,
present the master tag to start teach-in, than the new tag.
if i wirte a rule, i could light up green,orange or red-lights on a ws2812 to visualize the process.
without any console-access (or device for console) at all. 🎺
what do you think?
this method is the normal process on all my fingerprint (and face! )-reader. yep.
i mean: could it be an option?

@gemu2015
Copy link
Owner

gemu2015 commented Jan 5, 2019 via email

@gemu2015
Copy link
Owner

gemu2015 commented Jan 6, 2019

new version of cmds

a relay mode time => wait for tag to learn
A UID relay mode time => enter UID in list directly
AM UID relay mode time => enter UID in list directly as a learning master
AD UID relay mode time => enter UID in list directly as a deleting master
d index delete tag of index
D wait for tag to delete
e erase tag list
s index show list entry of index

@ozett
Copy link
Author

ozett commented Jan 6, 2019

just for pleasure (or wiki?):
a picture of my reader setup

image

@ozett
Copy link
Author

ozett commented Jan 7, 2019

just for the records:
i found by chance a hint, that tasmota also has as i2c overview (via cmds).

it is worth to be mentionend in the wiki, (or for debugging on the pn532-i2c)

https://github.com/arendst/Sonoff-Tasmota/search?q=I2CSCAN&unscoped_q=I2CSCAN

@gemu2015
Copy link
Owner

gemu2015 commented Jan 7, 2019

now you can read and write all sectors of the tag
you can format it to NDEF and add records.

// current commands

a relay mode time => wait for tag to learn
A UID relay mode time => enter UID in list directly
AM UID relay mode time => enter UID in list directly as a learning master
AD UID relay mode time => enter UID in list directly as a deleting master
d index delete tag of index
D wait for tag to delete
e erase tag list
s index show list entry of index

// for these commands the tag must be placed onto the reader
// format a card to NDEF
f => format to NDEF
// reformat an NDEF card to Mifare
fm =>reformat an NDEF tag to Mifare
// add a new NDEF record
n sector (1-15) type record => (up to 38 asci chars )
type can be found on the net NDEF Type definitions
n=new entry nu=update existing entry

// write a block to Mifare card
w blocknr 16 bytes of hex date without spaces
// read a block from Mifare card
r blocknr

in stead of the internal simulated EEPROM you can now use an i2c eeprom of type AT24C256

@gemu2015
Copy link
Owner

gemu2015 commented Jan 8, 2019

RDM6300 driver added

gemu2015 pushed a commit that referenced this issue Apr 17, 2019
Final fixes, cleanup, and optimizations
gemu2015 pushed a commit that referenced this issue Apr 17, 2019
gemu2015 pushed a commit that referenced this issue Jun 14, 2019
gemu2015 pushed a commit that referenced this issue Oct 10, 2019
gemu2015 pushed a commit that referenced this issue Mar 29, 2020
gemu2015 pushed a commit that referenced this issue Jul 15, 2020
Pull request to catch up to arendst/Tasmota development branch.
gemu2015 pushed a commit that referenced this issue Dec 26, 2020
gemu2015 pushed a commit that referenced this issue Feb 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants