Comments (9)
Hello.
SIM900 has built-in HTTP handling functions, so it was much easier to read server responses.
I only needed the HTTP Code and a string representing available user funds.
Yes, you can also use standard TCP/IP socket connection and make a request, but you're gonna have to parse the entire TCP response, which includes a lot of headers in HTML syntax, such as ..., and it requires a bigger buffer ==> less available SRAM. SIM900 can do all of this by itself.
The idea initially was not to store funds on RFID cards, but on the remote server (that's another task to complete). The card is just an ID holder.
I had some thoughts of implementing account refilling via coin acceptor and/or bill validator of the VMC itself, but haven't done it yet. Didn't find anything similar in MDB 4.2 Specification either.
from mdb-arduino-cashless.
I think a lot about using rfid and where store funds on server or on card.Server is good idea - but if we have problems with connection? Another way is to use NFC cards. What do you think about it? We can store funds on card. I think to put change on card on the vmc. IMHO pure socket connection is lightweight than http - this is pure our data without any headers. We need to write our own socket server but this is really simple using java sockets. GPS trackers use pure socket connections. Http produce lot unnecessary trafic.
from mdb-arduino-cashless.
If we really have connection problems -- than do nothing. Having funds on the card can lead to a lot of issues described in this article http://cybergibbons.com/uncategorized/cashless-vending-fail-analysis-of-a-rfid-payment-system/
You didn't get it about http -- you don't have to implement anything except for simple AT commands wrapper when working with SIM900. I use Arduino (Atmega328P) and GPRS Shield (SIM900). I didn't write any socket.c/h libraries, all this functionality is built-in in SIM900. I'm only sending and receiving bytes via SoftwareSerial, that's all, SIM900 does all the job.
Though if you use Ethernet shield (Wiznet W5100 chip) or some WiFi interface then yes -- sockets are the right way.
from mdb-arduino-cashless.
Issue closed as more than 1 month passed after the last post.
from mdb-arduino-cashless.
Hi,
I am using part of your code and it works successfully on an old coffee machine. G-snack in the machine (it is also MDB protocol) all blocks the keyboard on the coffee machine.
from mdb-arduino-cashless.
Can you please rephrase the last sentence? I don't quite get what you're trying to say.
from mdb-arduino-cashless.
from mdb-arduino-cashless.
arduino blocking sounds like an loop going cracy, did you change anything on the hardware ? some transmission wires bad ? or did you change the software ?
i skiped using this project and implemented everthing new - but you error sounds like something i had in the early stages... length counter = -1 => Sending Overflow and stuff like that.
Start by Outputing all the recieved and send data to the console to spot the mistakes
from mdb-arduino-cashless.
from mdb-arduino-cashless.
Related Issues (19)
- Use on Arduino Mega HOT 3
- Is it posss
- Is it possible to get schematics ? HOT 1
- Please Help Me HOT 1
- Cannot compile HOT 6
- File Location HOT 12
- Credit show on display HOT 2
- undeclared vars HOT 3
- What version of VMC MDB protocol is implemented in this code HOT 1
- Webserver code HOT 3
- Arduino pin RX TX to MDB HOT 1
- Vmc_commands HOT 3
- Schematic HOT 14
- hello, i have a question HOT 9
- Command disorder HOT 5
- Is this example master or slave implementation of mdb HOT 1
- Wiring Arduino Uno to MDB Connector Molex HOT 3
- vmc never asks for min max price setup, keeps repeating setup step HOT 13
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mdb-arduino-cashless.