07-06
2020
Internet/Intranet technology, especially the rapid development of information release and retrieval technology based on Web (HTML, HTTP), has caused great changes in the architecture of the entire application system, gradually evolving from a C/S master-slave structure to a flexible Multi-level distributed structure. In today's information network era with Web technology as the core, the above changes have given new connotations to the application of the architecture. In fact, the new multi-level distributed structure is the browser/server system, that is, the Browser/Server (B/S) system.1. Web-based B/S architectureB/S mode application system consists of two parts, browser (Browser) and server (Web Server, Other Server). There are data (data) and various application programs (App) on the server. By downloading the application programs on the server, the browser can dynamically expand its functions. The structure of the server is multi-level, and the B/S system processes Various data types can also be dynamically expanded. With the help of a browser, users can send some kind of request to various servers distributed on the network. After receiving the corresponding request, the server will process it and finally return the information required by the user to the browser. The B/S structure can simplify the work of the client. Through the application of the B/S system, the server will take on more work. Relatively, only a small amount of client software needs to be configured on the client, and the server will complete the specific tasks. database access and application execution. After the browser sends the request, the Web Server will process a series of other tasks, such as data request and processing, result return, dynamic web page generation, etc. In fact, the B/S architecture is the separation of the transaction processing module and client tasks under the two-tier Client/Server structure. It uses the Web server to form a single layer to undertake and complete various tasks. Distribution, greatly reducing the pressure on the client. The three-tier architecture of Web-based B/S can be represented by Figure 1.2. Software development technology based on B/S structure2.1 PHP technologyPHP is an acronym for Hypertext Preprocessing Language, which is an HTML embedded language. In a sense, PHP and ASP have a certain similarity, and they both belong to the scripting language embedded in HTML. The implementation style of PHP on the server side is similar to C language. At this stage, many website programmers have a high application rate of PHP language. In addition to its own innovation, PHP syntax is also combined with C language, Java language and Perl language. Compared with CGI language and Perl language, PHP has a faster execution speed of dynamic web pages. In the specific execution process, CGI will completely generate HTML tags, so its work efficiency will be relatively low, while PHP will embed programs in HTML documents, which determines its high efficiency; Compared with Java Script, an embedded scripting language in HTML, PHP executes programs on the server side. In addition, PHP has many functions, and PHP can realize all the functions of CGI and JavaScript. Not only that, it can also provide support for more than 90% of the current databases and operating systems.2.2 Visual Basic technologyIn the early 1990s, Microsoft launched the Visual Basic language, which is an object-oriented high-level programming language with a high degree of visualization. Environment-based development of various applications. Visual Basic is easy to learn and master, and its powerful functions can even be comparable to the professional Windows development tool SDK to a certain extent. Under the visual environment, Visual Basic can easily and quickly create Windows graphical interface. With the help of this technology, many programs can be developed, such as Internet, database management and client/server mode. Visual Basic technology reduces the complexity of application level development with its visual design methods and environmental advantages.2.3 SQL standard languageSQL is the acronym for Structured Query Language, that is, Structured Query Language. Its main function is to establish a good relationship with different databases and communicate effectively. Based on the relevant regulations proposed by the American National Standards Institute (ANSI), SQL is a standard language for relational database management systems. update and fetch etc. At this stage, the SQL language standard is widely used in common relational database management systems, such as DB2, Sybase, Oracle, Access, and SQL Server. Although many databases will redevelop and expand SQL statements to a certain extent, they can still use standard SQL commands such as Update, Delete, and Drop to perform various database operations. The development of SQL Server started from companies such as Microsoft and Sybase, and the first version was implemented in 1988. It is a management system closely related to the database. When Windows NT was released, Microsoft and Sybase had different views on the development of SQL Server and diverged, and finally ended their cooperation and carried out their own development. Among them, Microsoft chose to introduce SQL Server into Windows NT, and intensified efforts to develop and promote the application of SQL Server in the Windows NT operating system; while Sybase put more energy into SQL Server in the UNIX system. on the application.SummarizeAgainst the backdrop of increasing software scale and complexity, the design and description of the overall system structure is becoming more and more important, even more important than the selection of specific algorithms and data structures. As a means to describe the high-level design of the system, software architecture gradually develops into a focus and hot spot in the field of software engineering. The research on architecture development technology carried out in this paper has certain theoretical reference significance for the field of software engineering.The above is the technical analysis of software development based on B/S structure introduced by Shenzhen Zuchuang Microelectronics Co., Ltd. for you. If you have software and hardware function development needs for smart electronic products, you can rest assured to entrust them to us. We have rich experience in customized development of electronic products, and can evaluate the development cycle and IC price as soon as possible, and can also calculate PCBA quotations. We are a number of chip agents at home and abroad: Songhan, Yingguang, Jieli, Ankai, Quanzhi, realtek, with MCU, voice IC, Bluetooth IC and module, wifi module. We have hardware design and software development capabilities. Covering circuit design, PCB design, single-chip microcomputer development, software custom development, APP custom development, WeChat official account development, voice recognition technology, Bluetooth wifi development, etc. It can also undertake the research and development of smart electronic products, the design of household appliances, the development of beauty equipment, the development of Internet of Things applications, the design of smart home solutions, the development of TWS earphones, the development of Bluetooth earphone speakers, the development of children's toys, and the research and development of electronic education products.
07-05
2020
The WeChat Mini Program is an application developed on the basis of the WeChat platform. The installation of this program is different from other applications. It can be used without downloading and installing. You only need to search for the name of the application you need in the WeChat search bar or scan The QR code of this functional program can be used, and the use of this small program will not occupy memory, which is very fast and convenient. In fact, the WeChat applet appeared as early as early October 2016. At that time, it was undergoing internal performance debugging by scientific research and technical personnel. Its instant birth attracted the attention of the entire mobile Internet industry. In terms of basic functions, WeChat applets are still very powerful, including message notification, official account association, history list, conversation sharing, offline code scanning, search and search, and switching between applets. And it affects tens of millions of mobile users. With the acceleration of information technology upgrading, the functions of small programs are also constantly being upgraded. Therefore, for some APPs with high development and promotion costs and high mobile phone traffic charges, WeChat applets can be easily solved, reducing the difficulty of these two problems, and can also provide some high-frequency applications. New choices lead the development and progress of the times.Therefore, this article will systematically analyze a series of issues related to the development of WeChat applets, explore the key technologies involved and the system organization structure, and explain its future development prospects and problems to be faced. Provide necessary information support in terms of basic theory and technical application.1. Some key technologies for developing WeChat appletsIn the development process of WeChat applets, some important technologies will be involved, which require developers to master them. Among them, the more common and convenient ones are that developers do not need complicated designs and calculations. The development of the mobile client can be quickly switched to the development of small programs. Its specific main technologies are as follows:1. Obtaining the WeChat Mini Program IDIn order to check the ID of the WeChat Mini Program, the user needs to be able to log in to the Mini Program development account provided by him to find it, because under certain conditions of WeChat, the developer cannot check the ID of the subscription account and some service accounts. Use it directly, and then set it in the developer options in the mobile app. If the developer does not use the WeChat ID of the registered administrator, it also needs to be bound to the developer. That is to say, in the user identity developer module, it is enough to bind the WeChat ID that needs to experience the applet.2. Establishment of WeChat Mini Program ProjectTo create a WeChat Mini Program project, the developer needs to edit the code and the creation of the Mini Program based on the development tool, which generally includes the following steps:(1) Firstly, download and install the developer tool, open it and log in by scanning the code.(2) Select the creation of the project, then fill in the ID number that has been obtained, and set the name of the project, and store the written code directory under a certain folder on the computer hard disk.(3) If an empty folder is selected for creation, the developer tool will automatically prompt and then generate a simple demo.(4) After the project is successfully created, the project can be edited in the navigation bar of the developer tool system.3. Wechat applet code writingIn the navigation bar of the successfully created developer tool system, some relatively simple code texts have appeared. Among them, the more important three code files are app.wxss, app.json and app.js. It is worth explaining that , the file with the .json suffix is the configuration file, the .js suffix is the script file, and the .wxss suffix is the style sheet file.4. Establishment of WeChat Mini Program pageFinally, I entered the most critical part of WeChat applet development-the establishment of the page. Pages usually include logs and index, that is, the so-called display page for starting the applet and the welcome page after opening the program, all of which are under the pages directory. It should be noted that each applet page will consist of four different suffix files with the same name, and these four suffix files are: inde.xwxml, index.js, in-dex.json and index. wxss. In the page organization structure of the log, the log page will use <block/> to control the markup before organizing the code, and bind the <block/> log data with wx:for-items, and finally put the data on the expanded node Record.2. The system organization structure of WeChat applet developmentThe development of WeChat applets must have an organizational framework, so that the design and development work can be carried out conveniently. Usually, the program is carried out under the MINA framework. The MINA framework is a communication network application system running on the basis of Java technology. It can not only select the thread model according to the user's functional requirements, but also develop more highly scalable network communication, etc., specifically.The complexity of the MINA framework in the application is mainly reflected in several modules in the system framework, for example, the main function of Lo Handler is to process the information transmitted by the client; Lo Service is used as the input port of the program , which is mainly used to call threads, etc.; LoFilter is a commonly used filtering device, such as filter compression, filter blacklist, SSL encryption and log records, etc., which can filter some data sent to customers or some customers Filtering is requested. In addition to the complexity of the system, there is also a certain degree of flexibility. For example, in the process of use, developers can flexibly formulate various encoding methods, logging and encryption algorithms under certain requirements. These operations can be Serve more application scenarios in the needs of most users.3. Analysis and Prospect of WeChat Mini ProgramsCompared with some common Android operating system applications on the market, WeChat Mini Programs have remarkable features, such as low cost, easy development, and fast response, etc., and are constantly winning wide recognition from users and the market. According to the needs of some users, after analysis, there are problems such as the programs that usually appear in the APP are not innovative, do not want to use them after a period of time, some programs are not used for a long time, and the APP occupies a large amount of mobile phone memory, etc. , it will be easily solved in the WeChat applet, and can be effectively solved. Most users still have a soft spot for WeChat applets, which have great market prospects; for developers, it is both an opportunity and a There are also challenges. For the development of small programs, developers can develop lower-cost applications at the fastest speed and in the shortest time. This is their golden age and provides a huge and broad platform.However, this also poses a challenge to them. They must emphasize technological innovation and improve the quality and professional skills of developers. Only in this way can they develop products with higher quality and excellent performance. For some small and micro enterprises, the emergence of WeChat mini-programs has brought them great changes. Due to the small scale of these enterprises, the number of personnel is not large, and the funds are not very sufficient, the emergence of small programs can offset their own shortcomings, respond more flexibly to the market, and develop products that are suitable for themselves and the market. Small programs for user needs to promote the development of enterprises.The above is the system realization and prospect of WeChat mini-program development introduced by Shenzhen Zuchuang Microelectronics Co., Ltd. for you. If you have software and hardware function development needs for smart electronic products, you can rest assured to entrust them to us. We have rich experience in customized development of electronic products, and can evaluate the development cycle and IC price as soon as possible, and can also calculate PCBA quotations. We are a number of chip agents at home and abroad, including MCU, voice IC, Bluetooth IC and modules, wifi modules. We have hardware design and software development capabilities. Covering circuit design, PCB design, single-chip microcomputer development, software custom development, APP custom development, WeChat official account development, voice recognition technology, Bluetooth wifi development, etc. It can also undertake the research and development of smart electronic products, the design of household appliances, the development of beauty equipment, the development of Internet of Things applications, the design of smart home solutions, the development of TWS solutions, the development of Bluetooth audio, the development of children's toys, and the development of electronic education products.
07-04
2020
Secure Code Techniques in Software DevelopmentAt this stage, with the development of science and technology, various development tools emerge in an endless stream, which provides great convenience for the smooth progress of programmers' programming work. It should be noted that whether it is to ensure the normal operation of the program or based on security considerations, programmers have the right and obligation to ensure the security of the program code, and strive to strengthen its functions on this basis. The so-called security code refers to the same code that works at different trust levels, which can realize the operation of any processing information in other trust levels at another trust level, in network programs, CGI scripts, and computer Web browsers are distributed. Therefore, it is of great significance to process the program in the running and debugging period with safe code technology.1. The importance of security in software developmentSoftware in a broad sense refers to the sum of computer instructions and data organized according to a certain sequence and rules. Software can generally be divided into two types: system software and application software. The former can be regarded as the operating platform of the latter. From the perspective of programmers, In other words, a software is equivalent to a complex of data, programs, and documents. In the information age where computers and the Internet are becoming more and more popular, software has become an indispensable tool in people's daily life, and almost every operation is related to software programs.Safety awareness, safety design and safety implementation in the process of software development directly determine software safety. In view of the fact that current software development products are becoming more and more "fools", they emphasize the perfect function of the application layer, and objectively ignore the perfect mechanism of the security layer, which is easy to be coveted by hackers. Although the industrialization of the Internet has formed an industry oligarchy like "BAT", there are still many loopholes in the security level, and the life trajectory of modern people is closely related to software applications, such as office, entertainment, consumption, etc. The hacker attacks that have been exposed frequently in recent years are essentially attacks after finding software loopholes and defects, resulting in a large amount of information leakage and serious losses to the parties; therefore, security must be emphasized in software development.2. Security code measures during the program development periodIn the process of writing code, programmers cannot accurately find out the existing safety hazards, nor can they prevent the occurrence of hidden dangers in time, so the efficiency of code writing work is affected to a certain extent. Therefore, for programmers, they should not only base themselves on the needs of the current work, but should constantly improve their self-cultivation in their work and constantly summarize their programming experience. According to this phenomenon, the famous network expert Jeff Schmidt put forward the idea of safe writing, and we will conduct a targeted analysis based on this below.2.1 Only grant the minimum permissions to the softwareSoftware obtains different levels of permissions according to its own functions. For example, compared with communication software, anti-virus software has higher and lower-level permissions. When the program changes the registry and system files, because it needs to pass the authority of system-level functions, it also brings opportunities to hackers to a certain extent. To this end, we can divide different programs into different modules according to their functions, and grant minimum permissions to each module. The advantage of granting the least privilege to software is that it is easy for programmers to detect and maintain, and it can also be more convenient to conduct audits.2.2 Check all return codesWhen calling external library functions provided by the system or a third party, programmers must carefully check all return codes to provide a practical guarantee for the stable operation of the program. In essence, the return code is an error feedback and abnormal feedback mechanism in software development. When the software is working normally, the system will feed back relatively complex and comprehensive information content, but it is not allowed and does not have the conditions for implementation during the development process. Programmers It is necessary to judge through simple feedback information and quickly understand the error location information. Therefore, the return code is usually a judgment code; there are many reasons for program errors, such as some non-standard formatted environment variables, lack of sufficient system resources, and misoperations caused by users editing configuration files or registry keys by themselves. In addition, during the running of the program, the functions of each module must be fully coordinated to make the program work better in any environment.2.3 Race conditionThe so-called race condition means that the attacker will take the opportunity to enter the system when the user is writing a file, modifying the shared volume, or updating the data, and modify the program data, causing the program to generate wrong input. For example, if a file is controlled before the program reads and writes the file, the attacker will write a piece of instruction code to transfer the written program to another file, which is more likely to happen in a temporary file. The attacker will replace the user's temporary file with his own fake file to realize the transfer of data information. In order to effectively prevent this from happening, we prevent and control it from two aspects: first, verify resource files in time to reduce the probability of accidents; second, establish a private directory to store some temporary files, and implement Lockdown on the system.2.4 Perform boundary checks to prevent buffer overflowsWhen there is a buffer overflow vulnerability in the program, the attacker will often implant some security codes with certain permissions into it. At this time, he will use some means to obtain the system administrator permissions of the attacked subject. Attackers can use this vulnerability not only to stop the target service, but also to gain more access rights or, for remote services with buffer overflow vulnerabilities, to control the target through remote operations. In addition, for the inspection code, the situation of storing data in its dynamic and static buffers needs to be determined according to the type of development language used. At the same time, in order to ensure the safety of the buffer, it is necessary to start tracking each buffer from the starting position of the buffer until the task is stopped when the program ends.2.5 Guaranteed to automatically close when the code failsWhen the user's software system is attacked, the method can realize the protection of the user's computer security. Specifically, if we find that the software system cannot work normally, we should immediately stop all access to the system authority, shut down the computer, and prevent attackers from entering the control system. For example, if an attacker adopts a mandatory denial-of-service function when the programmer is writing the code of the firewall system, the programmer should immediately disconnect the network for self-protection, thereby minimizing the loss and realizing the protection of the computer. Protect.3. Safety measures during the commissioning periodSoftware development is a long-term and complicated work, but from the perspective of life cycle theory, the most complicated work is not the design and implementation link, but the inspection in the debugging stage must be carried out to ensure that the various programs of the software system are in normal operation. condition. Although this link concentrates the wisdom of all the staff in the development team, there will inevitably still be some potential safety hazards. For this reason, it is necessary to formulate standards for auditing program performance and use them to guide various debugging tasks. In this process, we need to clarify the following points:(1) Different from the standards used in the development of new software, the software maintenance process also has its own set of operating standards, and this requirement is much stricter than the development process. The process of software program debugging and maintenance is not only the detection of practical functions, but also includes system pressure resistance and limit, etc. Considering that there is a high possibility of system crash during debugging and maintenance, it is necessary to establish a complete and powerful software modification control system based on this.(2) In order to make the goal of the whole debugging work clearer and to facilitate the inspection of the whole process, it is generally chosen to establish the operation diagram of the program according to the actual situation, carry out targeted data flow analysis, and then analyze the occurrences at the exit and entry of the program. The probability of danger is minimized and the whole procedure is streamlined. At the same time, in order to avoid providing convenience for the attacker's anti-tracking, a relatively complex security code must be used.(3) In order to find problems through its detection in abnormal environments, it is necessary to use some methods to input some data or commands to the running program to effectively avoid the occurrence of security risks. For example, through the combined effect of debugger and disassembly language, let the code run in an environment with abnormal parameters; avoid format errors in configuration files or other types of files; use the inspection mechanism of garbage data to realize the inspection of network data receive etc.(4) In the testing phase, it is very necessary to use testing self-attack methods to deal with software involving network data. For example, we can use an automatic vulnerability scanning program to detect core systems such as Email and DNS servers of various application software. Sometimes it is also possible to use the port scanning method to detect the server connected to the Internet, and then through the attack function of the dial-up test, and then make the defective modem connected to the network reveal its original form. These methods are practical, relying on the working mechanism of the internal network architecture, through its simulation, can expose the vulnerabilities on the common platform, and then find the problem settings of the firewall, operating system and server program.SummarizeTo sum up, in order to ensure the security of the computer, it is necessary to write safe and reliable running programs. Correspondingly, this also puts forward strict requirements for programmers. Not only must they always have the awareness of safe writing, but also constantly Improve your skills, master security code technology, focus on experience accumulation and innovation, and completely crush the attacker's conspiracy.The above are the details of security code technology in software development introduced by Shenzhen Zuchuang Microelectronics Co., Ltd. for you. If you have software and hardware function development needs for smart electronic products, you can rest assured to entrust them to us. We have rich experience in customized development of electronic products, and can evaluate the development cycle and IC price as soon as possible, and can also calculate PCBA quotations. We are a number of chip agents at home and abroad: Songhan, Yingguang, Jieli, Ankai, Quanzhi, realtek, with MCU, voice IC, Bluetooth IC and module, wifi module. We have hardware design and software development capabilities. Covering circuit design, PCB design, single-chip microcomputer development, software custom development, APP custom development, WeChat official account development, voice recognition technology, Bluetooth wifi development, etc. It can also undertake the research and development of smart electronic products, the design of household appliances, the development of beauty equipment, the development of Internet of Things applications, the design of smart home solutions, the development of TWS earphones, the development of Bluetooth earphone speakers, the development of children's toys, and the research and development of electronic education products.
07-03
2020
With the promotion and deepening of smart phones, the role of mobile phones is no longer simply to make calls and send text messages. Various APPs for consumption, chatting, social networking, and travel have sprung up in the APP market like mushrooms after a rain. Whether it is on the street or in the shopping mall, the bow-headed people can be seen everywhere, which also confirms the importance of mobile phones to us.1. Main technology of APP developmentJava is a comprehensive object-oriented language with corresponding advantages such as security, robustness, wide distribution, and portability. It is these advantages that make Java widely used in many industrial fields. Corresponding Android software can be found on commercial e-commerce websites. From scientific applications to economic applications, such as electronic trading systems, from electronic games to desktop applications, we can see the shadow of Java at any time. Android is an operating system built according to the free and open source code of Linux. It is mainly used in mobile devices, such as smart phones or tablet computers. It is jointly developed by Google and the leaders of the Open Handset Alliance. The development of smart phones must be accompanied by the evolution of the operating system. Android is one of the mobile operating systems, but it quickly occupies the vast majority of the market share because of its open source nature.2. Overview of the Android operating system2.1 The concept of Android systemAndroid system performance. Today's Android system itself has Bluetooth, wireless network connection performance, photography, camera and other related functions, and has data transmission and download functions, and the corresponding software can directly perform corresponding installation, virtual keyboard conversion and other corresponding functions. , The addition of related advanced technologies such as remote printing and fingerprint payment systems. Android is the most widely used operating system nowadays. It has a certain openness and complete performance characteristics, which makes the current Android system compatible with more and more smartphones. Not only that, it also drives Android The in-depth progress and development of the system itself.Android system architecture. The Android operating system can be roughly divided into the following five components: the first is the basic application software, which is an important part of the Android system, such as browsers, calculators, address books, maps, alarm clocks, software stores, etc. It laid the foundation for the use of smart phones. The overall framework of the Android system program can provide prerequisites for the application of the application software program. Therefore, such a framework can normally run all the APP programs in it. The third is all the control and connection links of the operator subsystem of the Android system, including the control of the mobile phone interface. The fourth is the operating system of the Android operating system in the process of operation. This architecture is related to the performance functions of the Android system and the status of system abnormality monitoring, system garbage disposal, and management software architecture. Finally, it is about the multi-threaded operating system. Android's multi-threaded operating system can maintain the normal operation of the entire Android system, and make corresponding distinctions among the internal areas of the system for safe driving.2.2 Android system architectureBasic architecture: In the Android system, the architecture of the operating system is roughly divided into the following four layers, namely: Linux kernel layer, system operation library layer, software framework layer and its corresponding application layer.Linux layer: The basic layer of the Android operating system is established according to the Linux Kernel, and its performance is mainly responsible for the performance of the operating system, including many driver software, such as display drivers, infrared drivers, camera drivers, Bluetooth driver, etc., it is the existence of such driver software to operate our corresponding device tools.System runtime layer: The system runtime layer mainly includes two components: library files and Android operating conditions. The library files here mainly use some C/C++ library files that will be used in the Android system, including: desktop controllers, media libraries, SQLite and other related files. The Android operating environment refers to what we call virtual device technology, which is equivalent to the JDK and JVM in java, and is the core library necessary to run the Android application system.Application framework layer: The inventory released by Google is mainly used. We learn Android mainly to learn such a layer, and we can operate our software with the help of various frameworks. In the research and development process, it is required to respect the research and development principles of the framework system. The framework mainly includes ActivityManager, window control device, view system, notification management system, and telephone communication controller.Application layer: The application layer is actually the software layer developed by us. It mainly uses the Java language to carry out corresponding research functions, such as: music player, photo manager, including maps and address books that we must use in our lives and other related software.2.3 Four major components of Android systemIf you want to learn the development of Android, you first need to be familiar with the four major constructions of the Android system. The main four include Activity, Service, Broadcast Receiver and Content Provider.Activity: Activity is actually a human-computer interaction system. To put it simply, the content of a screen in a mobile phone belongs to Activity, so the main function of Activity is to store different types of display components. The largest component of this is the most fundamental part of Android. constituent parts. But there is far more than one Activity in an APP.Service: Service can be understood as an Activity without a screen. For example, there is no corresponding user interface in many programs, and it only exists in the background operation, so it can be defined as a Service. For example, our music background player, Jince system, etc. all operate in such a form.Broadcast Receiver: The broadcast receiver does not have a fixed user interface. It can feedback the received message by starting an Activity or Service, or notify the user with the help of Notification Manager.Content Provider: The provision of Content Provider is mainly to deal with the problem of information exchange between application software, to unify the data operation procedures of different application software, and to present the standard to other software so that it can be smoothly In this way, it can reflect its role in data interaction and information resource sharing.2.4 Build Android development environmentIf you want to carry out the corresponding Android research and development work on Windows, you first need to start the corresponding environment construction and structure.Install the JDK. JDK is actually the core of Java, covering related objects such as Java's own operating conditions and environment, Java tools, and Java class libraries called when developing application software. Therefore, Java-based research and development requires the assembly of corresponding JDK software. You can start the corresponding installation work from the official website according to the differences in the versions you need.Equipped with variable conditions. In order to equip the system variable environment of JDK, we are required to set three system variables for corresponding research. These three variables are JAVA_HOME, Path and CLASSPATH.JAVA_HOME: The variable is vertically JDK, and the installation folder or specific location on the calculator is: C:Program FilesJavajdk1.8.0_20. After the creation is complete, JAVA_HOME% is used as a unified reference to the JDK installation directory, and its significance lies in the configuration of subsequent variable values.PATH: The attribute of PATH has existed for a long time, and the corresponding editing work can be carried out directly. After the original variable, add: %JAVA_HOME% in;%JAVA_HOME%jre in.CLASSPATH: Set the system variable name: CLASSPATH and its corresponding variable value is: .%JAVA_HOME%libdt.jar;%JA-VA_HOME%lib ools.jarInstall Eclipse. Eclipse is the IDE in the Java application system and its Android development process. It can be downloaded directly on the official website, but the difference from other software is that Eclipse does not need to perform corresponding assembly work. After the direct decompression is completed, it is enough to set the corresponding workspace when it is opened.Install the Android SDK. In order to be able to deploy and run the corresponding Android software in Windows, it is required that Eclipse configures the Android SDK. Google and Eclipse, which directly provides ADK, can directly use it and configure the corresponding system.3. Android development environmentThe research and development of the Android system is basically realized with the help of the Java language, so it is required to be equipped with the corresponding Java research and development conditions. Before the research and planning, the corresponding Java foundation must be built and the corresponding Java foundation must be assembled. AndroidStudio is a fixed IDE and tool developed by Google Technology Company for Android. Not only that, it can use the previous Eclipse+ADT as the corresponding research and development environment. Android Studio. Its base uses lntellij IDEA as the corresponding R&D equipment, and the R&D speed is relatively fast, and it is the most common R&D tool for APP R&D in the Android system nowadays. The Studio installation package itself carries an AVD, which is in the built Android simulation device, and can carry out corresponding monitoring work.4. Security environment and precautions for APP development based on Android systemThe security challenges brought about by the wireless mobile smart mobile terminal system are more serious than the research on relatively stable networks and desktop devices. The research and development of mobile applications usually requires corresponding high-quality protection, otherwise it will be used by self-employed or enterprise sites. According to the development of Android APP, it is required to consider its corresponding security level for research and development.As for its code security, corresponding considerations are required from the following levels. First, it is required to use corresponding security requirements to compile corresponding codes to improve the security nature of the software itself; second, it is required to use code obfuscation to maintain its corresponding Code, in order to prevent malicious attackers from performing corresponding decompilation. As far as the relatively open Android system is concerned, code security in the APP development process is a very critical quality control link in the development process, and its protective system should be strengthened. 1. After the program is compiled, the corresponding safety inspection and other related operating procedures are required to be compiled in accordance with the corresponding specifications. As far as rights management is concerned, considering the process of system design with the help of the early operating system security issues, the compilation and assignment of corresponding rights are standardized. Developers can use Androidmanifest.xml and other configuration files and internal rights The control system is used to compile the corresponding permissions. If the application requires access to the mobile or the corresponding LAN, it is required to add the ACCESS NET-WORK STATE for running access to the file. The Android system also requires monitoring after the installation is complete. In order to inform users to avoid corresponding risks. In consideration of the security of the framework layer, it is required to use Android digital certification to complete it. Digital certificates are mainly used to manage application updates and permissions for communication between social applications. Not only that, the security database service is an important form of framework security services. SQLite itself has a certain degree of risk factors in the Android system. Developers need to understand their own system and carry out corresponding protection programming to improve their application software. Encryption plan for data access.The software library and runtime security and the Android operating system kernel security are also the end-point concerns of developers. The security requirements of the software library and its operating library are to carry out the corresponding hierarchical work according to the corresponding TCP/IP. As far as the Android system kernel complies with relevant standards and requirements, the Linux kernel and virtual machine provide comprehensive security support. Each customer requires a corresponding virtual machine, and there is no mutual influence between them. However, the Android system is open to all internal source codes, and security is under the supervision of customers and their developers. Security vulnerability repair is of vital significance and value to strengthen the overall security. Developers are required to pay attention to the system security repair process.5.Multi-threaded programming(1) The concept of multi-threading and multi-threading belong to the same operating system, which is built in the state that each program is compatible with each other and operates together. Multi-threading can run several unrelated operating commands at the same time. This command can have its own transmission and output space, and the corresponding configuration is mainly prepared by the operating system. From this point of view, multi-threading is a corresponding feedback system that can be carried out in accordance with multiple operating commands at the same time. When the user of this system issues commands to the operating system with the help of a smartphone, the high-speed operation of the CPU makes each of the different processes respond. Commands can work together and get their corresponding command benefits.(2) Realization of multithreading. Multi-threading can be used to bring: run () into the software, which is like carrying out the corresponding code instructions. Its execution forms can be roughly divided into two types: thread Thread and thread Runnable. Once the corresponding command is received, the work of the next command cannot be carried out until the command is completed. The second type requires the form of run() to be configured on the corresponding interface when the actual operation is carried out, and the execution code is put into it. In this system, corresponding practical operations can be carried out.6. Development of app based on Android systemThe Android system is an environment created for app development. Nowadays, after the corresponding research and development of the mobile app, it is required to have a corresponding user group to use it. The more people using a mobile app, the more money its software developers will earn. The smartphone itself has corresponding characteristics such as portable nature, smart nature, and more performance. The Android system carries out corresponding configurations according to our usage habits and functions that are often used in daily life, and the vast majority of mobile phone manufacturers and the Android system There is a close cooperation between them, which allows the mobile app to have a large number of potential customers directly when the Android phone is sold. In addition, with the continuous enhancement of the performance of the Android system, the attractiveness of people to buy Android mobile phones is also increasing, which makes the market for apps developed based on the Android operating system IQ continue to expand, which is conducive to the development of mobile apps. process and development.SummarizeWith the deepening and development of the times, science and technology have brought great changes to our lives. Under the background of the information age, smart phones have been deeply used in various industries. They have relatively many functions and relatively strong characteristics of receiving information in an instant form, and are deeply loved by mobile phone customers. Based on such a foundation, the Android system is used as the carrier to carry out corresponding research and development of mobile apps, and continuously enrich the performance of its system and its technical framework, making the development and application of mobile apps a step further. In the link of app development , The sound of the Android operating system has a vital role and value. Carry out corresponding research on app development based on the Android system, hoping to help the app better correspond to the Android system.The above is the research on APP development technology based on Android system introduced by Shenzhen Zuchuang Microelectronics Co., Ltd. for you. If you have software and hardware function development needs for smart electronic products, you can rest assured to entrust them to us. We have rich experience in customized development of electronic products, and can evaluate the development cycle and IC price as soon as possible, and can also calculate PCBA quotations. We are a number of chip agents at home and abroad: Songhan, Yingguang, Jieli, Ankai, Quanzhi, realtek, with MCU, voice IC, Bluetooth IC and module, wifi module. We have hardware design and software development capabilities. Covering circuit design, PCB design, single-chip microcomputer development, software custom development, APP custom development, WeChat official account development, voice recognition technology, Bluetooth wifi development, etc. It can also undertake the research and development of smart electronic products, the design of household appliances, the development of beauty equipment, the development of Internet of Things applications, the design of smart home solutions, the development of TWS earphones, the development of Bluetooth earphone speakers, the development of children's toys, and the research and development of electronic education products.
07-02
2020
Voice chip definitionWe are an agent of Sonix's full range of voice ICs, and we can develop voice toys and electronic products for customers.The voice signal is converted into a digital by sampling, stored in the ROM of the IC, and then the digital in the ROM is restored to a voice signal through the circuit.According to the output mode of the voice chip, it is divided into two categories, one is the PWM output mode, and the other is the DAC output mode. The PWM output volume cannot be continuously adjusted, and it cannot be connected to an ordinary power amplifier. At present, most voice chips on the market are PWM output. . The other is that the DAC is amplified by the internal EQ. The sound of the voice chip is continuously adjustable, can be adjusted by digital control, and can be connected to an external power amplifier.The playback function of ordinary voice chips is essentially a DAC process, and the ADC process data is completed by the computer, including the sampling, compression, EQ and other processing of the voice signal.As a leader in the development of voice controller ICs in Shenzhen, Zuchuang uses innovative technology to reduce costs and increase functions, and develops high-second voice/melody ICs, high-point LCD voice/melody ICs, green environmental protection and power-saving music ICs, 4/ 16/24 multi-channel voice/music ICs, high-compression high-quality sound DSP ICs, etc., are widely used in interactive toys, educational toys, handheld game consoles, electronic dictionaries, e-books, and various applications that require voice, sound, and melody product.
07-01
2020
Research on the development of cross-platform mobile APP based on HTML5With the continuous development of mobile network development technology, smart phones are getting faster and faster, with more and more functions, and a large number of APP applications have emerged. However, at present, mobile network development is still dominated by native APP development, and the same application needs to develop different native APP applications for different smartphone systems. For example, if you want to play the currently popular defending radish game on a traditional desktop computer, you need to download and install the PC version of the game installation package; if you want to play it on the iPhone, you need to download and install the iPhone version of the game APP installation package; If you want to play on an Android phone, you need to download and install the Android version of the game APP installation package. This requires game developers to develop corresponding clients for different platforms, which not only increases the difficulty of development, but also increases the maintenance cost. Therefore, timely research on HTML5-based cross-platform mobile APP development has certain practical significance.1. The concept of HTML5 and cross-platformThe so-called HTML5 refers to the fifth-generation HTML standard, referred to as H5, and can also be understood as the fifth version of the HTML standard. In a broad sense, H5 generally includes HTML, CSS3, and JAVAScript. Most browsers currently support HTML5.The so-called cross-platform refers to writing code once, which can run on multiple system platforms, without having to develop corresponding clients according to different platforms, and can be developed and maintained under multiple platforms. At present, many languages have achieved cross-platform , such as JAVA, Delhi, Python and HTML5, etc.2. Advantages of using HTML5 to develop platform-expanding mobile APP(1) Cross-platform: In the native APP development mode, developers need to develop corresponding APP clients for different system platforms. For example, iOS platform needs to use OC or Swift to develop iOS APP client, and Android system platform needs Use JAVA or Kotlin to develop Android APP client. However, HTML5 has the advantages of cross-platform, can get rid of the restrictions of the system platform, and has better cross-platform characteristics.(2) Semantic features: HTML5 has the advantage of clear semantics. It endows mobile APP with better meaning and structure, making the code clearer and easier to maintain and read by maintainers or other developers.(3) Local storage: HTML5 has storage advantages. It usually stores cached data locally, which is better than cookies and has faster performance. It can store user information and cached data locally without third-party plug-ins, even if you exit It can also be saved locally, and the state of the last runtime can be loaded when the user uses it again.(4) Open data exchange: HTML5 can easily exchange data with other APP applications. For example, when a user views a certain product on an HTML5-based shopping APP, the browsing data will be cached on the mobile phone. If the shopping APP allows If other apps view this part of the cached data, other apps can easily obtain and use the data. For example, other news apps can obtain open data in this way and deliver targeted advertisements.(5) Strong multimedia functions: HTML5 can support more media without third-party plug-ins. It not only has good video and audio support, but also has good 3D support, making the cross-brand mobile APP based on HTML5 The interface is more colorful.(6) High security: Compared with Flash and Cookie, HTML5 has higher security, and adopts sandbox mechanism, filtering measures and security policies to improve security, thus ensuring the security of cross-platform mobile APP based on HTML5. safety.(7) Rich API HTML5 has added a large number of APIs, which are convenient for developers to implement more complex functions by simply calling them, reducing the difficulty of development and improving development efficiency.3. The development strategy of cross-platform mobile APP based on HTML53.1 Selection of cross-platform mobile APP development scopeNot all mobile apps are suitable for developing with HTML5. The main points are as follows: ① The performance of native apps is undoubtedly the fastest. Under the same functional conditions, the running speed of cross-platform mobile apps based on HTML5 is definitely not as good as that of native apps. Fast, so mobile apps with high speed requirements are not suitable for development with HTML5. ②Although the mobile APP developed by HTML5 has the advantages of cross-platform and data exchange advantages of local storage and development, important data is easily leaked to other mobile APPs, which may easily lead to important data being stolen by malicious mobile APPs. Stand-alone mobile apps are not suitable for development with HTML5. ③ HTML5-based cross-platform mobile APP development is suitable for application scenarios with servers, that is, important data is stored on the Web server, and the cross-platform mobile APP client developed with HTML5 only queries and receives data, and only caches unimportant data to the server. Local, open data exchange with other APPs. At present, most mobile applications are such applications, so using HTML5 to develop cross-platform mobile APP has great potential.3.2 Selection of cross-platform mobile APP development toolsThere are many tools for developing cross-platform mobile APPs using HTML5, such as PhoneGap, WeX5 and Hbuilder, etc. The details are as follows: ①Phone-Gap appeared first, and it can quickly realize cross-platform mobile APPs using HTML5, and has very strong cross-platform advantages. Compliments Apple, Android, WinPhone, BlackBerry and other platforms, but the performance is slightly worse, and debugging is more difficult. ②WeX5 is an excellent domestic mobile APP development tool, which is developed based on PhoneGap. It can also use HTML5 to quickly develop cross-platform mobile APP, but its performance experience is not good, the number of users is small, there are unstable factors, and the lack of third-party SDK support. ③Hbuilder is a mobile APP development tool launched by Digital Paradise in China. It is mainly written in JAVA, and some programming languages such as C and Ruby are used. It has complete and detailed syntax prompts and rapid development templates, which can greatly improve the development efficiency of cross-platform mobile APPs.3.3 Selection of cross-platform mobile APP technology frameworkThe technical framework of cross-platform mobile APP development based on HTML5 mainly includes the following two:(1) A hybrid architecture based on Web technology. This architecture is based on native Web containers, and the Web applications written in HTML5 are packaged on native Web containers, thus forming a hybrid architecture based on Web technologies. This framework can make full use of the original Web code, and has the advantages of reducing development difficulty and maintenance cost.(2) Native-based hybrid architecture, which is based on native technology, mobile APP functions are mainly realized through native technology, and only the interface is implemented using HTML5. This architecture can give full play to the performance of native technology and has performance advantages, but it is relatively difficult to implement.3.4 Prospects of Cross-platform Mobile APP DevelopmentTo sum up, there are great advantages in using HTML5 to develop platform-expanding mobile apps. It can improve the efficiency of cross-platform development and reduce the cost of development in business. Technically, HTML5 has changed the pattern of mobile Internet in just a few years. It greatly reduces the scope of application of native APP.SummarizeThis article conducts research on the development of HTML5-based cross-platform mobile APP, introduces the concept of HTML5 and cross-platform, expounds the advantages of using HTML5 to develop platform-expanding mobile APP, and puts forward the development strategy of HTML5-based cross-platform mobile APP. After a long period of development practice, it is found that using this strategy can effectively use HTML5 to realize cross-platform mobile APP development, which not only reduces the difficulty of development, but also greatly reduces maintenance costs, which has a certain reference value.The above is the HTML5-based cross-platform mobile APP development technology introduced by Shenzhen Zuchuang Microelectronics Co., Ltd. for you. If you have software and hardware function development needs for smart electronic products, you can rest assured to entrust them to us. We have rich experience in customized development of electronic products, and can evaluate the development cycle and IC price as soon as possible, and can also calculate PCBA quotations. We are a number of chip agents at home and abroad: Songhan, Yingguang, Jieli, Ankai, Quanzhi, realtek, with MCU, voice IC, Bluetooth IC and module, wifi module. We have hardware design and software development capabilities. Covering circuit design, PCB design, single-chip microcomputer development, software custom development, APP custom development, WeChat official account development, voice recognition technology, Bluetooth wifi development, etc. It can also undertake the research and development of smart electronic products, the design of household appliances, the development of beauty equipment, the development of Internet of Things applications, the design of smart home solutions, the development of TWS earphones, the development of Bluetooth earphone speakers, the development of children's toys, and the research and development of electronic education products.