Endianness
1# @Language: Markdown 2# @Software: VS Code/MacDown/Typora/Vim 3# @Author : Di Wang 4# @Email : [email protected] Example: 0x0A0B0C0D Big Endian: addr inreasing-> 0x0A 0x0B 0x0C 0x0D Little Endian: addr increasing -> 0x0D 0x0C 0x0B 0x0A
1# @Language: Markdown 2# @Software: VS Code/MacDown/Typora/Vim 3# @Author : Di Wang 4# @Email : [email protected] Example: 0x0A0B0C0D Big Endian: addr inreasing-> 0x0A 0x0B 0x0C 0x0D Little Endian: addr increasing -> 0x0D 0x0C 0x0B 0x0A
1# @Language: Markdown 2# @Software: VS Code/MacDown/Typora/Vim 3# @Author : Di Wang 4# @Email : [email protected] provided shell commands in 7.0.8: 1epics> help 2# ClockTime_Report asDumpHash asInit 3asSetFilename asSetSubstitutions ascar asdbdump 4asphag aspmem asprules aspuag astac 5callbackParallelThreads callbackQueueShow 6callbackSetQueueSize casr cd coreRelease 7date dbCreateAlias dbDumpBreaktable dbDumpDevice 8dbDumpDriver dbDumpField dbDumpFunction dbDumpLink dbDumpMenu 9dbDumpPath dbDumpRecord dbDumpRecordType 10dbDumpRegistrar dbDumpVariable dbLoadDatabase dbLoadGroup dbLoadRecords 11dbLoadTemplate dbLockShowLocked dbNotifyDump dbPutAttribute 12dbPvdDump dbPvdTableSize dbReportDeviceConfig dbStateClear 13dbStateCreate dbStateSet dbStateShow dbStateShowAll dba 14dbap dbb dbc dbcar dbd 15dbel dbgf dbgl dbgrep dbhcr 16dbior dbjlr dbl dbla dbli 17dblsr dbnr dbp dbpf dbpr 18dbpvar dbs dbsr dbstat dbtgf 19dbtpf dbtpn dbtr dlload echo 20eltc epicsEnvSet epicsEnvShow epicsEnvUnset 21epicsMutexShowAll epicsParamShow epicsPrtEnvParams 22epicsThreadResume epicsThreadShow epicsThreadShowAll 23epicsThreadSleep errlog errlogInit errlogInit2 24exit generalTimeReport gft help 25installLastResortEventProvider iocBuild iocInit iocLogInit 26iocLogPrefix iocLogShow iocPause iocRun iocshCmd 27iocshLoad iocshRun on pft postEvent 28pval pvasr pwd refdiff refmon 29refsave refshow registerAllRecordDeviceDrivers 30registryDeviceSupportFind registryDriverSupportFind registryDump 31registryFunctionFind registryRecordTypeFind 32scanOnceQueueShow scanOnceSetQueueSize scanpel 33scanpiol scanppl setIocLogDisable 34softIocPVA_registerRecordDeviceDriver startPVAServer stopPVAServer 35system taskwdShow tpn var 36 37Type 'help <command>' to see the arguments of <command>. eg. 'help db*' # Note that, trailing comment does not work as you thought inside iocsh. if you run command like outputWhenHigherThan(12, 10) # output 10 when value > 12, do not be too surprised with the result. ...
1# @Time : 2020-04-17 2# @Language: Markdown 3# @Software: VS Code 4# @Author : Di Wang 5# @Email : [email protected] Raspberry pi Some memo during the usage of Raspberry Pi Linux Kernel How to obtain the kernel config options ? https://superuser.com/questions/287371/obtain-kernel-config-from-currently-running-linux-system sudo modprobe configs cat /proc/config.gz | gunzip > running.config less running.config Using a proxy vim /etc/environment 1export http_proxy="http://yourproxy:prot" 2export https_proxy="https://yourproxy:prot" 3export no_proxy="localhost, 127.0.0.1" Then run sudo visudo, add below line: ...
1# @Time : 2019-02-02 2# @Language: Markdown 3# @Software: VS Code 4# @Author : Di Wang 5# @Email : [email protected] A Short Report on YAML YAML means “YAML Ain’t a Markup Language”. It uses Python-style indentation to indicate nesting, and use [] for lists and {} for maps. Since the name is recursive, it is a better option to explain YAML by YAML. 1--- # Syntax 2basic syntax: 3 - whitespace indentation is used for denoteing structure and `tab` is not allowed 4 - comments begin with the `#` 5 - List members are denoted by leading hyphen (`-`) with one member per line 6 - use key:value to denote array 7 - case sensitive 8Support data structure: 9 - map (also called dictionary or hashes or key:value pair) 10 - array or list or sequence 11 - scalars 12 13# basic components 14map: 15 - map1: this is a map 16 - map2: {name: hello, id: world} 17list: 18 - cat 19 - dog 20 - cow 21 - [monkey, elephant] 22scalars: 23 null: ~ 24 boolean: 25 - TRUE # True (yaml1.1), string "Yes" (yaml1.2) 26 - FALSE 27 - yes 28 - no 29 - Yes 30 - YeS # will be recognized as a string 31 float: 32 - 3.14 33 - 2.99e+8 34 int: 35 - 65536 36 - 0b1010 # dec: 10 37 srting: 38 - apple 39 - "another string" 40 - '\n will be escaped' 41 - "\n will not be escaped" 42 - data: | 43 There once was a tall man from Ealing 44 Who got on a bus to Darjeeling 45 It said on the door 46 "Please don't sit on the floor" 47 So he carefully sat on the ceiling 48 - info: > 49 this is 50 an 51 info 52 53 \n 54 continued 55 info 56date and time: 57 # {date}t{time}+timezone 58 - iso8601: 2001-12-25t01:23:45.54+09:00 59 - date: &epoch 1970-01-01 60 - epochtime: *epoch 61explicit type: 62 str_true: !!str true # string rather than boolean 63 str_int: !!str 123 # string rather than int 64anchor and refers: 65 - anchor: &anchor001 66 Manager: Alice 67 Programer: Bob 68 Teacher: Dylan 69 Student: Ruby 70 - refer: *anchor001 71 - merger: 72 <<: *anchor001 73 Student: Python Parse this YAML file by Python3. ...
1# @Time : 2019-11-30 2# @Language: Markdown 3# @Software: VS Code 4# @Author : Di Wang 5# @Email : [email protected] Build MRF EVR230 on vxWorks This file is a guide to build your own MRF Timing IOC on vxworks as well as write your own device support to meet your own demand of EPICS record. Some links might be helpful: MRF Company EPICS mrfioc2 MSI devlib2 Requirements EPICS Base >= 3.14.8.2 devLib2 (2.9) MSI (Macro expansion tool) Required with Base < 3.15.1 Build mrfioc2 Download mrfioc2-2.2.0.tar.gz and extract to directory, name as “mrfioc2-2.2.0” ...
1# @Time : 2019-11-29 2# @Language: Markdown 3# @Software: VS Code 4# @Author : Di Wang 5# @Email : [email protected] EPICS Base Installation Instruction Check this site for the detail. README This MEMO will introduce how to build EPICS Base 3.14.12.5 on linux and run IOC on vxWorks, VME5500 . If you have any problem of the basic structure of EPICS (e.g. confused about the Host ARCH and Target ARCH), please refer to the EPICS Application Developer’s Guide. (Though it may take several days to read :) ...
1# @Time : 2019-11-19 2# @Language: Markdown 3# @Software: Typora 4# @Author : Di Wang 5# @Email : [email protected] Overview This essay will briefly introduce and compare several kinds of VCS software, IDE and popular text editors. I hope this article may help people in KEK who need to program (Using Java, C/C++, Python) and collaborate with others could select efficient and suitable tools easily. ...