Full moon --- happy after exhaustion

Source: Internet
Author: User

After work, I rarely came here to write blogs, not because there were no records. It is more out of an adaptation to the environment change, from school life to a stressful work environment. I think everyone needs a period of adaptation and adjustment. The adjustment period I have given myself is two months, and I will be on the right track soon. Now, just one month has passed, and now we will summarize the process and gains of this month.

When I first arrived at the company, I had a three-day trainee and arranged basic things. I had a basic understanding of the company's equipment and R & D directions. At the same time, we will also conduct some learning and development for the original demo to evaluate whether or not to hire. I still remember that the development task was to drive a serial device. After the driver was successful, I read the collected information through the input stream. At that time, I only gave a one-day deadline. I had little experience with serial ports before playing Android. I had to do a good job of driver in one day, but it was really stressful. In addition, I started my career, the tension in my heart can be imagined. In this way, the source code is analyzed with a very nervous heart. After the analysis, the source code is transplanted. Fortunately, the task was completed on time.

In this way, the three-month trial period was successfully started. Then we started to get started with another instance. This time, we need to make three functions: ID card recognition, access information printing, and exit scanning. Because an ID card recognition instance was created during the trial period, the idea was to transplant it directly and modify the serial port number and baud rate. Unexpectedly, I did not figure it out after a day and a half. As a result, I asked my colleagues that this module was not connected to the serial port, and I was instantly killed... I don't know whether it is a pitfall or a pitfall of myself. I learned one thing from here: Before starting to do things, I should try my best to understand the relevant things, ask for uncertain factors as much as possible. Then I began to debug the printer module. A demo was coming from my superiors. I tried it. Yeah, I could use it. I was so happy. I don't know, it's stuck in the back. This demo can indeed print characters and bar codes. However, it takes a lot of effort to print images, not only for format conversion, but also for black and white conversion. The key is that there is no document to describe these things. You have to hit the wall at to touch them out. It took about two or three days to complete this process. At that time, the superiors pushed the progress blindly, and the little heart had never experienced these things in the workplace, it's hard to sleep for those nights. The climax of the story is still in the future. When I use a serial input/output stream and write an instruction to drive the printer to print various items, I will display the result to my colleagues with confidence, the following is a good API for all these things. You just need to call the method directly .... When I went there, I felt like I would never love it again .... You can think about it later. Who is the blame? I don't have to worry about it? Before getting started with the project, try to use the resources around you to get the maximum support.

After completing the first instance in a week, the service can still be delivered in terms of functions, but the interface is paused by P, which means there is still much room for improvement. The next step is to compile the example of another machine. This machine is newly bought and has no relevant information, let alone demo or API. You can only rely on yourself this time. Even more depressing, this machine cannot connect to a computer for online debugging, and all debugging information cannot be output through logcat... In this case, if an exception occurs, you can only make a 1.1-point guess based on the Occurrence point... This occupies most of the development time. We still habitually transplanted the two demos we developed before and tried to change them to the serial port number and baud rate provided by the manufacturer. I thought this would work, but I was puzzled by the manufacturer, wrong serial port number... I tested it for two days. Next, I started to debug the printer module. This is also a hard job. First, the Bar Code cannot be printed, and then the printing will be stuck. After communication with the manufacturer, I decided to change the printer of another model... In other words, the situation has been improved, and the bar code can be played, but it is still pitfall. The printer does not support many instructions in the printer user manual provided by the manufacturer. If the printer cannot be centered, printing images is cumbersome. I was disappointed with the manufacturers. The next step is the debugging of the laser exit module. In fact, this is the code gun we purchased at the supermarket. This is also a serial port device. Just give it a startup command, what can be pitted is that after the data is scanned, when the data is read in the input stream, there is always intermittent phenomenon, and it cannot be ensured that 14 bytes are read each time... I went, and it took me two days to get stuck. Later I learned from the Internet that the input stream of the serial port is not very stable, it cannot be ensured that the number of bytes read each time is the same as the size of the array where data is stored. It is also easy to solve this bug, compare the actual number of bytes read with the expected number of bytes until the two are equal. So far, the interfaces of the three modules have been called, and the rest is to port these "drivers" to the code of another project.

In general, although the first work month was not as comfortable as we thought at school, we felt that we were growing every day and were able to get something from each day. The general feeling is that the days are quite full, the mood has been depressed, and there has been joy. This is what I want and what I can control. Now I am gradually looking for a balance between work and life, so that the two can be in a coordinated state.

Full moon --- happy after exhaustion

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.