Author Archives: Robins

Introduction to total phase data center

Have a Beagle ™ 480 USB Protocol Analyzer Protocol analysis tool
(https://www.totalphase.com/media/datasheet/TP_Beagle_USB_480_Protocol_Analyzer-Datasheet.pdf), you can grab the data on the USB bus. Data Center Software can be used to capture and analyze Data on the USB bus.
Software Download address
https://www.totalphase.com/products/data-center/
according to the need to choose which one to download. This software does not require installation and can be opened directly.

USB Drive Download
Windows:https://www.totalphase.com/products/usb-drivers-windows/
Linux:https://www.totalphase.com/products/usb-drivers-linux/
The USB driver under Linux is based on Libusb, so there is no need to install, just copy the extracted 99-totalphase rules to /etc/udev/rules.d/ directory and update the udev rules.

	For all products, the Linux driver is based on libusb and there is no need to install 
	any other drivers on the operating 	system. For information on access permissions,
	refer to the datasheets and the hotplug or udev infrastructure under Linux.

Use of Data Center software
There is a doc/ directory in the directory of the software, which contains the usage instructions of Beagle, Datacenter and Komodo.

Beagle. PDF contains knowledge points related to USB protocol, I2C protocol and SPI protocol;
datacenter. PDF on the use of Data Center software, including capture, filter, trigger, etc.;
komodo. PDF looks like it is about usb-to-can.
For example, if we want to see the enumeration process, we can quickly filter the data of other endpoints. If we Only want to keep the data of Endpoint 0, right click on the data panel to display the fast filtering option, in this case Show Only Endpoint. Of course, if you don’t want to Filter anything, click Disable Filter.

More importantly, if we know that an endpoint is transmitting audio files, we can display data for that endpoint only, filter out other endpoints, and finally File -> Export exports the data to a specific format, and the audio file is ready to play.

While fetching, there are always things that seem to be orphded-nanded-and SPLIT, as follows:

In the article below about the SPLIT and ORPHANED details:
https://www.totalphase.com/blog/2015/03/causes-split-orphaned-packets-beagle-usb-480-protocol-analyzer-captures-detects/
In summary:
SPLIT transfers are used by hosts to communicate with full-/low-speed devices through a high-speed hub. These transfers will have at least a Start SPLIT, and may include polling and handshaking as well.Orphaned packets can occur when a device is connected through a path that does not pass through the Beagle analyzer.
That is, at the time of the grab, there is another low-speed or full-speed device communicating on the USB bus, so SPILIT’s transfer occurs. Such warnings are perfectly normal. To get them out, I filtered the following in the LiveFilter panel:

12c Instant Client Throws System Error Code 126 or 193 or 106

Applicable to:
Oracle ODBC Driver – Version 12.1.0.1 and later
Microsoft Windows x64 (64-bit)
Microsoft Windows (32-bit)
symptom (of an illness)
Unable to load Oracle setup routine in instantclient_12_1 ODBC driver due to system error code 126: Unable to find the specified module. Oracle (C: \ \ instantclient_12_1 \ SQORAS32.DLL)
In a few cases, the error code is 193 or 106.
Note:This issue also applies to the full client and other lower versions.
Cause
There may not be a Visual c++ 2010 redistributable package on the system.
The solution
Install the “Visual c++ 2010 x86 Redistributable Package” to create a 32-bit DSN.
http://www.microsoft.com/en-in/download/details.aspx?id=5555
To create a 64-bit application or to create a 64-bit DSN install the following redistributable packages:
http://www.microsoft.com/en-in/download/details.aspx?id=13523
Oracle client, you need to install the Visual c++ 2013 redistributable package to resolve the issue.

How to deal with the error reported by live mail

Server Error: 0 x80048820
Server: ‘http://mail.services.live.com/DeltaSync_v2.0.0/Sync.aspx’
Windows Live Mail Error ID: 0 x80048820
 
——————————
To log in to MSN, click on the top right corner “ inbox ” (maybe you don’t have to click, just log in to MSN).
The cause may be login MSN in different places, resulting in inconsistent status, only through MSN login again to eliminate this repetition.
 
Company: MSN, MailLive not installed, inbox display 100 mail.
Home: MSN+MailLive,MailLive has collected part of it

Reproduced in: https://www.cnblogs.com/rock_chen/archive/2010/11/02/1867512.html

Texstudio prompts an error when compiling and viewing latex documents: package inputerror: Unicode character

error content:
Package inputenc Error: Unicode Character, (U+FF0C)(inputenc) not set up for use with LaTeX… · CE sensor data from specific scenarios,

cause:
Chinese characters may exist in the.tex file

solution:
Method 1 (recommended) :
screen Chinese punctuation, generally according to the error of the last can locate the problems in the paragraph, such as commas and periods in Chinese to English, compile again see no problem method 2 (not recommended)
[tools] – [orders] – [XeLatex] compile properly check (not recommended, after all, English expression symbols mixed not be appropriate)

A server error occurred. Please contact the administrator.

In terms of Django site management, login to site Admin, if there is a problem with a title, it could be for the following reasons:
1, localization, letter case didn’t pay attention to, the right is LANGUAGE_CODE = 'useful - Hans' and TIME_ZONE =' Asia/Shanghai ', then analysis is setting up the contents of the file has been changed after cannot be interpreter identification, so later met the same problem can according to this train of thought analysis (then if new create a project to try again, or if the original error, Maybe the previous project wasn't closed). 2. Without the model migration, the data table of the project will not be generated, and the login site is the operation of the data table, without the migration even without the table, how can you log into the site?

Oracle database error: fatal Ni connect error 12170

Fatal NI connect error 12170

VERSION INFORMATION:
TNS for Linux: VERSION 11.2.0.1.0 – Production
Oracle Bequeath NT Protocol Adapter for Linux: VERSION 11.2.0.1.0 – Production
TCP/IP NT Protocol Adapter for Linux: VERSION 11.2.0.1.0 – Production
TCP/IP NT Adapter for Linux:
Tracing not turned on.
Tns error struct:
ns main err code: 12535
TNS-12535: TNS:operation timed out
ns secondary err code: 12560
nt main err code: 505
TNS-00505: Operation timed out
nt secondary err code: 110
nt OS err code: 0
Client address: (ADDRESS=(PROTOCOL=tcp)(HOST=xxx.xxx.xxx.xxx)(PORT=33358))
The reason:
According to the online search, the session is in idle state because the client has not executed a statement for a period of time after connecting to Oracle, which is easy to be cut off by the network layer device. In Oracle 11GR2, due to the opening of ADR (Automatic Diagnostic Repository), this error is written into the alert log.
Solutions:
1. Close the ADR

在sqlnet.ora Added parameters.
DIAG_ADR_ENABLED=OFF

在listener.oraAdd an argument to the following (where <listenername> is replaced with your own listener name).
 DIAG_ADR_ENABLED_<listenername>=OFF

2. Oracle actively sends the probe package to the client

在sqlnet.ora Added parameters.
sqlnet.expire_time=10  ## Probe packets are sent to clients every 10 minutes, with a slight impact on network performance

3. Restart listening after adding parameters

lsnrctl stop
lsnrctl start
or
lsnrctl reload

 

Error: more than one row returned by a subquery used as an expression

Reason for error: There are multiple pieces of data with ID =1, but the code USES a single value to receive it.
Case study: Query the user whose age is 1. There are a lot of users in the database whose age is 1, but the code is received with an int, which causes this error to occur

dao: public int get(int age);
xml:
<select id = “get” resultType=“java.lang.Integer”>
	select age from user where age = 1;
</select>

The correct code is:

dao: public List<Integer> get(int age);
xml:
<select id = “get” resultType=“java.lang.Integer”>
	select age from user where age = 1;
</select>

ERROR 1054(42S22) Unknown column ‘password’ in ‘field list’ (Fixed)

This intention to modify a user’s password, the command found on the Internet is as follows

1 mysql> Update user set password=password(" new password ") where user= "username";

ERROR 1054(42S22) Unknown column ‘password’ in ‘field List’
The reason for the error is that the password field is no longer in mysql database in version 5.7, so the password field is changed to AUTHENTICation_string
So use the command:

>mysql -u root -p
Enter password: ********
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 12
Server version: 5.7.18-log MySQL Community Server (GPL)

Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> use mysql;
Database changed
mysql> select User from user;  # Here is the query user command
+-----------+
| User      |
+-----------+
| *******  |
| mysql.sys |
| root      |
+-----------+
3 rows in set (0.00 sec)

mysql> update user set password=password("*******") where user="*******";  # Change password report error
ERROR 1054 (42S22): Unknown column 'password' in 'field list'
mysql> update mysql.user set authentication_string=password('*******') where user='*******';  # Change password successfully
Query OK, 1 row affected, 1 warning (0.00 sec)
Rows matched: 1  Changed: 1  Warnings: 1

mysql> flush privileges;  # Effective immediately
Query OK, 0 rows affected (0.00 sec)

mysql> quit
Bye

n>mysql -u ******* -p # Login successfully with this user.
Enter password: ********
…………………………
mysql>

 

Undefined control sequence

The program was compiled with the following error,

! Undefined control sequence.
l.64 ...p(- \frac{E_j - E_i}{k_B T}) & \quad \text
                                                  {:  E_j > E_i}\\
?
! Undefined control sequence.
l.65     1 & \quad \text
                        {:  E_j<E_i}\\
?

Search for information on the Internet

The main reason is that \text is not found and you just need to add the relevant package, for example, \ Text in this example needs to add ams Math Package.

mysql workbench Error Code: 1046. No database selected Select the default DB to be used by doubl

Mysql workbench error
Error Code: 1046. No database selected Select the default DB to be used by double-clicking its name in the SCHEMAS list in the sidebar.

Mistakes in the early stages of software learning are particularly silly.

Error reason: the default database
is not selected
Solution: Double-click on one of the databases in the SCHEMAS list.