Traditional management kanbans are placed on the production line to display real-time information related to the production line, such as target output, actual output, and qualified rate. Through the kanban, managers and producers can know the various production conditions of the assembly line through the information shown on the kanban. The system in which managers conduct the entire production scheduling and coordinate the issuance of instructions to the offline line based on the situation at the production site. The more timely and targeted the instructions are, the more tacit and efficient the cooperation of each link of the production line will be. The author provides a new type of electronic kanban, which, in addition to the traditional kanban functions, adds card swiping authentication, video monitoring, and voice call functions.
1 System composition
The system composition is shown in Figure 1.
The electronic signage PC is installed with Windows operating system and database. The electronic signage hardware distributed in each work group uses a development board with ARM2440 as the CPU. The main frequency is 400 MHz, and the software is the Linux operating system. The development board has 128M RAM, 64M Flash, sound card, USB host, serial port and other interfaces.
The embedded system composition is shown in Figure 2.
The wireless network card uses rt3070 wireless network card access: USB interface. The camera is a USB interface. The embedded system has interfaces such as sound card and serial port. The serial port is connected to the IC card reader, and the IC card information is obtained and transmitted to the host computer through the wireless network. The database information is authenticated and the corresponding time is recorded.
Each group arranges the wireless network according to the distance. As shown in Figure 3, the solid line part is the factory wired network, and the dotted line part is the wireless network.
The lower computer collects field data and video and transmits them to the summary board in real time, and can transmit real-time sound data through the sound card.
2 Upper computer program design
Voice transmission uses mono, 16 bits, 8,000 Hz sampling frequency, and collects 16 k data per second. The upper computer program is written in Delphi and calls the windowsAPI-WaveInOpen function to open the device. And set:
call waveInAddBuffer to obtain sound data, and the sound data obtained uses adaptive differential pulse code modulation. The algorithm uses a simple mapping method to adjust the quantization step size. For an input PCM value X(n), it is subtracted from the predicted value of X(n-1) at the previous moment to obtain d(n), and then d(n) is encoded according to the current quantization step size, and the quantization step size is adjusted with the encoding value of this sample point. At the same time, the predicted value of the current sample point is obtained for the encoding of the next sample point. Through this algorithm, the sample point can be encoded into a 4-bit code stream, a sign bit and 3 amplitude bits. The algorithm is simple to encode and decode, and only subtraction and table lookup operations are performed. The CPU requirements are not high.
The compressed data is transmitted through the idudpclient control. The reference code is as follows:
idudpclient 1. host: = IP
idudoclient 1. port: = PORT
idudoclient 1. SendBuffer
The idudpclient control brodcastenable property can enable broadcasting. With broadcasting, all lower computers can receive data packets sent by the upper computer.
Delphi uses the IdUDPServer control to listen to the port to read the sound data of the lower computer, decode and call waveOutOpen(),
waveOutPrepareHeader(), and wave()utWrit() to play the sound. The program flow is shown in Figure 4.
3 Lower computer program design
The lower computer is a management board distributed in the production line or workshop. The Linux operating system is used. Under the Linux operating system, the hardware is regarded as a device file. The file is located in the dev directory, and the file name is dsp. The read function is used to read the sound, and the write function is used to play. The lower computer software also starts two threads. One thread listens to the corresponding port to obtain the compressed sound data and decompresses it for playback, and the other thread collects the sound card data and compresses it for transmission.
1) First open the device file:
fd=open("/dev/dsp", oflag); set the sampling bit number, frequency, etc.
2) Establish thread 1: pthread_create.
Establish udp network connection sockfd()
to read the sound card:
read(fd, inbuf, sizeof(inbuf));
3) adpcm encoding and transmission
4) Establish thread 2
to establish a udp network connection to listen to the port, obtain network data, and decompress it.
Write to the sound card device:
write(fd, outbuf, sizeof(outbuf));
The program flow is shown in Figure 5.
4 Conclusion
Through practice, the new management dashboard can reflect the situation on site in real time and accurately. It improves the transmission of production and management information and the traditional monitoring mode. The dashboard is easy to install and can be adaptively networked according to the existing wireless routing without considering wiring. In addition, voice broadcasting and real-time voice calls between upper and lower computers are convenient for management personnel and operators.
Previous article:A multi-channel wireless anti-theft alarm system based on telephone network
Next article:A new type of high voltage pulse drive source based on solid state switching devices
Recommended ReadingLatest update time:2024-11-17 04:47
- MathWorks and NXP Collaborate to Launch Model-Based Design Toolbox for Battery Management Systems
- STMicroelectronics' advanced galvanically isolated gate driver STGAP3S provides flexible protection for IGBTs and SiC MOSFETs
- New diaphragm-free solid-state lithium battery technology is launched: the distance between the positive and negative electrodes is less than 0.000001 meters
- [“Source” Observe the Autumn Series] Application and testing of the next generation of semiconductor gallium oxide device photodetectors
- 采用自主设计封装,绝缘电阻显著提高!ROHM开发出更高电压xEV系统的SiC肖特基势垒二极管
- Will GaN replace SiC? PI's disruptive 1700V InnoMux2 is here to demonstrate
- From Isolation to the Third and a Half Generation: Understanding Naxinwei's Gate Driver IC in One Article
- The appeal of 48 V technology: importance, benefits and key factors in system-level applications
- Important breakthrough in recycling of used lithium-ion batteries
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- Rambus Launches Industry's First HBM 4 Controller IP: What Are the Technical Details Behind It?
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- Playing with Zynq Serial 14 - Using GIT for Project Backup and Version Management 6
- Selection of solid state relays
- About the problem of clearing the oscillator flag of msp430
- TWS earphones product display
- Access to register of unclocked peripheral at 0x40010C00 cause BUS_FAULT What...
- 【Silicon Labs Development Kit Review】+Data Collection
- How to evaluate MCU performance parameters? From which perspectives?
- Renesas CPK-RA6M4 Development Board Review ---- CAN
- There is a sound when the flyback power supply is turned off. Is it a problem with the circuit or the transformer? How to fix it?
- FAQ_How to quickly confirm the power consumption in different modes of S2-LP