Good day, dear Habrazhiteli!
A lot of time has flown by since my last publication and enough projects have already been completed. As usual, after the publication we received a lot of proposals for the development of various degrees of seriousness. These are trackers-watches for children, car trackers based on the Raspberry Pi, unknown devices subject to NDA pre-signing and other gadgets. Unfortunately, for a number of reasons, the share of projects that are starting up is very low;
Once a non-core proposal was received for the purchase and delivery of a batch of mini-routers from China with the function of organizing a WiFi-Ethernet bridge. Those who are interested in what came out of this please under the cat.
So, there is a request for delivery of a batch of routers of 1000 pieces in size - we proceed to search.
')
For orders in daily work, we use the well-known resource
www.taobao.com if you need to purchase something ready or
www.1688.com (Chinese version
www.alibaba.com ) if you need to purchase samples,
install a lot from the manufacturer or order services.
A quick overview gave 2 main bidders for the supply: Vonets VAR11N (price from 60rmb / pc from 500 pieces) and the well-known TP-LINK TL-WR802N (price from 61rmb / pc from 500 pieces). The basic requirements correspond, the price is acceptable - we buy samples for testing. Upon receipt, we parse, analyze for compliance with customer requirements and ship for approval.


The customer liked the samples of routers, but during the elaboration of the final design innovations were formulated. It is required to use as a power supply + 12V, to change the dimensions of the printed circuit board, and also to realize the possibility of direct soldering into the twisted pair board in order to save space.
The preliminary assessment that increasing the board area and adding DC-DC + 12V -> + 5V is not a difficult task was soon confirmed. One of the positions of the router manufacturer's catalog colorfully reported on the possibility of modifying routers for acceptable from 45rmb / pc for a batch of 500 pieces.

We formulate a technical task and request possible conditions from the manufacturer. In the preliminary correspondence, the project was decided easily and simply, but in any case it is necessary to visit the factory. Therefore, we equip the delegation, accompanied by an ethnic Chinese translator, and move forward, it’s good to get 20 minutes by taxi. Here an event happened that changed the whole course of the project.
In the process of discussing technical and financial details, the manufacturer informed us that the production service of custom routers is significantly more expensive. "It turns out" they have old prices on the site, which "just forgot to update", so now the custom router will cost from 65rmb / pc for a batch of 500 pieces. We did not have time to leave the factory, as the information on the site was updated.
Yes, it happens of course - we are looking further. Further searches in the Chinese Internet showed a lot of different devices suitable for the parameters of 36rmb / pc, but the sediment has already remained and can also update the price unexpectedly.
So it is decided - we will design and manufacture the device ourselves. Preliminary requests for the cost of the main components spoke about the possibility of meeting the original 45rmb / pc. Also in open access a large number of open source projects that should be previously studied in order to ensure a quick start of development.
A quick search gave a publication about Chinese routers on Habré -
“We are exploring Chinese routers on RT5350” .
Another small collection of Chinese modules presented on
www.indiegogo.com is
“3 projects of inexpensive mini-PCs with Indiegogo” .
A short list of links, the study of which helped the author in his further work:
www.indiegogo.com/projects/vocore-a-coin-sized-linux-computer-with-wifiwww.indiegogo.com/projects/asiarf-tiny-linux-computer-with-wifi-and-ethernet#homehabrahabr.ru/company/makeitlab/blog/239625habrahabr.ru/company/makeitlab/blog/238897


WiFIDuino, VoCore and AWM002 projects integrate the use of a cheap Ralink RT5350 chip with a 360 MHz MIPS processor (WIFIDuino uses a WIFI module with this chip), plus 8 MB of FLASH memory and 32 MB of RAM.
We request prices for the processor and memory from suppliers, again using
www.1688.com . Hereinafter, prices are given for the quantity required for the production of 500 devices or for the minimum packing rate. A quick survey of several suppliers now gives the following prices for main components - Ralink RT5350 - 10.5 rmb / pc, SDRAM 32MB - 5.1 rmb / pc, SPI FLASH 8MB - 6rmb / pc. Reasonable prices - taking into account the printed circuit board and installation must fit in the planned 45rmb / pc.
Of the above projects, VoCore made a very good impression, which was pretty well lit on the habr. Therefore, in further work used it as an example.
We draw in the editor the schematic diagram, we put down all the nominal components.

The scheme is necessary for generating the list of items and purchasing components, as well as, of course, for the further design of the printed circuit board.


Here it is worth recalling the requirements of the customer on the use of certain dimensions. Therefore, before performing the finishing trace, we perform an additional step of coordinating the position of the components on the printed circuit board. For this purpose, 3-dimensional components used in the scheme were drawn, and a 3-dimensional device model was created. Subsequent agreement revealed a couple of comments on the position of the components, which were immediately corrected. The LED did not get into the hole of the planned case and the dimensions of the board were slightly increased.

After an intermediate check, we proceed to the trace. The board will be 4-layer with impedance control of the 5th accuracy class. We carry out the routing of the printed circuit board taking into account the requirements of the technical specification, as well as using the previously prepared schematic diagram and 3-dimensional components. Estimated rough tracing should not take more than one day, the subsequent approval and revision up to 5 days. As a result of hard work, the board has acquired the following form.

So, the project of the board is ready - it's time to order the printed circuit boards. First of all, you need to prepare files for production. We need gerber files, and not just boards, but multiplied stocking. The panel (multiplied blank) contains several copies of the printed circuit board. It is used to optimize production - roughly speaking at all stages several boards are manufactured / assembled. In addition, since we have a two-way SMT installation, in order to save time and money, we make a clever panel symmetrical about a 180-degree turn.
We place an order for prototypes of printed circuit boards and a week later - we become happy owners of nice boards.

It must be said that in parallel with the production of printed circuit boards, the purchase of components was successfully completed, and the start date of assembly at the SMT factory was agreed. We transfer the list to the installation, wait for 3 days and the devices are ready.

Normal control of X-ray soldering using BGA packages is required.

Ahead the most important - we start adjustment. Unfortunately, a few simple mistakes sneaked into the project, so I had to resort to heat-resistant wire for modification. Also changed some denominations of passive components.

The first functional test is to use the newly created “Chinese router” to organize a WiFi-Ethernet bridge for a laptop. For the first check, try downloading a couple of files. Successful - stable download speed and a confident WiFi signal level indicate the possibility of further testing and testing.

Total, the first stage of the project is completed: there are living prototypes suitable for functional testing together with the customer. Ahead of a number of inspections on the basis of which it will be decided either to refine or to start mass production.
As already noted, the estimated cost of the device is 38rmb / pc in the production of a batch of 500 pieces. Production time 2 weeks. The amount of 38rmb is, of course, substantially less than the 65rmb claimed by the Chinese for custom routers and less than 60rmb for ready routers, which justifies the time and effort spent on the project.
Development took 80 man-hours, although due to the desire to limit costs, it stretched for 2 months. Roughly it takes up to 80 more hours for testing and rework.
For this, thanks to the readers for their time, the customer for their patience, and the Chinese for their hard work.
PS At the time of publication, the exchange rate is USD / RMB = 6.2, RMB / RUB = 10.5. Please do not minus the provision of figures in the Chinese currency, and count yourself in mind, as currency rates are constantly changing.
PPS We do not plan to make iron an open project, so the concept is not laid out in very good quality. Believe me, the scheme is typical.