paulvha / ThingMagic

Encoding and Decoding of many different types of EPC according to the EPC tag data standard 1.9 for RFID tags, written in C
GNU General Public License v3.0
24 stars 7 forks source link

Sparkfun Artemis compatability? #6

Closed dyones7 closed 3 years ago

dyones7 commented 3 years ago

Hello paulvha,

I was looking for a solution to reading a RFID chip with user that extends past the usual 64 bytes and came across you library.

I am running on the Arduino platform but can't see to get you library to compile, for any Arduino.

Do you support the Arduino and if so can you tell me how to set it up so I can try your library.

Most appreciated,

dyones7

paulvha commented 3 years ago

Hi

This should compile on an Arduino MEGA2560 without any issues. On the Arduino UNO the small memory size might be a problem. What errors do you get so I can see if I can help.

Regards, Paul

Verzonden vanuit Mailhttps://go.microsoft.com/fwlink/?LinkId=550986 voor Windows 10

Van: @.> Verzonden: maandag 26 april 2021 03:54 Aan: @.> CC: @.***> Onderwerp: [paulvha/ThingMagic] Sparkfun Artemis compatability? (#6)

Hello paulvha,

I was looking for a solution to reading a RFID chip with user that extends past the usual 64 bytes and came across you library.

I am running on the Arduino platform but can't see to get you library to compile, for any Arduino.

Do you support the Arduino and if so can you tell me how to set it up so I can try your library.

Most appreciated,

dyones7

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fpaulvha%2FThingMagic%2Fissues%2F6&data=04%7C01%7C%7C946e443fe6f4482fe8f308d908562f32%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637549988510567424%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=pAMBtRTSf4D6wc6lIxxeVt9EPSkgpXg%2FDPGmM93IbIk%3D&reserved=0, or unsubscribehttps://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAD2GBPAKABOYXHSZKLBNOY3TKTBUDANCNFSM43R5ES5A&data=04%7C01%7C%7C946e443fe6f4482fe8f308d908562f32%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637549988510577423%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=3TF69yOinAklO%2F4xOw4PXkH2UX2JghkDm3Q0LkaVZH0%3D&reserved=0.

dyones7 commented 3 years ago

Hello paulvha,

I have attached my modified code and the error for the mega and the artemins. Note I am using Serial1 for both.

I don’t have a lot of experience with the inner working of Arduino. I brought in your library as a zip file. Since I already have the SparkFun reader library installed, I include you header file by giving it the entire path. Don’t know fi this is a good thing to do or not.

Thanks for you help, Dale

From: paulvha @.> Sent: Monday, April 26, 2021 12:54 AM To: paulvha/ThingMagic @.> Cc: Dale Yones @.>; Author @.> Subject: Re: [paulvha/ThingMagic] Sparkfun Artemis compatability? (#6)

Hi

This should compile on an Arduino MEGA2560 without any issues. On the Arduino UNO the small memory size might be a problem. What errors do you get so I can see if I can help.

Regards, Paul

Verzonden vanuit Mailhttps://go.microsoft.com/fwlink/?LinkId=550986 voor Windows 10

Van: @.<mailto:@.>> Verzonden: maandag 26 april 2021 03:54 Aan: @.<mailto:@.>> CC: @.<mailto:@.>> Onderwerp: [paulvha/ThingMagic] Sparkfun Artemis compatability? (#6)

Hello paulvha,

I was looking for a solution to reading a RFID chip with user that extends past the usual 64 bytes and came across you library.

I am running on the Arduino platform but can't see to get you library to compile, for any Arduino.

Do you support the Arduino and if so can you tell me how to set it up so I can try your library.

Most appreciated,

dyones7

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fpaulvha%2FThingMagic%2Fissues%2F6&data=04%7C01%7C%7C946e443fe6f4482fe8f308d908562f32%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637549988510567424%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=pAMBtRTSf4D6wc6lIxxeVt9EPSkgpXg%2FDPGmM93IbIk%3D&reserved=0, or unsubscribehttps://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAD2GBPAKABOYXHSZKLBNOY3TKTBUDANCNFSM43R5ES5A&data=04%7C01%7C%7C946e443fe6f4482fe8f308d908562f32%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637549988510577423%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=3TF69yOinAklO%2F4xOw4PXkH2UX2JghkDm3Q0LkaVZH0%3D&reserved=0.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/paulvha/ThingMagic/issues/6#issuecomment-826558462, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AT2XC7G7EBDXFVE2WURISC3TKUEYTANCNFSM43R5ES5A.

Arduino: 1.8.13 (Windows 10), Board: "Arduino Mega or Mega 2560, ATmega2560 (Mega 2560)"

C:\Users\Dale\AppData\Local\Temp\ccBUX1lC.ltrans0.ltrans.o: In function `global constructors keyed to 65535_0_Example15_readallbanks_my_changes.ino.cpp.o.1890':

:(.text.startup+0xa8): undefined reference to `RFID::RFID()' C:\Users\Dale\AppData\Local\Temp\ccBUX1lC.ltrans0.ltrans.o: In function `setupNano': C:\Users\Dale\Documents\Arduino\Example15_readallbanks_my_changes/Example15_readallbanks_my_changes.ino:289: undefined reference to `RFID::begin(Stream&)' C:\Users\Dale\Documents\Arduino\Example15_readallbanks_my_changes/Example15_readallbanks_my_changes.ino:299: undefined reference to `RFID::getVersion()' C:\Users\Dale\Documents\Arduino\Example15_readallbanks_my_changes/Example15_readallbanks_my_changes.ino:304: undefined reference to `RFID::stopReading()' C:\Users\Dale\Documents\Arduino\Example15_readallbanks_my_changes/Example15_readallbanks_my_changes.ino:321: undefined reference to `RFID::getVersion()' C:\Users\Dale\Documents\Arduino\Example15_readallbanks_my_changes/Example15_readallbanks_my_changes.ino:315: undefined reference to `RFID::setBaud(long)' C:\Users\Dale\Documents\Arduino\Example15_readallbanks_my_changes/Example15_readallbanks_my_changes.ino:325: undefined reference to `RFID::setTagProtocol(unsigned char)' C:\Users\Dale\Documents\Arduino\Example15_readallbanks_my_changes/Example15_readallbanks_my_changes.ino:327: undefined reference to `RFID::setAntennaPort()' C:\Users\Dale\AppData\Local\Temp\ccBUX1lC.ltrans0.ltrans.o: In function `setup': C:\Users\Dale\Documents\Arduino\Example15_readallbanks_my_changes/Example15_readallbanks_my_changes.ino:129: undefined reference to `RFID::setRegion(unsigned char)' C:\Users\Dale\Documents\Arduino\Example15_readallbanks_my_changes/Example15_readallbanks_my_changes.ino:131: undefined reference to `RFID::setReadPower(int)' C:\Users\Dale\AppData\Local\Temp\ccBUX1lC.ltrans0.ltrans.o: In function `loop': C:\Users\Dale\Documents\Arduino\Example15_readallbanks_my_changes/Example15_readallbanks_my_changes.ino:140: undefined reference to `RFID::getTemp()' C:\Users\Dale\Documents\Arduino\Example15_readallbanks_my_changes/Example15_readallbanks_my_changes.ino:155: undefined reference to `RFID::ReadingAllBanks(TMR_TagReadData*)' collect2.exe: error: ld returned 1 exit status exit status 1 Error compiling for board Arduino Mega or Mega 2560. This report would have more information with "Show verbose output during compilation" option enabled in File -> Preferences. Arduino: 1.8.13 (Windows 10), Board: "SparkFun RedBoard Artemis, 921600, SparkFun Variable Loader (Recommended)" c:/users/dale/appdata/local/arduino15/packages/sparkfun/tools/arm-none-eabi-gcc/8-2018-q4-major/bin/../lib/gcc/arm-none-eabi/8.2.1/../../../../arm-none-eabi/bin/ld.exe: sketch\Example15_readallbanks_my_changes.ino.cpp.o: in function `_GLOBAL__sub_I_nano': C:\Users\Dale\Documents\Arduino\Example15_readallbanks_my_changes/Example15_readallbanks_my_changes.ino:103: undefined reference to `RFID::RFID()' c:/users/dale/appdata/local/arduino15/packages/sparkfun/tools/arm-none-eabi-gcc/8-2018-q4-major/bin/../lib/gcc/arm-none-eabi/8.2.1/../../../../arm-none-eabi/bin/ld.exe: sketch\Example15_readallbanks_my_changes.ino.cpp.o: in function `loop': C:\Users\Dale\Documents\Arduino\Example15_readallbanks_my_changes/Example15_readallbanks_my_changes.ino:140: undefined reference to `RFID::getTemp()' c:/users/dale/appdata/local/arduino15/packages/sparkfun/tools/arm-none-eabi-gcc/8-2018-q4-major/bin/../lib/gcc/arm-none-eabi/8.2.1/../../../../arm-none-eabi/bin/ld.exe: C:\Users\Dale\Documents\Arduino\Example15_readallbanks_my_changes/Example15_readallbanks_my_changes.ino:155: undefined reference to `RFID::ReadingAllBanks(TMR_TagReadData*)' c:/users/dale/appdata/local/arduino15/packages/sparkfun/tools/arm-none-eabi-gcc/8-2018-q4-major/bin/../lib/gcc/arm-none-eabi/8.2.1/../../../../arm-none-eabi/bin/ld.exe: sketch\Example15_readallbanks_my_changes.ino.cpp.o: in function `setupNano(long)': C:\Users\Dale\Documents\Arduino\Example15_readallbanks_my_changes/Example15_readallbanks_my_changes.ino:289: undefined reference to `RFID::begin(Stream&)' c:/users/dale/appdata/local/arduino15/packages/sparkfun/tools/arm-none-eabi-gcc/8-2018-q4-major/bin/../lib/gcc/arm-none-eabi/8.2.1/../../../../arm-none-eabi/bin/ld.exe: C:\Users\Dale\Documents\Arduino\Example15_readallbanks_my_changes/Example15_readallbanks_my_changes.ino:299: undefined reference to `RFID::getVersion()' c:/users/dale/appdata/local/arduino15/packages/sparkfun/tools/arm-none-eabi-gcc/8-2018-q4-major/bin/../lib/gcc/arm-none-eabi/8.2.1/../../../../arm-none-eabi/bin/ld.exe: C:\Users\Dale\Documents\Arduino\Example15_readallbanks_my_changes/Example15_readallbanks_my_changes.ino:304: undefined reference to `RFID::stopReading()' c:/users/dale/appdata/local/arduino15/packages/sparkfun/tools/arm-none-eabi-gcc/8-2018-q4-major/bin/../lib/gcc/arm-none-eabi/8.2.1/../../../../arm-none-eabi/bin/ld.exe: C:\Users\Dale\Documents\Arduino\Example15_readallbanks_my_changes/Example15_readallbanks_my_changes.ino:321: undefined reference to `RFID::getVersion()' c:/users/dale/appdata/local/arduino15/packages/sparkfun/tools/arm-none-eabi-gcc/8-2018-q4-major/bin/../lib/gcc/arm-none-eabi/8.2.1/../../../../arm-none-eabi/bin/ld.exe: C:\Users\Dale\Documents\Arduino\Example15_readallbanks_my_changes/Example15_readallbanks_my_changes.ino:325: undefined reference to `RFID::setTagProtocol(unsigned char)' c:/users/dale/appdata/local/arduino15/packages/sparkfun/tools/arm-none-eabi-gcc/8-2018-q4-major/bin/../lib/gcc/arm-none-eabi/8.2.1/../../../../arm-none-eabi/bin/ld.exe: C:\Users\Dale\Documents\Arduino\Example15_readallbanks_my_changes/Example15_readallbanks_my_changes.ino:327: undefined reference to `RFID::setAntennaPort()' c:/users/dale/appdata/local/arduino15/packages/sparkfun/tools/arm-none-eabi-gcc/8-2018-q4-major/bin/../lib/gcc/arm-none-eabi/8.2.1/../../../../arm-none-eabi/bin/ld.exe: C:\Users\Dale\Documents\Arduino\Example15_readallbanks_my_changes/Example15_readallbanks_my_changes.ino:315: undefined reference to `RFID::setBaud(long)' c:/users/dale/appdata/local/arduino15/packages/sparkfun/tools/arm-none-eabi-gcc/8-2018-q4-major/bin/../lib/gcc/arm-none-eabi/8.2.1/../../../../arm-none-eabi/bin/ld.exe: sketch\Example15_readallbanks_my_changes.ino.cpp.o: in function `setup': C:\Users\Dale\Documents\Arduino\Example15_readallbanks_my_changes/Example15_readallbanks_my_changes.ino:129: undefined reference to `RFID::setRegion(unsigned char)' c:/users/dale/appdata/local/arduino15/packages/sparkfun/tools/arm-none-eabi-gcc/8-2018-q4-major/bin/../lib/gcc/arm-none-eabi/8.2.1/../../../../arm-none-eabi/bin/ld.exe: C:\Users\Dale\Documents\Arduino\Example15_readallbanks_my_changes/Example15_readallbanks_my_changes.ino:131: undefined reference to `RFID::setReadPower(short)' collect2.exe: error: ld returned 1 exit status exit status 1 Error compiling for board SparkFun RedBoard Artemis. This report would have more information with "Show verbose output during compilation" option enabled in File -> Preferences.
paulvha commented 3 years ago

it can not find the header-file ( .h). remove the original sparkfun library and just use mine. All what the original library had is still in my library. Then use the examples as they are.

regards, Paul

dyones7 commented 3 years ago

Ok thanks. I actually had 3 different libs, removed the two from Sparkfun and not it seems to compile fine. Like I said just digging into Arduino fun.

Thanks again, Dale

From: paulvha @.> Sent: Monday, April 26, 2021 10:02 AMTo: paulvha/ThingMagic @.>

Cc: Dale Yones @.>; Author @.> Subject: Re: [paulvha/ThingMagic] Sparkfun Artemis compatability? (#6)

it can not find the header-file ( .h). remove the original sparkfun library and just use mine. All what the original library had is still in my library. Then use the examples as they are.

regards, Paul

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/paulvha/ThingMagic/issues/6#issuecomment-826955712, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AT2XC7ATUPYT63TVKZZHF53TKWFABANCNFSM43R5ES5A.