Skip to content

Instantly share code, notes, and snippets.

🛠
somewhere in your Makefile

Nicholas Van Doorn nvandoorn

🛠
somewhere in your Makefile
Block or report user

Report or block nvandoorn

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View stats-provider.ts
class StatsProvider {
private getSwitchedCellStrength(): Observable<number> {
return this.switch$
.switchMap((deviceId: string) =>
this.db
.list(this.paths.sensorStatList(deviceId, CELL_STRENGTH_KEY), {
query: {
orderByChild: 'datetime',
limitToLast: 1
}
View avc-logs.log
Jul 18 02:55:06 swi-mdm9x15 user.info Legato: INFO | avcDaemon[1028]/avcDaemon T=main | avcClient.c BearerEventCb() 251 | Connected 1
Jul 18 02:55:08 swi-mdm9x15 user.info Legato: INFO | avcDaemon[1028]/avcDaemon T=main | avcServer.c ProcessUpdateStatus() 1364 | Update state: Authentication started
Jul 18 02:55:08 swi-mdm9x15 user.info Legato: INFO | avcControl[814]/avcControl T=main | avcControl.c StatusHandler() 183 | Air Vantage agent reported update status: AUTHENTICATION_STARTED
Jul 18 02:55:10 swi-mdm9x15 user.info Legato: INFO | avcDaemon[1028] | Jul 18 02:55:10 WARN Wrong epoch, expected 1, got: 0
Jul 18 02:55:10 swi-mdm9x15 user.info Legato: INFO | avcDaemon[1028] | Jul 18 02:55:10 WARN Wrong epoch, expected 1, got: 0
Jul 18 02:55:12 swi-mdm9x15 user.info Legato: INFO | avcDaemon[1028] | Jul 18 02:55:12 WARN Wrong epoch, expected 1, got: 0
Jul 18 02:55:12 swi-mdm9x15 user.info Legato: INFO | avcDaemon[1028] | Jul 18 02:55:12 WARN Wrong epoch, expected 1, got: 0
Jul 18 02:55:14 swi-mdm9x15 user
View av-payload.json
{
"reboot": false,
"systems": {
"uids": [
"f42f6963ac484861ab094f2604d7d0cb"
]
},
"settings": [
{
"key": "digitalService.sensorConfig.digital1_outputKeys",
View callback2promise.ts
const fs = require('fs')
function readFilePromise(path: string, flags: string): Promise<string> {
return new Promise((resolve, reject) => {
fs.readFile(path, flags, (err, data) => {
// if the error exists, reject the promise
// and pass the error, otherwise resolve
// with our data
err ? reject(err) : resolve(data)
})
View avcupdate.log
Jun 27 21:49:19 swi-mdm9x15 user.info Legato: INFO | avcDaemon[2025]/avcDaemon T=main | avcAppUpdate.c NotifyObj9List() 692 | Found 11 object 9 instances
Jun 27 21:49:19 swi-mdm9x15 user.info Legato: INFO | avcDaemon[2025]/avcDaemon T=main | avcAppUpdate.c NotifyObj9List() 693 | obj9ListLen; 143 obj9List: </lwm2m/9/0>,</lwm2m/9/1>,</lwm2m/9/2>,</lwm2m/9/3>,</lwm2m/9/4>,</lwm2m/9/5>,</lwm2m/9/6>,</lwm2m/9/7>,</lwm2m/9/8>,</
Jun 27 21:49:19 swi-mdm9x15 user.err Legato: =ERR= | avcDaemon[2025]/avcDaemon T=main | avcFs.c ReadFs() 41 | failed to open /avc/sw/updateState: LE_NOT_FOUND
Jun 27 21:49:19 swi-mdm9x15 user.warn Legato: -WRN- | avcDaemon[2025]/avcDaemon T=main | avcAppUpdate.c GetSwUpdateState() 1465 | SW update state not found. Returning 'INITIAL' state
Jun 27 21:49:19 swi-mdm9x15 user.err Legato: =ERR= | avcDaemon[2025]/avcDaemon T=main | avcFs.c ReadFs() 41 | failed to open /avc/sw/updateResult: LE_NOT_FOUND
Jun 27 21:49:19 swi-mdm9x15 user.warn Legato: -WRN- | avcDaemon[2025]/avcDaemon T=main | avcA
View bermuda-triangle.log
root@swi-mdm9x15:~# cm radio
Power: OFF
Current Network Operato
Current RAT: Not available
Status: Not registered and not currently searching for new operator (LE_MRC_REG_NONE)
Signal: No signal strength (0)
PS: Packet Switched Unknown state (LE_MRC_REG_UNKNOWN)
@nvandoorn
nvandoorn / avclogs.log
Created Jun 3, 2018
avcService bootup sequence with command queued
View avclogs.log
Jun 3 06:00:38 swi-mdm9x15 user.debug Legato: DBUG | avcDaemon[1317]/avcDaemon T=main | osDebug.c lwm2m_printf() 84 | [omanager_ObjectsFree:1432] Wakaama RegisteredObjNb 0
Jun 3 06:00:38 swi-mdm9x15 user.debug Legato: DBUG | avcDaemon[1317]/avcDaemon T=main | osDebug.c lwm2m_printf() 84 | [lwm2m_init:69] Entering
Jun 3 06:00:38 swi-mdm9x15 user.debug Legato: DBUG | avcDaemon[1317]/avcDaemon T=main | osTime.c lwm2m_gettime() 31 | Device time: 1528005638
Jun 3 06:00:38 swi-mdm9x15 user.debug Legato: DBUG | avcDaemon[1317]/avcDaemon T=main | osDebug.c lwm2m_printf() 84 | [lwm2mcore_Init:946] Init done -> context 0xb70310c8
Jun 3 06:00:38 swi-mdm9x15 user.debug Legato: DBUG | avcDaemon[1317]/framework T=main | le_data_client.c DoConnectService() 363 | ======= Starting another client for 'avcDaemon.avcDaemon.le_data' service ========
Jun 3 06:00:38 swi-mdm9x15 user.debug Legato: DBUG | avcDaemon[1317]/framework T=main | LE_FILENAME le_mem_ForceAlloc() 841 | Memory pool 'avcDaemon.AssetData client' over
View busy-busy.log
[ 1.090401] qup_i2c qup_i2c.0: Bus still busy, status 132100
[ 1.169418] qup_i2c qup_i2c.0: Bus still busy, status 132100
[ 1.248435] qup_i2c qup_i2c.0: Bus still busy, status 132100
[ 1.327453] qup_i2c qup_i2c.0: Bus still busy, status 132100
[ 1.406470] qup_i2c qup_i2c.0: Bus still busy, status 132100
[ 2.121989] qup_i2c qup_i2c.0: Bus still busy, status 132100
[ 2.211872] qup_i2c qup_i2c.0: Bus still busy, status 132100
[ 2.301999] qup_i2c qup_i2c.0: Bus still busy, status 132100
[ 2.452006] qup_i2c qup_i2c.0: Bus still busy, status 132100
[ 2.516191] qup_i2c qup_i2c.0: Bus still busy, status 132100
View ltc-debug.log
root@swi-mdm9x15:~# i2cdetect -y -r 0
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- UU -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- UU -- -- UU -- -- -- --
70: -- -- -- -- -- -- UU --
View yocto-build-ls.txt
appsboot.mbn
appsboot.raw
boot_wp85.cwe
boot-yocto-legato_wp85.cwe
boot-yocto-mdm9x15-20180410212439.2k.img
boot-yocto-mdm9x15-20180410212439.2k.initramfs.img
boot-yocto-mdm9x15-20180410212439.4k.img
boot-yocto-mdm9x15-20180410212439.4k.initramfs.img
boot-yocto-mdm9x15.2k.img
boot-yocto-mdm9x15.2k.initramfs.img
You can’t perform that action at this time.