KeyDuino forum
Would you like to react to this message? Create an account in a few clicks or log in to continue.


Un échange d'information autour de la carte KeyDuino
 
HomeHome  Latest imagesLatest images  RegisterRegister  Log inLog in  

 

 Before using it, I have the following questions.

Go down 
2 posters
Go to page : 1, 2  Next
AuthorMessage
Stef de la rochelle
beginner
beginner



Messages : 29
Reputation : 0
Date d'inscription : 2017-11-16

Before using it, I have the following questions. Empty
PostSubject: Before using it, I have the following questions.   Before using it, I have the following questions. EmptyThu 16 Nov - 18:42

Hello,
Your KeyDuino system looks really great.
Before using it, I have the following questions.
With the keyDuino kit, is it possible to program a Tag so that it:
- display a diadoque box with a choice (Yes / No) on an NFC equipped smartphone
- and following the choice of him (smartphone) make a phone call on a specific phone number
- and get him the last known location of the phone
- and finally make him launch a URL on the WEB with this location data?

Do you already have an example of these types of programming?
If yes and if possible, could you give me the coordinates of the developer

And last question, or can I buy your great product.

Thank you in advance for your return

See you soon

Stef
Back to top Go down
MrStein
KeyDuino TEAM
MrStein


Messages : 85
Reputation : 4
Date d'inscription : 2015-10-10
Age : 30
Localisation : Lille, FRANCE

Before using it, I have the following questions. Empty
PostSubject: Re: Before using it, I have the following questions.   Before using it, I have the following questions. EmptyTue 21 Nov - 17:22

Bonjour Stef, désolé de la réponse tardive.
Pour ton projet, il faudra forcément développer une application mais il est en effet possible de réaliser l'ensemble des actions que tu souhaites réaliser.
Pour l'instant, avec les exemples de la librairie NDEF (P2P_send), tu sera en capacité de :
- renvoyer un URL
- faire un appel

pour ton application, ça sera plus difficile de combiner l'ensemble des actions pour arriver à ton résultat mais les bases sont là.
Back to top Go down
https://keyduino.forumsactifs.com
Stef de la rochelle
beginner
beginner



Messages : 29
Reputation : 0
Date d'inscription : 2017-11-16

Before using it, I have the following questions. Empty
PostSubject: Re: Before using it, I have the following questions.   Before using it, I have the following questions. EmptyTue 21 Nov - 18:27

Merci, je vais essayer. Ou puis-je acheter le kit ?
Back to top Go down
MrStein
KeyDuino TEAM
MrStein


Messages : 85
Reputation : 4
Date d'inscription : 2015-10-10
Age : 30
Localisation : Lille, FRANCE

Before using it, I have the following questions. Empty
PostSubject: Re: Before using it, I have the following questions.   Before using it, I have the following questions. EmptyTue 21 Nov - 18:30

