Serial Int Question [modified]
-
I have a serial interface on a device with 6 pins: 1 NC 2 0v 3 +12v 4 SClk 5 SData 6 0v Now I want to wire this to a serial Port on a PC, I have wired the 12v and 0v to a molex, but I need to work out were to wire SClk and SData, I'm guessing (on previous experience) that I should be wiring SClk to DTR and SDATA to RX on the RS232. I'm I warm or completely cold. BTW: The 12v and 0v and input supply voltages. -- modified at 9:02 Thursday 9th August, 2007 -- modified at 9:07 Thursday 9th August, 2007
Roger Irrelevant "he's completely hatstand"
-
I have a serial interface on a device with 6 pins: 1 NC 2 0v 3 +12v 4 SClk 5 SData 6 0v Now I want to wire this to a serial Port on a PC, I have wired the 12v and 0v to a molex, but I need to work out were to wire SClk and SData, I'm guessing (on previous experience) that I should be wiring SClk to DTR and SDATA to RX on the RS232. I'm I warm or completely cold. BTW: The 12v and 0v and input supply voltages. -- modified at 9:02 Thursday 9th August, 2007 -- modified at 9:07 Thursday 9th August, 2007
Roger Irrelevant "he's completely hatstand"
-
I have a serial interface on a device with 6 pins: 1 NC 2 0v 3 +12v 4 SClk 5 SData 6 0v Now I want to wire this to a serial Port on a PC, I have wired the 12v and 0v to a molex, but I need to work out were to wire SClk and SData, I'm guessing (on previous experience) that I should be wiring SClk to DTR and SDATA to RX on the RS232. I'm I warm or completely cold. BTW: The 12v and 0v and input supply voltages. -- modified at 9:02 Thursday 9th August, 2007 -- modified at 9:07 Thursday 9th August, 2007
Roger Irrelevant "he's completely hatstand"
Hi Roger, If yo have SClk & SData your serial is what is called synchronous (it uses a clock to sync). Unfortunately RS232 is Asynchronous (no clock - data bit widths are a fixed time & data begins with a start bit). I don't know how to connect synchrous serial to a PC - possibly you could do it with the parallel port by toggling the clock and data yourself, or you will need some sort of adaptor. Sorry its not good news, :sigh:
Ali
-
I have a serial interface on a device with 6 pins: 1 NC 2 0v 3 +12v 4 SClk 5 SData 6 0v Now I want to wire this to a serial Port on a PC, I have wired the 12v and 0v to a molex, but I need to work out were to wire SClk and SData, I'm guessing (on previous experience) that I should be wiring SClk to DTR and SDATA to RX on the RS232. I'm I warm or completely cold. BTW: The 12v and 0v and input supply voltages. -- modified at 9:02 Thursday 9th August, 2007 -- modified at 9:07 Thursday 9th August, 2007
Roger Irrelevant "he's completely hatstand"
Hi Roger, If yo have SClk & SData your serial is what is called synchronous (it uses a clock to sync, the data being read in on each clock pulse). Unfortunately RS232 is Asynchronous (no clock - data bit widths are a fixed time & data bytes begin with a start bit). I don't know how to connect synchronous serial to a PC - possibly you could do it with the parallel port by toggling the clock and data yourself, or you will need some sort of adaptor. Sorry its not good news, :sigh: (PS I've type this message twice as the first one got lost in the ether - so sorry its brief)
Ali
-
Hi Roger, If yo have SClk & SData your serial is what is called synchronous (it uses a clock to sync). Unfortunately RS232 is Asynchronous (no clock - data bit widths are a fixed time & data begins with a start bit). I don't know how to connect synchrous serial to a PC - possibly you could do it with the parallel port by toggling the clock and data yourself, or you will need some sort of adaptor. Sorry its not good news, :sigh:
Ali
Ali Yep, I had a niggling feeling is was synch and not async, oh well saves me bothering I will try and find some kind of adaptor.
Roger Irrelevant "he's completely hatstand"
-
Hi Roger, If yo have SClk & SData your serial is what is called synchronous (it uses a clock to sync, the data being read in on each clock pulse). Unfortunately RS232 is Asynchronous (no clock - data bit widths are a fixed time & data bytes begin with a start bit). I don't know how to connect synchronous serial to a PC - possibly you could do it with the parallel port by toggling the clock and data yourself, or you will need some sort of adaptor. Sorry its not good news, :sigh: (PS I've type this message twice as the first one got lost in the ether - so sorry its brief)
Ali
Ali, know of a good Sync/Async convertor?
Roger Irrelevant "he's completely hatstand"
-
I have a serial interface on a device with 6 pins: 1 NC 2 0v 3 +12v 4 SClk 5 SData 6 0v Now I want to wire this to a serial Port on a PC, I have wired the 12v and 0v to a molex, but I need to work out were to wire SClk and SData, I'm guessing (on previous experience) that I should be wiring SClk to DTR and SDATA to RX on the RS232. I'm I warm or completely cold. BTW: The 12v and 0v and input supply voltages. -- modified at 9:02 Thursday 9th August, 2007 -- modified at 9:07 Thursday 9th August, 2007
Roger Irrelevant "he's completely hatstand"
is this device providing SClk or accepting SClk ? is SData bidirectional, or do you need a one-way communication only ? if accepting SClk, uni-directional communication, and limited amount of data per second (say 100 upto 300 B/s) you could manage hooking it to some of the control lines of a serial port. But is sounds more like an I2C, an SPI or an SCI interface, and then you will not be able to attach it without some extra electronics. So you would have to find out more, and tell us or Google, before you can plan an interface strategy. :)
Luc Pattyn [Forum Guidelines] [My Articles]
this weeks tips: - make Visual display line numbers: Tools/Options/TextEditor/... - show exceptions with ToString() to see all information - before you ask a question here, search CodeProject, then Google
-
is this device providing SClk or accepting SClk ? is SData bidirectional, or do you need a one-way communication only ? if accepting SClk, uni-directional communication, and limited amount of data per second (say 100 upto 300 B/s) you could manage hooking it to some of the control lines of a serial port. But is sounds more like an I2C, an SPI or an SCI interface, and then you will not be able to attach it without some extra electronics. So you would have to find out more, and tell us or Google, before you can plan an interface strategy. :)
Luc Pattyn [Forum Guidelines] [My Articles]
this weeks tips: - make Visual display line numbers: Tools/Options/TextEditor/... - show exceptions with ToString() to see all information - before you ask a question here, search CodeProject, then Google
Luc Pattyn wrote:
is this device providing SClk or accepting SClk ?
Providing Clk
Luc Pattyn wrote:
is SData bidirectional, or do you need a one-way communication only ?
One way It's a Coin Validator (Money Controls, formerly Coin Controls) Sentinal unit. It has a parallel interface (that works with a credit control unit) and a serial interface which has a strange port on it (similar to a uk telephone socket, but fractionly different. The manual for this is here http://www.arcade-inferno.com/cabinet/Sentinel+Tech+Manual+V0.pdf[^] Cheers.
Roger Irrelevant "he's completely hatstand"
-
Ali, know of a good Sync/Async convertor?
Roger Irrelevant "he's completely hatstand"
Hi Roger, No I am afraid not, its the sort of thing I do all the time with a microprocessor - but I have never used an convertor. I even had a quick look for you at a couple of companies that might do one - but no joy. :sigh: I did find a USB convertor but I know nothing abaout it, link:- www.jovasolutions.com/hardware/tims0100_overview.htm Sorry, perhaps someone else can help, Good luck,
Ali
-
Luc Pattyn wrote:
is this device providing SClk or accepting SClk ?
Providing Clk
Luc Pattyn wrote:
is SData bidirectional, or do you need a one-way communication only ?
One way It's a Coin Validator (Money Controls, formerly Coin Controls) Sentinal unit. It has a parallel interface (that works with a credit control unit) and a serial interface which has a strange port on it (similar to a uk telephone socket, but fractionly different. The manual for this is here http://www.arcade-inferno.com/cabinet/Sentinel+Tech+Manual+V0.pdf[^] Cheers.
Roger Irrelevant "he's completely hatstand"
OK, I glimpsed through that manual, the interface part at least, and its "serial interface" is an I2C interface (they call it IIC). As such there are a couple of problems: - you need bidirectional lines for both SClk and SData; that would take the first diagram in paragraph 3.3 twice; and it would require two input and two output pins on the PC; that is exactly what is available as control pins on a serial port. - biggest worry is the PC (not) being able to succesfully receive data all the time; when the device speaks, it sends both SClk and SData at its own pace. The PC should feel every edge on those two inputs to establish good communication; PCs being busy doing all kinds of stuff, are not good at such real-time activities. So a true convertor (such as the Jova item) would be more than welcome; but then it seems too expensive. I would suggest you look for a cheaper convertor, either serial/I2C or USB/I2C (would be more valuable in the long run). :)
Luc Pattyn [Forum Guidelines] [My Articles]
this weeks tips: - make Visual display line numbers: Tools/Options/TextEditor/... - show exceptions with ToString() to see all information - before you ask a question here, search CodeProject, then Google
-
Hi Roger, No I am afraid not, its the sort of thing I do all the time with a microprocessor - but I have never used an convertor. I even had a quick look for you at a couple of companies that might do one - but no joy. :sigh: I did find a USB convertor but I know nothing abaout it, link:- www.jovasolutions.com/hardware/tims0100_overview.htm Sorry, perhaps someone else can help, Good luck,
Ali
Ali found this; http://en.wikipedia.org/wiki/I%C2%B2C[^], look at bottom of page for links to USB 2 I2C products. BTW, names Norm not Roger :)
Roger Irrelevant "he's completely hatstand"
-
OK, I glimpsed through that manual, the interface part at least, and its "serial interface" is an I2C interface (they call it IIC). As such there are a couple of problems: - you need bidirectional lines for both SClk and SData; that would take the first diagram in paragraph 3.3 twice; and it would require two input and two output pins on the PC; that is exactly what is available as control pins on a serial port. - biggest worry is the PC (not) being able to succesfully receive data all the time; when the device speaks, it sends both SClk and SData at its own pace. The PC should feel every edge on those two inputs to establish good communication; PCs being busy doing all kinds of stuff, are not good at such real-time activities. So a true convertor (such as the Jova item) would be more than welcome; but then it seems too expensive. I would suggest you look for a cheaper convertor, either serial/I2C or USB/I2C (would be more valuable in the long run). :)
Luc Pattyn [Forum Guidelines] [My Articles]
this weeks tips: - make Visual display line numbers: Tools/Options/TextEditor/... - show exceptions with ToString() to see all information - before you ask a question here, search CodeProject, then Google
Luc Thanks for all the information, I was way off mark thinking I could just attach this device straight into a serial port. Just for background information, I aquired the device from a Sega Mech Tech Aracde Machine (Circa 1989) the coin acceptor was connected onto the game board. I was hoping to reuse the coin acceptor after hooking it up and reading some manuals, I was guessing that the 'Serial Interface' was a true PC serial interface. Now I release this kind of device is plumbed into chip circuitry. I found a bit more into here: http://en.wikipedia.org/wiki/I%C2%B2C[^] Again thanks for you help.
Roger Irrelevant "he's completely hatstand"
-
Luc Thanks for all the information, I was way off mark thinking I could just attach this device straight into a serial port. Just for background information, I aquired the device from a Sega Mech Tech Aracde Machine (Circa 1989) the coin acceptor was connected onto the game board. I was hoping to reuse the coin acceptor after hooking it up and reading some manuals, I was guessing that the 'Serial Interface' was a true PC serial interface. Now I release this kind of device is plumbed into chip circuitry. I found a bit more into here: http://en.wikipedia.org/wiki/I%C2%B2C[^] Again thanks for you help.
Roger Irrelevant "he's completely hatstand"
Hi, you're welcome. It is a common mistake to think that anything called "serial interface" would fit the serial port of a PC, which implements just one kind of serial interface (technically it is an RS232C). The Wikipedia article describes the interface of your coin acceptor (that is barring possible historical evolution in I2C itself). :)
Luc Pattyn [Forum Guidelines] [My Articles]
this weeks tips: - make Visual display line numbers: Tools/Options/TextEditor/... - show exceptions with ToString() to see all information - before you ask a question here, search CodeProject, then Google
-
Hi, you're welcome. It is a common mistake to think that anything called "serial interface" would fit the serial port of a PC, which implements just one kind of serial interface (technically it is an RS232C). The Wikipedia article describes the interface of your coin acceptor (that is barring possible historical evolution in I2C itself). :)
Luc Pattyn [Forum Guidelines] [My Articles]
this weeks tips: - make Visual display line numbers: Tools/Options/TextEditor/... - show exceptions with ToString() to see all information - before you ask a question here, search CodeProject, then Google
Now it's down to finding a cheap USB 2 I2C convertor, the sucking the out the data. I suppose want I attempt is replacing the function of the Credit Control Board. The way I see it the Coin Validator is a dumb (black) box that sends out signals when a coin is placed into it. The Credit Control Board works out the coinage and totals and spits outs credits accordingly. So without a Credit Control Board, I left to hook up my own. All very interesting stuff when you get into the finer details :)
Roger Irrelevant "he's completely hatstand"
-
Now it's down to finding a cheap USB 2 I2C convertor, the sucking the out the data. I suppose want I attempt is replacing the function of the Credit Control Board. The way I see it the Coin Validator is a dumb (black) box that sends out signals when a coin is placed into it. The Credit Control Board works out the coinage and totals and spits outs credits accordingly. So without a Credit Control Board, I left to hook up my own. All very interesting stuff when you get into the finer details :)
Roger Irrelevant "he's completely hatstand"
Hi, if you are in to both electronics and microcontroller software, then the easiest way would be to buy some prototype or demo board for a microcontroller having an on-board serial port (RS232C!) and four or more programmable I/O pins (or a real I2C, but that is not really necessary since you can dedicate the entire microcontroller to watching those two input pins). There are lots of those around, most of them cheap, and their development tools most often are free. Connecting the coin thing to it, and adding some embedded software would be al that is required to get a real PC peripheral; pretty soon after that PC's with RS232C will become obsolete, and you will need a USB-to-RS232C cable, but these currently are rather cheap. If your idea of software development is strictly PC-based, and you are unfamiliar with embedded systems, it would be a challenge to get things working without having the observability and debugging tools you have in say Visual Studio... The choice is yours. Good luck!
Luc Pattyn [Forum Guidelines] [My Articles]
this weeks tips: - make Visual display line numbers: Tools/Options/TextEditor/... - show exceptions with ToString() to see all information - before you ask a question here, search CodeProject, then Google
-
Hi, if you are in to both electronics and microcontroller software, then the easiest way would be to buy some prototype or demo board for a microcontroller having an on-board serial port (RS232C!) and four or more programmable I/O pins (or a real I2C, but that is not really necessary since you can dedicate the entire microcontroller to watching those two input pins). There are lots of those around, most of them cheap, and their development tools most often are free. Connecting the coin thing to it, and adding some embedded software would be al that is required to get a real PC peripheral; pretty soon after that PC's with RS232C will become obsolete, and you will need a USB-to-RS232C cable, but these currently are rather cheap. If your idea of software development is strictly PC-based, and you are unfamiliar with embedded systems, it would be a challenge to get things working without having the observability and debugging tools you have in say Visual Studio... The choice is yours. Good luck!
Luc Pattyn [Forum Guidelines] [My Articles]
this weeks tips: - make Visual display line numbers: Tools/Options/TextEditor/... - show exceptions with ToString() to see all information - before you ask a question here, search CodeProject, then Google
Luc Pattyn wrote:
If your idea of software development is strictly PC-based, and you are unfamiliar with embedded systems, it would be a challenge to get things working without having the observability and debugging tools you have in say Visual Studio...
It is but I have used assembly in the past (wrote software for operating system many moons back), I'm not scared of a challange. The idea of a broad with programmable pins sound good, I'm I write in saying the software to program the chip is PICBASIC? Can you provide a link with an example of a board which would 'do' the job. Again Luc thanks for all your time you taken to answer questions. :beer:
Roger Irrelevant "he's completely hatstand"
-
Luc Pattyn wrote:
If your idea of software development is strictly PC-based, and you are unfamiliar with embedded systems, it would be a challenge to get things working without having the observability and debugging tools you have in say Visual Studio...
It is but I have used assembly in the past (wrote software for operating system many moons back), I'm not scared of a challange. The idea of a broad with programmable pins sound good, I'm I write in saying the software to program the chip is PICBASIC? Can you provide a link with an example of a board which would 'do' the job. Again Luc thanks for all your time you taken to answer questions. :beer:
Roger Irrelevant "he's completely hatstand"
Hi, I am not up-to-date on what is available from whom in this area, Microchip sure would be a candidate. You have to be careful about choice of programming language; I would be inclined to go with either assembly or C (or a subset, an embedded C, whatever they call it). PICBASIC might be an interpreted thing, and as such I can not judge it's speed without investiogating it. It would be disappointing if they made it very powerful and somewhat slow, so much so that it no longer can watch a few I/O pins, I don't know. If you feel up to it, go for it; if you think you made your final choice and want my opinion on it, you'll know how to reach me. :)
Luc Pattyn [Forum Guidelines] [My Articles]
this weeks tips: - make Visual display line numbers: Tools/Options/TextEditor/... - show exceptions with ToString() to see all information - before you ask a question here, search CodeProject, then Google
-
Ali found this; http://en.wikipedia.org/wiki/I%C2%B2C[^], look at bottom of page for links to USB 2 I2C products. BTW, names Norm not Roger :)
Roger Irrelevant "he's completely hatstand"
norm .net wrote:
BTW, names Norm not Roger
:-O:-O:-O:-O Just looked down at the bottom of your post, in a hurry, saw Roger and typed it! :-O:-O:-O:-O Soz So Peter, I read the other part of the thread and it looks like you have discovered it is I2C which is a good move forward. I would do it with a micro myself Stanley - its sounds like you are leaning that way, give it a go, micros are fun Joe! Have a great weekend Colin, :-D Regards,
Ali
-
norm .net wrote:
BTW, names Norm not Roger
:-O:-O:-O:-O Just looked down at the bottom of your post, in a hurry, saw Roger and typed it! :-O:-O:-O:-O Soz So Peter, I read the other part of the thread and it looks like you have discovered it is I2C which is a good move forward. I would do it with a micro myself Stanley - its sounds like you are leaning that way, give it a go, micros are fun Joe! Have a great weekend Colin, :-D Regards,
Ali
Thanks Margret ;)
Roger Irrelevant "he's completely hatstand"
-
Thanks Margret ;)
Roger Irrelevant "he's completely hatstand"
:laugh:
Ali