📜 ⬆️ ⬇️

STC Metrotek. Part 2. Bercut-MMT and the rake race


The last time I stopped the story is that we ventured to make our own modular device, so as not to tie the development to third-party solutions, such as iPAQ handhelds, which had long been out of the market and eventually ousted by smartphones.


So, 2005-2006.


Usually the cycle of creating a new piece of iron in the company took six months - from the idea to the first mass production of aka mass production. By the way, the complexity of the upcoming development did not scare us at all. No wonder we chose the slogan "Challenges - simple solutions!". Especially since, as the main developer of hardware considered, if there is an FPGA in the system, then any hardware problems can be solved in a “software” way (for example, if the design of the board made a mistake with the purpose of the legs).


OK, the decision is made - and it started! Agreed TK: general requirements, form factor, approximate constructive, structural scheme. Foreign competitors (Sunrise Telecom, Anritsu etc.) were dominated by a fixed configuration or, at most, a configuration with one replaceable module. We decided that there would be two replaceable measuring modules in our device and assumed that we would first release three types of boards: E1 / PCM, Datacom, Gigabit Ethernet.


Since the development experience for the ARM processor of the Intel PXA250 family was fully available - just such a processor was installed in iPAQ handhelds - then Intel PXA270 was chosen as the core of the control platform (later Intel gave these processors to the company Marvell), especially since the pilot fee was earned almost immediately and without any problems.


This is how the pilot looked, where in a couple of days with the help of a rope loop and a stick of jtag and openocd, the bootloader and linux could be launched, simultaneously pointing out Intel's flaws in the documentation.


View from the processor:




View from the side of the comb for connecting peripherals:



But choosing and raising the CPU is not even half the battle, but a maximum of one tenth. Because there are peripheral devices, such as the controller for power management and battery charging, audio-codec, ethernet, usb, etc., embedded in the processor or stand-alone.


To avoid errors at the level of the PCB layout, we made an "epoch-making" decision to do the digital signal routing through FPGA and CPLD chips and this is what happened when looking at the first version of the device from the programmer's point of view:




As you can easily figure out, almost all peripheral components are connected to the central processor via FPGA (FPGA and CPLD): display, touch-panel, audio, keyboard, LAN-ports, removable measurement modules, and even compact flash. And to manage the power and charge of the NiMh battery, they connected a separate ATMega-based controller, which implemented the smart battery functions.


(Let me remind you that it was ten years ago and we knew about specialized chips for charging and power control, but for some reason we didn’t trust them much. Now we can safely admit that yes, they were wrong. Not for nothing that companies that produce such chips spend on the development of several years. Now we have become smarter and do not invent the bicycle.)


And here is the resulting monster - the main board of the device:



To connect plug-in modules, its own data exchange and control protocol was invented, and the physical interface was executed in the reduced PCI slot form factor:



Above and below - protective panels, so that curious users do not pick off unnecessary details from the board, as it seemed to them.


Do I have to say that the device turned out to be mega-complex both in development and accompanied? In addition to the measurement programs, many crutches and ropes of the subsystems had to be developed:



But universally and insured from almost any errors in the layout. People never do that!


Oh, how much simpler our world was before we had to rush into the development of complex systems.


In addition to the FPGA installed on board (on the motherboard), each plug-in module also has its own FPGA, in which the real-time measurement logic is implemented and which cannot be done in our business, unlike the motherboard. The latter, by the way, has since undergone several reincarnations and has become an order of magnitude simpler and more reliable.


And in new versions, we didn’t pervert it like this and didn’t reinvent the wheel: USB was used for exchange with interchangeable modules, the processor board was taken ready-made using the SO-DIMM format, the volitional decision was abandoned by the special processors for monitoring and charging the batteries and switched to standard BQ microchips from Texas Instruments and happiness came.


As M. Zhvanetsky said in one of his miniatures: “but there is experience!”, And we try not to step on such a rake.


And if the system turned out to be so complicated as in our example, then, most likely, it was designed incorrectly.


To be continued.


')

Source: https://habr.com/ru/post/264341/


All Articles