Giter Club home page Giter Club logo

Comments (9)

LanguidSmartass avatar LanguidSmartass commented on July 19, 2024

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.

pistoletov1974 avatar pistoletov1974 commented on July 19, 2024

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.

LanguidSmartass avatar LanguidSmartass commented on July 19, 2024

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.

LanguidSmartass avatar LanguidSmartass commented on July 19, 2024

Issue closed as more than 1 month passed after the last post.

from mdb-arduino-cashless.

Kirson75 avatar Kirson75 commented on July 19, 2024

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.

LanguidSmartass avatar LanguidSmartass commented on July 19, 2024

Can you please rephrase the last sentence? I don't quite get what you're trying to say.

from mdb-arduino-cashless.

Kirson75 avatar Kirson75 commented on July 19, 2024

from mdb-arduino-cashless.

mkrasselt1 avatar mkrasselt1 commented on July 19, 2024

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.

LanguidSmartass avatar LanguidSmartass commented on July 19, 2024

from mdb-arduino-cashless.

Related Issues (19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.