2015-03-16 05:17 AM
Hello,
I have no experience at all with micro controllers & only brief experience with wiring up electronics / & some low-level programming, so please accept my apologies up-front.
I have a need to create a device that:
a. Has ONE (1) incoming RS232 port
b. Has FOUR (4) separate outgoing RS232 ports
c. ''reads'' an incoming RS232 stream,
d. look at the first 2 Bytes of info
e. check for the ''address'' (2nd byte)
f. if it is addressed ''FF 01 .........'', forward the complete original data out PORT 1 ONLY
g. if it is addressed ''FF 02 .........'' re-address the data to ''FF 01 ........'' and forward the complete data out PORT 2 ONLY
h. if it is addressed ''FF 03 .........''
re-address the data to ''FF 01 ........'' and forward the complete data out PORT 3 ONLY
i. if it is addressed ''FF 04 .........''
re-address the data to ''FF 01 ........'' and forward the complete data out PORT 4 ONLY
Here is a drawing of this for those who are more ''visual'' like me.
https://communities.intel.com/servlet/JiveServlet/showImage/2-284311-243094/PelcoD---prototype.jpg
The baud rate is 9600, 8, N, 1 (no flow control), if that helps.
Is this possible with the STM32F103ZE?
If so, would anyone be willing to ''tutor'' me in learning how to get this done?
If not, would anyone be able to suggest a more suitable platform to achieve it?
Many thanks in advance,
duBe
2015-03-19 03:24 PM
Thanks Hal,
your advice about the Nucleo 103 is greatly appreciated.Yes, Clive1 has been amazingly helpful, as has Sapphire & all the other people who have contributed to my STEEP learning curve.Many thanks,duBe2015-03-22 03:17 PM
Hi all,
I've just placed an order for the following items:2 xhttp://au.rs-online.com/web/p/products/8029416/
2 xhttp://au.rs-online.com/web/p/products/7147686/
6 x I've also ordered the following RS-232 converter as it says it has 3 x receivers and 5 x transmitters, so I'm hoping that it will be able be used as a ONE-CHIP alternative to using 3 x MAX3232 chips??2 x I hope this will be enough to make 2 complete boards, just in case I muck-up somewhere & release the magic smoke genie.Does this look right?Will I need anything else?Many thanks in advance,duBe2015-03-22 05:35 PM
Will I need anything else ?
Yes. For starters you will need a development plan and a packaging design. From the parts list provided, I am guessing your plan is to prototype using the Nucleos on some sort of motherboard, then produce production versions with the 103 chips on a revised motherboard mounted in some kind of enclosure with connectors to the outside world. If you are concerned about smoking the 103 chips, you may need to mount them on a daughter board each. Without a defined plan and package design, recommending any additional parts is sort of a Delphi exercise. Cheers, Hal2015-03-22 10:32 PM
Thanks Hal (I think),
sounds like I'm in way over my head; I really don't understand much of what you advise, too smart by half for me.I'm gonna have to admit defeat & learn something a little less intelligent.Thanks to everyone who's tried to help me, I'm very grateful.duBe2015-03-23 05:19 AM
Hal seems to think you want to make something finished, polished to sell.
I think you want something to learn with but will work.The nuclei board looks good. It has the STM32 processor on and built-in alternative to JTAG already so unless you plan to sell them you don't need to buy the STM32 processors separately.But I don't like your choice of RS232 transceiver. The one you chose seems to be a TSSOP package, which has pins about 0.65 mm apart. These are difficult to solder.I strongly recommend that you go for DIP package ones, and buy as many of them as you need to do the job. I suggest RS 786-1041.The next thing is how to wire up the Nucleo board to the MAX3232.I suggest you use something like 159-5521 to mount everything on.You will need a couple of 254-6182 to link the two boards together.Hope this helps,Danish2015-03-25 02:42 PM
Hi duBe68,
I'm just up the road, well Sydney. Honestly, you can do this with a $5 maple-mini clone from ebay, a $2 - 4000 series mux IC and a veroboard. (and a handfull of 232 level converters if needed) No surface mount soldering, should be well within the capabilities of the average Joe that is keen to give it a try. Send me an email if you want to continue with this and we can go from there. Ben2015-03-31 02:29 PM
2015-03-31 02:33 PM
Thanks Ben,
I think it would be great to find an alternative learning experience & get something useful out of it as well.I can't find anywhere to send you an email though; I am pretty useless!Cheers,duBe2015-06-03 05:09 PM
Sorry for the late reply! If you are still working on this project Bennvenn at Hotmail.com