I let this message through, I think it is possible that you actually
want the javapos rather than jPos. A common mistake given the poorly
(incorrectly?) named packages of javapos.
The above is why I think you might want to be asking this question to
Abdul Qavi Paracha wrote:
> hi,
> i've pegasus access control POS available. What i wanna do is read
> data from magnetic card as it swipes through POS (card reader). I am
> using PC-T100 bridge b/w Card reader and computer which converts
> RS-232 protocol into TCP/IP and vice versa. I've created a web
> interface (using java) for that card reader. Now i wanna read magnetic
> card data in my application.
'javapos'.
Does your web interface show the magstripe data?
>This possibly fits with jPos and I'm sure it would be possible to
> I've read ISO 8583 protocol and hve also executed ISOChannel example
> which sends ISOMsg to echo server, but i m getting no idea of how to
> get mag card data in my application when somebody swipes a card.
communicate with the device over TCP/IP using jPOS.
However the device is going to drive how you achieve what you want to do.
For instance, does the device wait for you to ask it to initiate a 'card
swipe' and then return the data read?
Or does it connect out to you when it sees a card has been swiped?
Either way is fine, but you will need to know the process protocol so
you can connect to the device or provide a server for it to connect to.
> Plz
> do help me
Not sure we can (yet), more detail is needed on your setup and perhaps
intent.
--
Mark
--
You received this message because you are subscribed to the "jPOS Users" group.
Please see http://jpos.org/wiki/JPOS_Mailing_List_Readme_first
To post to this group, send email to jpos-...@googlegroups.com
To unsubscribe, send email to jpos-users+...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/jpos-users
Please at least try to answer each of my questions.
One important question you need to answer is:-
Should you be asking this question on a javapos mailing list; do you
have the wrong project? It is possible that you do!
Abdul Qavi wrote:How does the device give you access to this data?
>> Does your web interface show the magstripe data?
>>
>
> No my web application (web application) does not show magstripe data, and
> actually it is what i want to do. I want to receive magstripe data as soon
> as somebody swipes a card.
What is the order of events in handling this device and it handling a card?
Please give us some hints of what this hardware does and how it wants to
>>> I've read ISO 8583 protocol and hve also executed ISOChannel example
>>> which sends ISOMsg to echo server, but i m getting no idea of how to
>>> get mag card data in my application when somebody swipes a card.
>> This possibly fits with jPos and I'm sure it would be possible to
>> communicate with the device over TCP/IP using jPOS.
>>
> yeah, i want my web application to communicate with the device (access
> controller card reader from Pegasus) over TCP/IP using jPOS, but don't know
> how to do this. Plz give me some hints, so that i could get start. I am
> totally jPOS newbie, and hve not played with it befor.
interact with you around a 'card swipe event'; then perhaps we can give
you hints.
Once more, please also check you are on the *right* mailing list.
Abdul Qavi wrote:Ok, good, welcome.
>> Should you be asking this question on a javapos mailing list; do you
>> have the wrong project? It is possible that you do!
>>
> Sir i am writing on jPOS mailing list as i think my problem can be solved by
> using jPOS.
Ok, so not a financial exchange, 'just' for access control / tracking?
>
> Here is complete scenario of my problem:
>
> I've purchased Card reader from Pegasus for access control (for the purpose
> of security). I've installed it on main gate of university. This card reader
> comes along with software, but i want to integrate that device with my own
> application. I actually want to implement my own business logic, which is
> not supported in the software that comes with that card reader.
>
So this is magstripe based card and not chip at all?
So this web application does not currently interact with anything and it
> What i've done so far is i've created web application using java servlets,
> and i want to get ISOMsg in my web application when anybody swipes the
> magstripe card through card reader.
is this you want to address by using jPos?
So do you configure the bridge connect out to a system on a port/ip address?
>
>
>
>> Abdul Qavi wrote:
>>>> Does your web interface show the magstripe data?
>>>>
>>> No my web application (web application) does not show magstripe data, and
>>> actually it is what i want to do. I want to receive magstripe data as
>> soon
>>> as somebody swipes a card.
>> How does the device give you access to this data?
>>
> My device (card reader) is connected with PC-T100 bridge which converts
> RS-232 protocol to TCP/IP.
Will you connect to it on a port it listens on?
Is the connection made persistent with message flowing with each swipe?
or
Is a connection (from bridge to you) made each time a swipe occurs?
Is the data flow one way - any form of response back to the card reader
- "ok, open door"?
The above detail will help know what jPos components are needed for this
> Now in my web application i want to receive that
> ISOMsg over TCP/IP, but don't know how to accomplish it using jPOS.
exchange and how data might flow.
As above we need to grasp what connections and data flows are need to be
>
>
>> What is the order of events in handling this device and it handling a card?
>>
> Sorry i m newbie to jPOS and i don't know. But i want to capture ISO 8583
> data in my web application when card swipe event occurs.
supported. JPos gives us the means to do many things, picking what we
have to do is the first step.
Abdul Qavi wrote:Please bear with me, I want to make sure I have this clear...
>>>> How does the device give you access to this data?
>>>>
>>> My device (card reader) is connected with PC-T100 bridge which converts
>>> RS-232 protocol to TCP/IP.
>> So do you configure the bridge connect out to a system on a port/ip
>> address?
>>
> yes i configure the bridge on a port/ip address
You set the bridge to listen on a port, then your web (jPos) application
will connects to the port on the bridge ready for the bridge to pass on
any swipe events that occur?
I wanted to clarify because...
This confused me, the bridge is listening, the web application will
> My web application is constantly listening on a specific port, and i want to
> capture the data when anybody swipes card through card reader.
connect and block on the read?
Do you have the message structure definition documented of these messages?
>
>> Is the data flow one way - any form of response back to the card reader
>> - "ok, open door"?
>>
> It is not one way. I want to send a response back to the card reader---
> e.g., i want to restrict people who have short attendance or who have not
> paid monthly fee, etc...
If all the above is accurate, then you will need to prepare and arrange:-
- Pick/make a Packager that defines the message structure - field
definitions and format, using the message definition (I hope you have)
***
Note this is the 'hardest' part of preparing to use jPos on a new
interface (message format), so take care, it will be time well spent.
***
- Pick/make a channel with the correct length format (number of bytes
and format)
- Then decide how you are going to run - jpos-ee might be a good way to
setup.
- There will be other steps, but...
- You 'sound' self sufficient and willing to learn, treat yourself to a
jPos Programmers guide, it will save us some time and effort and help
you get going too - jpos.org for that.
Web app and bridge can't both listen on their own ports you see, one has
to connect to the other, the direction does not matter and will be
dictated by the bridge (already programmed). The setup of your web app
connectivity to the bridge will be decided on this basis.
But you can get it? You will need it.
>> Do you have the message structure definition documented of these messages?
>>
> No i don't documented message structure yet.
'echo server'?
>
> What i've already done is that i just used echo server which sends back the
> same data that it receives.
> But now i want to capture fields of ISOMsg inYou need control of the code in this server, so you can change it - do
> server code. Please tell me the steps how can i do that???
you have that?
But...
I think I would be using the code above to connect to a bridge, getting
the Channel structure right and working on the Packager (with
documentation).
In this 'test' scenario the echo server is replacing the bridge, the
code above (without the send, unless the bridge needs a 'sign-on') is
the web app side of the exchange with the bridge.
Please realise that setting up a test that uses a different Channel (to
the bridge) and packager (to the bridge) is not getting you anything.
As an exercise in 'seeing' jPos work and finding out how the components
bolt together it is fine, but for this exercise you should be able to
work from the guide alone.
Please focus on getting the bridge documentation I said is key, without
it 'we' are going to struggle; and might already have failed.
Mark Salter wrote:I took a quick look at the device suppliers website. The messages their
> - the bridge sees a swipe event and sends a message out on it's
> connected port,
> - your application then deals with the message before
> returning a response
documentation shows being exchanged look like FSD messages to me, but
this will vary from RS-232 attached device to RS-232 attached device.
Of course the device connected to the PC-T100 dictates the message
exchange, with PC-T100 just acting as the RS-232 <> TCP/IP converter.
Which device type do you have connected to your PC-T100 Abdul, does it
talk ISO8583?
Good luck.