Le kit est disponible sur ELECROW (https://www.elecrow.com/keyduino-p-1620.html) Wink
Back to top Go down
https://keyduino.forumsactifs.com
Stef de la rochelle
beginner
beginner



Messages : 29
Reputation : 0
Date d'inscription : 2017-11-16

Before using it, I have the following questions. Empty
PostSubject: Re: Before using it, I have the following questions.   Before using it, I have the following questions. EmptyTue 21 Nov - 18:38

Merci
Back to top Go down
Stef de la rochelle
beginner
beginner



Messages : 29
Reputation : 0
Date d'inscription : 2017-11-16

Before using it, I have the following questions. Empty
PostSubject: Re: Before using it, I have the following questions.   Before using it, I have the following questions. EmptyTue 21 Nov - 18:39

Pourriez-vous me mette en contact avec un développeur qui pourrait le realiser ce projet svp ?
Stef au 06 73 32 63 77@
Back to top Go down
MrStein
KeyDuino TEAM
MrStein


Messages : 85
Reputation : 4
Date d'inscription : 2015-10-10
Age : 30
Localisation : Lille, FRANCE

Before using it, I have the following questions. Empty
PostSubject: Re: Before using it, I have the following questions.   Before using it, I have the following questions. EmptyWed 22 Nov - 8:25

Actuellement je suis en déplacement mais je reviens en fin de semaine, malheureusement je ne connais personne qui est réellement orienté coté application...
@Raymond Borenstein, tu connais quelqu'un?
Back to top Go down
https://keyduino.forumsactifs.com
Stef de la rochelle
beginner
beginner



Messages : 29
Reputation : 0
Date d'inscription : 2017-11-16

Before using it, I have the following questions. Empty
PostSubject: Re: Before using it, I have the following questions.   Before using it, I have the following questions. EmptySun 3 Dec - 11:49

Bonjour,
Je viens de recevoir mon KeyDuino (qui a un super look merci), et suivi les instructions pour démarrer du getting_started_french.pdf.
L’initialisation et l’identification des tag du kit fonctionne très bien. (Voyant vers, beep et Tag found: 04ca8662ca4880). Pas peu fière :-))
J’ai téléchargé et installé la bibliothèque NDEF dans C:\Appli\Arduino\libraries\KeyDuino.
Pour lire un autre Tag NCF, j’ai chargé File > Examples > KeyDuino > NDEF > Read_tag mais cela fait l’erreur de compilation pour la carte suivante :
Arduino : 1.8.5 (Windows 7), Carte : "Arduino Leonardo"
C:\Appli\Arduino\libraries\KeyDuino\KeyDuino.cpp: In member function 'uint8_t KeyDuino::mifareclassic_WriteNDEFURI(uint8_t, uint8_t, const char*)':
C:\Appli\Arduino\libraries\KeyDuino\KeyDuino.cpp:716:56: warning: narrowing conversion of '(((int)len) + 5)' from 'int' to 'uint8_t {aka unsigned char}' inside { } [-Wnarrowing]
uint8_t sectorbuffer1[16] = {0x00, 0x00, 0x03, len + 5, 0xD1, 0x01, len + 1, 0x55, uriIdentifier, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
C:\Appli\Arduino\libraries\KeyDuino\KeyDuino.cpp:716:77: warning: narrowing conversion of '(((int)len) + 1)' from 'int' to 'uint8_t {aka unsigned char}' inside { } [-Wnarrowing]
uint8_t sectorbuffer1[16] = {0x00, 0x00, 0x03, len + 5, 0xD1, 0x01, len + 1, 0x55, uriIdentifier, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
C:\Appli\Arduino\libraries\KeyDuino\NdefMessage.cpp: In constructor 'NdefMessage::NdefMessage(const byte*, int)':
C:\Appli\Arduino\libraries\KeyDuino\NdefMessage.cpp:48:30: warning: left shift count >= width of type
((0xFF & data[++index]) << 24)
C:\Appli\Arduino\libraries\KeyDuino\NdefMessage.cpp:49:32: warning: left shift count >= width of type
| ((0xFF & data[++index]) << 16)
C:\Appli\Arduino\libraries\KeyDuino\snep.cpp: In member function 'int16_t SNEP::read(uint8_t*, uint8_t, uint16_t)':
C:\Appli\Arduino\libraries\KeyDuino\snep.cpp:83:31: warning: left shift count >= width of type
uint32_t length = (buf[2] << 24) + (buf[3] << 16) + (buf[4] << Cool + buf[5];
C:\Appli\Arduino\libraries\KeyDuino\snep.cpp:83:48: warning: left shift count >= width of type
uint32_t length = (buf[2] << 24) + (buf[3] << 16) + (buf[4] << Cool + buf[5];
C:\Users\sabboud\AppData\Local\Temp\ccLe5QPv.ltrans3.ltrans.o: In function `__static_initialization_and_destruction_0':
C:\Appli\Arduino\libraries\KeyDuino\examples\NDEF\examples\ReadTag/ReadTag.ino:17: undefined reference to `PN532_I2C::PN532_I2C(TwoWire&)'
collect2.exe: error: ld returned 1 exit status
exit status 1
Erreur de compilation pour la carte Arduino Leonardo

Pour info voici le programme ReadTag.ino
#if 0
#include <SPI.h>
#include <PN532_SPI.h>
#include <PN532.h>
#include <NfcAdapter.h>

PN532_SPI pn532spi(SPI, 10);
NfcAdapter nfc = NfcAdapter(pn532spi);
#else

#include <Wire.h>
#include <PN532_I2C.h>
#include <PN532.h>
#include <NfcAdapter.h>

PN532_I2C pn532_i2c(Wire);
NfcAdapter nfc = NfcAdapter(pn532_i2c);
#endif

void setup(void) {
Serial.begin(9600);
Serial.println("NDEF Reader");
nfc.begin();
}

void loop(void) {
Serial.println("\nScan a NFC tag\n");
if (nfc.tagPresent())
{
NfcTag tag = nfc.read();
tag.print();
}
delay(5000);
}

Qu’en pensez-vous ?
Back to top Go down
MrStein
KeyDuino TEAM
MrStein


Messages : 85
Reputation : 4
Date d'inscription : 2015-10-10
Age : 30
Localisation : Lille, FRANCE

Before using it, I have the following questions. Empty
PostSubject: Re: Before using it, I have the following questions.   Before using it, I have the following questions. EmptySun 3 Dec - 15:13

Merci pour tes commentaires!
Pour utiliser les librairies de NDEF, il faut faire un petit changement comme keyduino utilise une communication HSU et non SPI. Je suis en train de réadapter les sketch pour qu'ils soient tous compatible Wink

En attendant, essaye donc le code suivant:

Code:
/*
  This sketch allows a simple communication between KeyDuino and a NFC smartphone through NDEF.
  Author: Pierre CHARLIER
  Compatible with KeyDuino 5.1
  Join http://keyduino.forumsactifs.com/ to ask your questions, suggest your ideas, and show your projects!
*/

#include <KeyDuino.h>
#include "snep.h"
#include "NdefMessage.h"

KeyDuino keyDuino;
SNEP nfc(keyDuino);
uint8_t ndefBuf[128];

String URI = "http://github.com/CITCEuraRFID/KeyDuino"; //Website URL
//String URI = "tel:0600000000"; //Phone number
//String URI = "mailto:keyduino@outlook.com"; //Email address

void setup() {
  Serial.begin(115200);
  Serial.println("Peer to peer");
}

void loop() {
  Serial.println("Send a message to Peer");

  NdefMessage message = NdefMessage();
  message.addUriRecord(URI);


  int messageSize = message.getEncodedSize();
  if (messageSize > sizeof(ndefBuf)) {
    Serial.println("ndefBuf is too small");
    while (1) {
    }
  }

  message.encode(ndefBuf);
  if (0 >= nfc.write(ndefBuf, messageSize)) {
    Serial.println("Failed");
  } else {
    Serial.println("Success");
  }

  delay(3000);
}

Si ça ne marche pas, en premier temps il faudrait être sûr que ton telephone est compatible. Pour ça utilise le sketch hce_unlock et passe ton téléphone, s'il est compatible, il va te renvoyer un message sur le terminal.
Back to top Go down
https://keyduino.forumsactifs.com
Stef de la rochelle
beginner
beginner



Messages : 29
Reputation : 0
Date d'inscription : 2017-11-16

Before using it, I have the following questions. Empty
PostSubject: Re: Before using it, I have the following questions.   Before using it, I have the following questions. EmptySun 3 Dec - 15:40

Merci, je viens de copie le code et il compile bien.
que fait-il ? car lorque j'approche vos tag ou un autre tag achetez chez amazon, il n'y a aucun reusltat dans le monitor de serie.
Back to top Go down
MrStein
KeyDuino TEAM
MrStein


Messages : 85
Reputation : 4
Date d'inscription : 2015-10-10
Age : 30
Localisation : Lille, FRANCE

Before using it, I have the following questions. Empty
PostSubject: Re: Before using it, I have the following questions.   Before using it, I have the following questions. EmptySun 3 Dec - 15:51

Alors dans l'état ce sketch permet d'ouvrir une page web (http://github.com/CITCEuraRFID/KeyDuino) quand tu passes un smartphone NFC sur le lecteur (attention, certains smartphones comme les iphones ne sont pas compatibles).

si tu veux changer l'action à faire, commente / décommente ce que tu veux ici:
String URI = "http://github.com/CITCEuraRFID/KeyDuino"; //Website URL
//String URI = "tel:0600000000"; //Phone number
//String URI = "mailto:keyduino@outlook.com"; //Email address
Back to top Go down
https://keyduino.forumsactifs.com
Stef de la rochelle
beginner
beginner



Messages : 29
Reputation : 0
Date d'inscription : 2017-11-16

Before using it, I have the following questions. Empty
PostSubject: Re: Before using it, I have the following questions.   Before using it, I have the following questions. EmptySun 3 Dec - 19:22

Merci pour l'explication car j'ai essayé de commenter et décomenter et mon smartphone m'envoie toujours sur le http://github.com/CITCEuraRFID/KeyDuino alors que je l'ai changé String URI par https://www.google.fr/ ... mais bon .
Existe-t-il le sketch pour écrire cette string URI dans un TAG ?
A ton avis combien de temps il te faudra pour réadapter les sketch avec 'SPI' pour qu'ils soient tous compatible librairies de NDEF ?
Merci encore de ton aide et a bientôt .. bonne soirée de la rochelle
Back to top Go down
MrStein
KeyDuino TEAM
MrStein


Messages : 85
Reputation : 4
Date d'inscription : 2015-10-10
Age : 30
Localisation : Lille, FRANCE

Before using it, I have the following questions. Empty
PostSubject: Re: Before using it, I have the following questions.   Before using it, I have the following questions. EmptySun 3 Dec - 19:25

Tu peux m'envoyer ton code?
Normalement ça ne prend pas beaucoup de temps mais si tu veux je peux en traiter certains en priorité Smile
Back to top Go down
https://keyduino.forumsactifs.com
Stef de la rochelle
beginner
beginner



Messages : 29
Reputation : 0
Date d'inscription : 2017-11-16

Before using it, I have the following questions. Empty
PostSubject: Re: Before using it, I have the following questions.   Before using it, I have the following questions. EmptySun 3 Dec - 20:36

Merci Shocked ne vous inquiétez pas cela n’est pas urgent.
Pour info mes priorités est d’avoir un sketsh pour ouvrir un URL www.google.fr et 5 seconde après appeler le 06000000 et un autre pour écrire ce premier sketsh sur une 20 de Tag NFC pour une invitation digital pour les fêtes.
Sinon, voici mon code que j’ai modifié, televerser dans le KeyDouino qui m’ouvre sur mon Smartphone toujours le http://github.com/CITCEuraRFID/KeyDuino. Je comprends pas …
Encore merci de ton aide.

/*
This sketch allows a simple communication between KeyDuino and a NFC smartphone through NDEF.
Author: Pierre CHARLIER
Compatible with KeyDuino 5.1
Join https://keyduino.forumsactifs.com/ to ask your questions, suggest your ideas, and show your projects!
*/

#include <KeyDuino.h>
#include "snep.h"
#include "NdefMessage.h"

KeyDuino keyDuino;
SNEP nfc(keyDuino);
uint8_t ndefBuf[128];

String URI = "https://www.google.fr/"; //Website URL
//String URI = "http://github.com/CITCEuraRFID/KeyDuino"; //Website URL
//String URI = "tel:0600000000"; //Phone number
//String URI = "tel:0600000000"; //Phone number
//String URI = "mailto:keyduino@outlook.com"; //Email address

void setup() {
Serial.begin(115200);
Serial.println("Peer to peer");
}

void loop() {
Serial.println("Send a message to Peer");

NdefMessage message = NdefMessage();
message.addUriRecord(URI);


int messageSize = message.getEncodedSize();
if (messageSize > sizeof(ndefBuf)) {
Serial.println("ndefBuf is too small");
while (1) {
}
}

message.encode(ndefBuf);
if (0 >= nfc.write(ndefBuf, messageSize)) {
Serial.println("Failed");
} else {
Serial.println("Success");
}

delay(3000);
}
Back to top Go down
MrStein
KeyDuino TEAM
MrStein


Messages : 85
Reputation : 4
Date d'inscription : 2015-10-10
Age : 30
Localisation : Lille, FRANCE

Before using it, I have the following questions. Empty
PostSubject: Re: Before using it, I have the following questions.   Before using it, I have the following questions. EmptySun 3 Dec - 20:59

C'est bizarre normalement ça devrait aller...
On est bien d'accord que tu poses directement le smarphone sur le keyduino et pas le tag? (De smartphone à keyduino)
Si tu cherches juste à changer le contenu de ton tag c'est un autre sketch à utiliser (write tag).
Back to top Go down
https://keyduino.forumsactifs.com
Stef de la rochelle
beginner
beginner



Messages : 29
Reputation : 0
Date d'inscription : 2017-11-16

Before using it, I have the following questions. Empty
PostSubject: Re: Before using it, I have the following questions.   Before using it, I have the following questions. EmptySun 3 Dec - 22:07

Oui et c’est pire regard la photo quand j’approche mon Smartphone sur l’antenne du keyduino il réduit mon écran et écrit sur le tel en gros « Appuyer pour transfere » . On dirait qu’il est programmé que pour faire « Send a message to Peer » blizzard !!!
Et le sketsh WriteTag fait l’erreur suivante quand je souhaite le televerser …alors je suis bloqué
Non utilisé : C:\Appli\Arduino\libraries\KeyDuino
libraries\PN532\snep.cpp.o (symbol from plugin)Sad.text+0x0): first defined here
collect2.exe: error: ld returned 1 exit status
exit status 1
Erreur de compilation pour la carte Arduino Leonardo
Back to top Go down
Stef de la rochelle
beginner
beginner



Messages : 29
Reputation : 0
Date d'inscription : 2017-11-16

Before using it, I have the following questions. Empty
PostSubject: Re: Before using it, I have the following questions.   Before using it, I have the following questions. EmptySun 3 Dec - 22:08

Before using it, I have the following questions. Img_4111
Back to top Go down
MrStein
KeyDuino TEAM
MrStein


Messages : 85
Reputation : 4
Date d'inscription : 2015-10-10
Age : 30
Localisation : Lille, FRANCE

Before using it, I have the following questions. Empty
PostSubject: Re: Before using it, I have the following questions.   Before using it, I have the following questions. EmptyMon 4 Dec - 7:42

Bon déjà on va regarder pourquoi write tag marche pas. On dirait qu'il y a un soucis avec l'installation de la librairie.
Est ce que tu peux vérifier si tu as bien la démarche d'installation ici : https://youtu.be/KFksSNrhAjw
Back to top Go down
https://keyduino.forumsactifs.com
Stef de la rochelle
beginner
beginner



Messages : 29
Reputation : 0
Date d'inscription : 2017-11-16

Before using it, I have the following questions. Empty
PostSubject: Re: Before using it, I have the following questions.   Before using it, I have the following questions. EmptyMon 4 Dec - 15:50

Merci, je ne connaissais pas cette vidéo, j'ai suivi le doc getting_started_french.pdf.
Je me propose de refaire l'installation des outils comme explicité dans cette vidéo ce soir et t'informer si les pb persistes ou pas.
A très vite
Cordialement Stef de La Rochelle
Back to top Go down
MrStein
KeyDuino TEAM
MrStein


Messages : 85
Reputation : 4
Date d'inscription : 2015-10-10
Age : 30
Localisation : Lille, FRANCE

Before using it, I have the following questions. Empty
PostSubject: Re: Before using it, I have the following questions.   Before using it, I have the following questions. EmptyMon 4 Dec - 15:58

Normalement le doc devrait fonctionner correctement mais je pense que la lib NDEF n'est pas bien mise dans les librairies, éventuellement si tu me fais une capture d'écran je vais pouvoir te dire ça Wink
Back to top Go down
https://keyduino.forumsactifs.com
Stef de la rochelle
beginner
beginner



Messages : 29
Reputation : 0
Date d'inscription : 2017-11-16

Before using it, I have the following questions. Empty
PostSubject: Re: Before using it, I have the following questions.   Before using it, I have the following questions. EmptyMon 4 Dec - 21:13

Comme proposé, j’ai refait mon installation des librairies KeyDuino et NDEF conforment aux instructions est c’est parfait, merci de votre solution)
Cf Capture de mes lib
Le sketch « Examples > KeyDuino > tag_identification» se televerse bien dans la carte et renvoie bien les 2 identifiants des 2 Tag « KeyDuino » fournie avec la carte électronique programmable
Le sketch « Examples > KeyDuino > NDEF > read_tag » se televerse bien dans la carte et renvoie bien les 2 NDEF Record des 2 Tag « KeyDuino » fournie avec la carte
Le sketch « Examples > KeyDuino > NDEF > write_tag » avec un nouveau URL https://www.google.fr/ se televerse bien dans la carte et me permet bien de modifier les 2 Tag « KeyDuino » fournie avec la carte.
Mais ces 3 sketchs ne marchent pas avec les Tag que j’ai acheté chez whiztags … domage ;-)
Avec NCF Tools (appli sur mon tel), les 2 Tag « KeyDuino » fournies avec la carte électronique programmable sont de type : ISO 14443-3A (MXP MIFARE Ultralight NTAG213) et les 10 Tag que j’ai acheté chez whiztags sont de type : ISO 14443-3A (Innovision R&T Jewel – Topaz 512)
Pour plus d’info sur les Tag que j’ai acheté chez whiztags, voir : https://www.whiztags.com/products/topaz-512-10-pack-with-free-bonus-tag-and-free-nfc-enabled-keychain)
Pourquoi et que faire pour utiliser mes 10 Tag que j’ai achetés chez whiztags ? et si pas possible ou et quel type de Tag je dois acheter ?
Autre interrogation, l’ensemble des sketchs « Examples > NDEF > ReadtTag » qui utilise #include <SPI.h>, <PN532_SPI.h>, <PN532.h> et <NfcAdapter.h> ne passent pas la vérification et fait des erreurs de compilation pour la carte Arduino Leonardo car il s’arret sur « fatal error: PN532_I2C.h: No such file or directory » . Pourquoi ?
Back to top Go down
Stef de la rochelle
beginner
beginner



Messages : 29
Reputation : 0
Date d'inscription : 2017-11-16

Before using it, I have the following questions. Empty
PostSubject: Re: Before using it, I have the following questions.   Before using it, I have the following questions. EmptyMon 4 Dec - 21:15

Before using it, I have the following questions. Captur11
Back to top Go down
Stef de la rochelle
beginner
beginner



Messages : 29
Reputation : 0
Date d'inscription : 2017-11-16

Before using it, I have the following questions. Empty
PostSubject: Re: Before using it, I have the following questions.   Before using it, I have the following questions. EmptyMon 4 Dec - 22:43

Re bonjour,
Tu disais que pour utiliser les librairies de NDEF, il faut faire un petit changement comme keyduino utilise une communication HSU et non SPI. Tu es en train de réadapter les sketch pour qu'ils soient tous compatible … et tu m’a demandé ma priorité, la voici :
P2P_Send
ReadTag
WriteTagMultipleRecords
Quand penses-tu pouvoir les mettre à disposition ?
Back to top Go down
MrStein
KeyDuino TEAM
MrStein


Messages : 85
Reputation : 4
Date d'inscription : 2015-10-10
Age : 30
Localisation : Lille, FRANCE

Before using it, I have the following questions. Empty
PostSubject: Re: Before using it, I have the following questions.   Before using it, I have the following questions. EmptyTue 5 Dec - 7:14

Pour les tags le site est hs, mais il est probable que ce soit un soucis de taille des données. Je te dis quoi quand il sera accessible.
P2P send normalement c'est le dernier exemple de code que j'ai posté.
ReadTag c'est l'exemple read_tag dans la librairie keyduino>ndef.
Le dernier exemple je peux faire ça pour ce week end.
Bye ,
Pierre
Back to top Go down
https://keyduino.forumsactifs.com
Stef de la rochelle
beginner
beginner



Messages : 29
Reputation : 0
Date d'inscription : 2017-11-16

Before using it, I have the following questions. Empty
PostSubject: Re: Before using it, I have the following questions.   Before using it, I have the following questions. EmptyThu 7 Dec - 17:11

Merci, j'attend to go pour récupérer la mise a jours des derniers exemple de la librairie keyduino>ndef.
tu les postes bien sur GITHUB de keyduino: https://github.com/CITCEuraRFID/KeyDuino sinon ou ?
Back to top Go down
Sponsored content





Before using it, I have the following questions. Empty
PostSubject: Re: Before using it, I have the following questions.   Before using it, I have the following questions. Empty

Back to top Go down
 
Before using it, I have the following questions.
Back to top 
Page 1 of 2Go to page : 1, 2  Next
 Similar topics
-
» Before using it, I have the following questions.

Permissions in this forum:You cannot reply to topics in this forum
KeyDuino forum :: KeyDuino informations & questions :: SOFTWARE questions & informations-
Jump to: