Friday, August 7, 2015

How to capture TCP dump in iPhone?

1. Need a Mac PC.
2. Install Xcode in the Mac
 - check UDID
 - execute rvictl command
3. Run Xcode > Window > Devices
 iPhone > Identifier
4. Run Terminal
 $ rvictl -s

 # start capturing TCP dump
 $ sudo tcpdump -i rvi0 -w trace.pcap

 # stop capturing TCP dump
 $ rvictl -x

* Reference
https://developer.apple.com/library/mac/qa/qa1176/_index.html
http://useyourloaf.com/blog/2012/02/07/remote-packet-capture-for-ios-devices.html

Tuesday, July 21, 2015

Android sleep

1. Wake up
write on /sys/power/state
2. Sleep
write mem /sys/power/state

Why mem?
I think mem means that suspend to RAM (memory).

From the Linux Document
https://www.kernel.org/doc/Documentation/ABI/testing/sysfs-power
and https://www.kernel.org/doc/Documentation/power/states.txt

Monday, July 20, 2015

How to study C# language

1. read the C# specification: "CSharp Language Specification.docx"
 - In the Microsoft web site, search "C# specification"
 - Download & read it

2. Inside C#

3. C# in Depth

& ...

HVT, LVT

http://www.edaboard.com/thread135577.html

HVT - High V threshold. Can be used in the path where timing is not critical. So by using HVT cells we can save power.
LVT - Low V threshold. One should use these cells in timing critical paths. These cells are fast but , comsumes more power due to its leakage. So it will consume more power. So use only when timing is critical.
SVT - Standard V threshold. Best of both world. Medium delay and medium power requirment. So if timing is not met by small magin with HVT, you should try with SVT. And at last LVT.

Do you know PS HOLD, PS_HOLD, PSHOLD?

PS HOLD stands for Power Supply HOLD in processor.

From the st document you can find the word.
 "For a successful startup, the PSHOLD (power supply hold) needs to be pulled high within specific time, tON_BLANK"
http://www.st.com/web/en/resource/technical/document/datasheet/CD00226957.pdf

Tuesday, September 23, 2014

About Python

Python for Informatics
http://www.pythonlearn.com/book.php

Sunday, August 17, 2014

Editor (Notepad++)

Editor (Notepad++)

1. book mark
 mark: ctrl + F2
 move: F2 (next), shift + F2

2. find
 ctrl + f

3. copy
 ctrl + c
 ctrl + INS

4. paste
 ctrl + v
 shift + INS

5. search
 Case 1:
 XXX_string|YYY_string (no space)
 eg, PM: suspend exit|PM: suspend entry

 Case 2: (regular expression)
 XXX.+YYY.
 Server.+com.

6. set color
 Settings > Shortcur Mapper... > Main menu > Using 1st Style:
 ctrl + 1 & ...

7. partial select
 alt + mouse left click -> drag

 eg,
Line 2471: <6>[ 8273.055772] PM: 
Line 2473: <6>[ 8276.644591] PM: 
Line 2491: <6>[ 8276.902557] PM: 
Line 2493: <6>[ 8283.473879] PM: 
Line 2502: <6>[ 8283.711415] PM: 
Line 2503: <6>[ 8283.711502] PM: 
Line 2519: <6>[ 8283.955396] PM: 
Line 2522: <6>[ 8294.129446] PM: