Re: [javacint] RS 232 and USB

85 views
Skip to first unread message

Ahmed Adnane

unread,
Apr 9, 2013, 5:53:48 AM4/9/13
to java...@googlegroups.com
Hi,



2013/4/9 wim vande casteele <jos...@gmail.com>
Hi,

First of all, I have no experience with electronics. But I have a question related to USB and RS232 of the EGS5 Module.
So we have acquired the EGS5 Dev kit [1] (http://shop.smartm2msolutions.com/developer-kits/58_mc-tech-egs5-java-developer-kit.html) which comes with an RS232 and USB port.
Everything is running fine, but now we want to connect [1] to a NFC reader [2] (this one: http://www.nfcstuff.com/gbp/store/ACR122_serial_RS232_SDK.html) which also has an RS232 port.
The problem is that both devices have a female RS232 port, so we can't connect them directly.

This is the pin configuration of [1]: http://wiim.be/upload/storage/egs5.PNG
This is the pin configuration of [2]: http://wiim.be/upload/storage/reader.PNG

And now my questions:
  1. To connect the 2 devices could we use these: http://www.uctronics.com/static/images/20130314/40pin-20cm-dupont-wire-254mm-male-male-jumper-cable-1388368b-800x800.jpg ? (note that this is just for developing environment and since we are 'normal' software developers our soldering skills are 0), if not what would be considered a good way to connect them?
 Yes, they seem convenient, but you have to check whether they stick well into the RS232 holes
  1. To connect the 2, do we need to connect it like following (note that both devices have their own power source):
    • [1] RxD <-> [2] TxD 
    • [1] TxD <-> [2] RxD
    • [1] GND <-> [2] GND
    • (not sure what to do with the Vcc pin?)
The Vcc pin is not used in the RS232 communication, but I think ideally is to have one power source for both devices so the GND can be common, I'm not sure of that, you still can try witth 2 different power sources   
  1. If we manage to connect the devices properly, could we just make connection by using ?:
    •    Connector.open("comm:com0;baudrate=9600;bitsperchar=8;stopbits=1;parity=none;autocts=on;autorts=on;blocking=on");
Here is your connection string: "comm:com0;baudrate=19200;bitsperchar=8;parity=none;stopbits=1;blocking=on;autocts=off;autorts=off" 
  1. If we manage to get 3) working, how could we 'catch' an event on the NFC reader (since we want the module to do something when a NFC card is read by the reader)?
What you can catch are messages sent throuth the RS232 interface, to do that, just implement a reading loop using DataInputStream object inside
  1. Would it be possible to connect our [1] to a Raspberry Pi using the USB connection (and let them communicate)?
I don't think so, USB port is not accessed in programming mode 

I don't except that you guys just give me the complete solution (but I wouldn't mind), some good reading material is also appreciated.

Thanks in advance!

--
javacint group - http://www.javacint.com/
---
You received this message because you are subscribed to the Google Groups "Cinterion Java enabled chips support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to javacint+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
ADNANE Ahmed

Joschka Thurner

unread,
Apr 9, 2013, 7:33:50 AM4/9/13
to java...@googlegroups.com
Hi,

for the rs232 connection you could also use something like this:

http://www.conrad-uk.com/ce/en/product/742272/D-SUB-Adapter-Gender-Changer-Malemale-Number-of-pins-9-Digitus-Content-1-Units
http://www.conrad-uk.com/ce/en/product/741854/Null-modem-D-SUB-adapter-Socketpin-Number-of-pins-9-Content-1-Units

if the two devices will work together as you intend will also depends on the API provided by the NFC reader.



Am Dienstag, 9. April 2013 08:27:18 UTC+2 schrieb wim vande casteele:
Hi,

First of all, I have no experience with electronics. But I have a question related to USB and RS232 of the EGS5 Module.
So we have acquired the EGS5 Dev kit [1] (http://shop.smartm2msolutions.com/developer-kits/58_mc-tech-egs5-java-developer-kit.html) which comes with an RS232 and USB port.
Everything is running fine, but now we want to connect [1] to a NFC reader [2] (this one: http://www.nfcstuff.com/gbp/store/ACR122_serial_RS232_SDK.html) which also has an RS232 port.
The problem is that both devices have a female RS232 port, so we can't connect them directly.

This is the pin configuration of [1]: http://wiim.be/upload/storage/egs5.PNG
This is the pin configuration of [2]: http://wiim.be/upload/storage/reader.PNG

And now my questions:
  1. To connect the 2 devices could we use these: http://www.uctronics.com/static/images/20130314/40pin-20cm-dupont-wire-254mm-male-male-jumper-cable-1388368b-800x800.jpg ? (note that this is just for developing environment and since we are 'normal' software developers our soldering skills are 0), if not what would be considered a good way to connect them?
  1. To connect the 2, do we need to connect it like following (note that both devices have their own power source):
    • [1] RxD <-> [2] TxD 
    • [1] TxD <-> [2] RxD
    • [1] GND <-> [2] GND
    • (not sure what to do with the Vcc pin?)
  1. If we manage to connect the devices properly, could we just make connection by using ?:
    •    Connector.open("comm:com0;baudrate=9600;bitsperchar=8;stopbits=1;parity=none;autocts=on;autorts=on;blocking=on");
  1. If we manage to get 3) working, how could we 'catch' an event on the NFC reader (since we want the module to do something when a NFC card is read by the reader)?
  1. Would it be possible to connect our [1] to a Raspberry Pi using the USB connection (and let them communicate)?

    I don't except that you guys just give me the complete solution (but I wouldn't mind), some good reading material is also appreciated.

    Thanks in advance!

    Reply all
    Reply to author
    Forward
    0 new messages