Hi Everyone, I have 3 arduino mega with xbee series 1 I use it to read RFID token and send to coordinator.
Coordinator is on arduino mega and is connected to ethernet shield.
I use ethernet shield to put access to database using http get.
The problem is when i put 3 cards on 3 readers not every access is written to database how can I synchronize reading cards that every access should be written into database. Please I need Your advice about how i could synchronize it.
The problem is when i put 3 cards on 3 readers not every access is written to database
You need to separate the issue of the coordinator receiving the data from the issue of doing something with the data. If, as seems likely, the data is lost because the incoming serial data buffer overflows, your options are limited.
Try disabling making GET requests. Just print to the serial port. If that results in all packets being received, then the issue is with how long it takes to make a GET request. There is not much you can do to speed that up.
One thing you can do, though, is have the reader Arduinos not send data until the coordinator is free to deal with the data.
Of course, without knowing how your XBees are configured, and what code you are running on the XBees, this is just speculation.
Hi ! Many thanks for Your answer unfortunetly i cant share the code because of my studies:(
I checked and every read card nr came to coordinator.
How i could make reader wait for coordinator finish job ? I use library xbee from andrewapp
both routers and coordinator are configured in api mode.