profile
viewpoint
Astro astro Dresden, Germany http://spaceboyz.net/~astro/ PGP: A5EE 826D 645D BE35 F9B0 9933 5851 2AE8 7A69 900F

astro/bitford 97

BitTorrent Client in a Chrome Packaged App

astro/chaosbay 34

BitTorrent Tracker with upload & browsing, written on the 25th Chaos Communication Congress

astro/bitlove-ui 31

Bitlove.org on Yesod

astro/collectd 13

Some personal modifications to collectd, the kick-ass data collector

astro/dat-elasticsearch-upload 7

Upload from dat into ElasticSearch

astro/dat-osm-import 7

Import OpenStreetMap data into dat

astro/ceilingled 5

Yet another hackerspace illumination

astro/atomstreamr 4

Ruby interface to http://updates.sixapart.com/atom-stream.xml

astro/bitorama 4

A BitTorrent gadget on node.js

startedMic92/nixos-aarch64-images

started time in an hour

started2xlink/stillePost

started time in an hour

created repositoryfaern/adventofcode2020

My solutions for https://adventofcode.com/2020

created time in an hour

startedbleeptrack/rc3-generator

started time in an hour

startedflix477/widevine_rs

started time in 2 hours

startedtdlib/td

started time in 3 hours

issue openedxmppjs/xmpp.js

iqCaller.request or iqCaller.get UnhandledPromiseRejectionWarning: TimeoutError

When I run my code I am getting the result iq in the stanza event immediately. But the iqCaller hangs on the called line for the timeout duration and displays the error below. I am testing this way to get error free results, so the final code will be more organized once I figure out the problem.

Everything is connecting and working fine otherwise and getting the expected stanzas returned etc.

(node:22704) UnhandledPromiseRejectionWarning: TimeoutError
    at C:\node\project\node_modules\@xmpp\events\lib\timeout.js:17:13
    at async IQCaller.request (C:\node\project\node_modules\@xmpp\iq\caller.js:54:7)
    at async xmppClient (C:\node\project\server.js:35:18)
(node:22704) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:22704) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Project code skeleton:

const { client, xml, jid } = require("@xmpp/client");
const debug = require("@xmpp/debug");
const { json } = require("body-parser");
var parser = require("xml2json");

const xmppClient = async function () {

  const xmpp = client({
    service: service,
    username: roomNick,
    domain: domain,
    password: password,
    resource: resource,
  });

  const { iqCaller } = xmpp;

  xmpp.on("error", (err) => {
    console.error(err);
  });

  address = await xmpp.start().catch(console.error);

  let response = await iqCaller.get(xml("query", { xmlns: "jabber:iq:profile" }, xml("command", {}, content)), to, 2 * 1000);
  console.log(response);
};

xmppClient();

created time in 3 hours

started2mas/SelectNextOccurrence

started time in 4 hours

startedhooram/ownphotos

started time in 4 hours

pull request commentquartiq/stabilizer

Adding support for Pounder DDS QSPI profile stream

DS4_QuickPrint14

Above is a capture of SCK going to the DDS and the IO_Update signal. As can be seen, IO_Update is properly toggling on for 50nS after the DDS profile has been written over SPI

ryan-summers

comment created time in 4 hours

startednaufaldi/next-landing-vpn

started time in 5 hours

issue commentgoogle/s2geometry

how does uber uses s2 to divide map into cells ?

bro can you please tell me where can I learn google s2 geometry. Because I am doing a project like uber for my locality. i want to use this library In the project so could you please tell me how could i learn it.

nani-samireddy

comment created time in 5 hours

Pull request review commentquartiq/stabilizer

Adding support for Pounder DDS QSPI profile stream

 const APP: () = {             let adc1_in_p = gpiof.pf11.into_analog();             let adc2_in_p = gpiof.pf14.into_analog(); -            Some(-                pounder::PounderDevices::new(-                    io_expander,-                    ad9959,-                    spi,-                    adc1,-                    adc2,-                    adc1_in_p,-                    adc2_in_p,-                )-                .unwrap(),+            let pounder_devices = pounder::PounderDevices::new(+                io_expander,+                &mut ad9959,+                spi,+                adc1,+                adc2,+                adc1_in_p,+                adc2_in_p,             )+            .unwrap();++            let dds_output = {+                let io_update_trigger = {+                    let _io_update = gpiog+                        .pg7+                        .into_alternate_af2()+                        .set_speed(hal::gpio::Speed::VeryHigh);++                    // Configure the IO_Update signal for the DDS.+                    let mut hrtimer = hrtimer::HighResTimerE::new(+                        dp.HRTIM_TIME,+                        dp.HRTIM_MASTER,+                        dp.HRTIM_COMMON,+                        ccdr.clocks,+                        ccdr.peripheral.HRTIM,+                    );++                    // IO_Update should be latched for 50ns after the QSPI profile write. Profile writes+                    // are always 16 bytes, with 2 cycles required per byte, coming out to a total of 32

This is now configurable, but the limit is 16 bytes. This is only limited by the QSPI FIFO size and the size used in the ad9959 serializer, so it could theoretically change in the future and invalidate these numbers

ryan-summers

comment created time in 5 hours

startedsusam/spcss

started time in 5 hours

startedKoljaWindeler/ics

started time in 5 hours

PR opened quartiq/stabilizer

Adding support for Pounder DDS QSPI profile stream

This is an initial draft PR of the proposed updates to the high-speed QSPI data stream to Pounder.

Current measurements indicate that each profile serialization + staging process currently takes 300ns for a profile of 12 bytes. The actual QSPI data write is only 75ns for 3 32-bit words, so there is room for future improvement when the layout of each profile is known in advance.

TODO:

  • [ ] Document new modules

Reserved for future PR: Define a "static" layout for the pounder profile to avoid the overhead of the serialization process. This would allow us to copy bytes into an array at known offsets and do it really quickly.

+472 -528

0 comment

6 changed files

pr created time in 5 hours

startedkalkih/mini-graph-card

started time in 6 hours

startedthomasloven/lovelace-fold-entity-row

started time in 6 hours

startedapache/pulsar

started time in 7 hours

startedhomerchen19/github-file-icons

started time in 7 hours

delete branch quartiq/stabilizer

delete branch : feature/adc-dac-io-macros

delete time in 7 hours

push eventquartiq/stabilizer

Robert Jördens

commit sha 1906185286dbd9cf25eb4810fda6619848f2450d

adc: macro

view details

Robert Jördens

commit sha c04180635b9b50e347c8bfba48c9c6370d06c2b5

dacs: macros

view details

Robert Jördens

commit sha 911fb661461eb97df144b402bb8c4dc9dfa1cea1

main: process() code duplication a bit

view details

Robert Jördens

commit sha 71898308968ef39c82e87d021a18044afcc69b2c

main: put AFEs into a tuple

view details

Robert Jördens

commit sha 754ebed50db05d05859bc2b6076c527bbfbb0e06

adc: transfer complete interrupt on Adc1

view details

Robert Jördens

commit sha d8c6f39d0f7207e5b1ea58de532227242270295f

adc/dac: make the buffer handling more symmetric

view details

Robert Jördens

commit sha 8cf380a488e5964a58ee420bb2312d2877dcc632

dac/adc: doc cleanup [nfc]

view details

Robert Jördens

commit sha ab50f550623627d377a7fef7bc7dc0861bed4999

adc/dac: docstrings

view details

Robert Jördens

commit sha c72f95993321944880c1fa96a4a4dc073559502d

Merge remote-tracking branch 'origin/master' into feature/adc-dac-io-macros * origin/master: more nightly clippy lints clippy lints gha: clippy-check build(deps): bump paste from 1.0.2 to 1.0.3 build(deps): bump panic-semihosting from 0.5.4 to 0.5.6

view details

Robert Jördens

commit sha b1301a61849ef0fe7669073ed178130d72d66f53

dac,adc: spelling

view details

Robert Jördens

commit sha 34d59dac5dd876b1f1ae2ea20333f1cc35cdfb70

adc: merge acquire_buffer and release_buffer again

view details

Robert Jördens

commit sha 31fcdcc97dcb7647cf402584621a6034c6a5fb95

Merge branch 'master' into feature/adc-dac-io-macros * master: cargo: add docs for target cpu/features iir: more generic math helpers, use core::intrinsics cargo fmt [nfc] iir: vminnm/vmaxnm iir: fmt [nfc] iir: fix comment [nfc] cargo-config: cm7 features iir: copy_within is better than rotate_right processing: use faster unsafe truncate

view details

bors[bot]

commit sha 051715ea3268754f1c8c263041a1b01d9b9e4377

Merge #180 180: Feature/adc dac io macros r=jordens a=jordens I wanted to try macros. This moves the ADC and DAC DMA setup into macros reducing code footprint. Hopefully no functional changes there. I didn't test this on hardware and I may have missed differences between `Adc0`/`Adc1` and `Dac0`/`Dac1`. It removes the `AdcInputs` and `DacOutputs` structs and replaces them with tuples as they were just fan-outs/fan-ins. It also does some minor tweaks in the `process()` ISR towards higher flexibility enforces some data patterns to help the compiler. Differences missing: * [x] `.transfer_complete_interrupt(true)` for `Adc1` only: needed * [x] `.circular_buffer(true);` for `Dac1` only: close #183 Co-authored-by: Robert Jördens <rj@quartiq.de>

view details

push time in 7 hours

PR merged quartiq/stabilizer

Feature/adc dac io macros

I wanted to try macros. This moves the ADC and DAC DMA setup into macros reducing code footprint. Hopefully no functional changes there. I didn't test this on hardware and I may have missed differences between Adc0/Adc1 and Dac0/Dac1.

It removes the AdcInputs and DacOutputs structs and replaces them with tuples as they were just fan-outs/fan-ins. It also does some minor tweaks in the process() ISR towards higher flexibility enforces some data patterns to help the compiler.

Differences missing:

  • [x] .transfer_complete_interrupt(true) for Adc1 only: needed
  • [x] .circular_buffer(true); for Dac1 only: close #183
+340 -683

4 comments

3 changed files

jordens

pr closed time in 7 hours

issue closedquartiq/stabilizer

DAC1 DMA stream operates in circular mode

The DAC1 DMA stream is configured in circular_buffer mode, which means that it will loop once the transfer completes. This is not the desired behavior, as the DMA transfer should end after all data is transfered.

For existing applications, I do not believe this generates incorrect output because a new DMA transfer is scheduled before the looped data can be transmitted, but this could cause faults in the future.

CC @jordens who discovered this in https://github.com/quartiq/stabilizer/pull/180

closed time in 7 hours

ryan-summers

pull request commentquartiq/stabilizer

Feature/adc dac io macros

Build succeeded:

jordens

comment created time in 7 hours

delete branch quartiq/stabilizer

delete branch : staging.tmp

delete time in 8 hours

push eventquartiq/stabilizer

Robert Jördens

commit sha 1906185286dbd9cf25eb4810fda6619848f2450d

adc: macro

view details

Robert Jördens

commit sha c04180635b9b50e347c8bfba48c9c6370d06c2b5

dacs: macros

view details

Robert Jördens

commit sha 911fb661461eb97df144b402bb8c4dc9dfa1cea1

main: process() code duplication a bit

view details

Robert Jördens

commit sha 71898308968ef39c82e87d021a18044afcc69b2c

main: put AFEs into a tuple

view details

Robert Jördens

commit sha 754ebed50db05d05859bc2b6076c527bbfbb0e06

adc: transfer complete interrupt on Adc1

view details

Robert Jördens

commit sha d8c6f39d0f7207e5b1ea58de532227242270295f

adc/dac: make the buffer handling more symmetric

view details

Robert Jördens

commit sha 8cf380a488e5964a58ee420bb2312d2877dcc632

dac/adc: doc cleanup [nfc]

view details

Robert Jördens

commit sha ab50f550623627d377a7fef7bc7dc0861bed4999

adc/dac: docstrings

view details

Robert Jördens

commit sha c72f95993321944880c1fa96a4a4dc073559502d

Merge remote-tracking branch 'origin/master' into feature/adc-dac-io-macros * origin/master: more nightly clippy lints clippy lints gha: clippy-check build(deps): bump paste from 1.0.2 to 1.0.3 build(deps): bump panic-semihosting from 0.5.4 to 0.5.6

view details

Robert Jördens

commit sha b1301a61849ef0fe7669073ed178130d72d66f53

dac,adc: spelling

view details

Robert Jördens

commit sha 34d59dac5dd876b1f1ae2ea20333f1cc35cdfb70

adc: merge acquire_buffer and release_buffer again

view details

Robert Jördens

commit sha 31fcdcc97dcb7647cf402584621a6034c6a5fb95

Merge branch 'master' into feature/adc-dac-io-macros * master: cargo: add docs for target cpu/features iir: more generic math helpers, use core::intrinsics cargo fmt [nfc] iir: vminnm/vmaxnm iir: fmt [nfc] iir: fix comment [nfc] cargo-config: cm7 features iir: copy_within is better than rotate_right processing: use faster unsafe truncate

view details

bors[bot]

commit sha 051715ea3268754f1c8c263041a1b01d9b9e4377

Merge #180 180: Feature/adc dac io macros r=jordens a=jordens I wanted to try macros. This moves the ADC and DAC DMA setup into macros reducing code footprint. Hopefully no functional changes there. I didn't test this on hardware and I may have missed differences between `Adc0`/`Adc1` and `Dac0`/`Dac1`. It removes the `AdcInputs` and `DacOutputs` structs and replaces them with tuples as they were just fan-outs/fan-ins. It also does some minor tweaks in the `process()` ISR towards higher flexibility enforces some data patterns to help the compiler. Differences missing: * [x] `.transfer_complete_interrupt(true)` for `Adc1` only: needed * [x] `.circular_buffer(true);` for `Dac1` only: close #183 Co-authored-by: Robert Jördens <rj@quartiq.de>

view details

push time in 8 hours

push eventquartiq/stabilizer

Robert Jördens

commit sha 1906185286dbd9cf25eb4810fda6619848f2450d

adc: macro

view details

Robert Jördens

commit sha c04180635b9b50e347c8bfba48c9c6370d06c2b5

dacs: macros

view details

Robert Jördens

commit sha 911fb661461eb97df144b402bb8c4dc9dfa1cea1

main: process() code duplication a bit

view details

Robert Jördens

commit sha 71898308968ef39c82e87d021a18044afcc69b2c

main: put AFEs into a tuple

view details

Robert Jördens

commit sha 754ebed50db05d05859bc2b6076c527bbfbb0e06

adc: transfer complete interrupt on Adc1

view details

Robert Jördens

commit sha d8c6f39d0f7207e5b1ea58de532227242270295f

adc/dac: make the buffer handling more symmetric

view details

Robert Jördens

commit sha 8cf380a488e5964a58ee420bb2312d2877dcc632

dac/adc: doc cleanup [nfc]

view details

Robert Jördens

commit sha ab50f550623627d377a7fef7bc7dc0861bed4999

adc/dac: docstrings

view details

Robert Jördens

commit sha c72f95993321944880c1fa96a4a4dc073559502d

Merge remote-tracking branch 'origin/master' into feature/adc-dac-io-macros * origin/master: more nightly clippy lints clippy lints gha: clippy-check build(deps): bump paste from 1.0.2 to 1.0.3 build(deps): bump panic-semihosting from 0.5.4 to 0.5.6

view details

Robert Jördens

commit sha b1301a61849ef0fe7669073ed178130d72d66f53

dac,adc: spelling

view details

Robert Jördens

commit sha 34d59dac5dd876b1f1ae2ea20333f1cc35cdfb70

adc: merge acquire_buffer and release_buffer again

view details

Robert Jördens

commit sha 31fcdcc97dcb7647cf402584621a6034c6a5fb95

Merge branch 'master' into feature/adc-dac-io-macros * master: cargo: add docs for target cpu/features iir: more generic math helpers, use core::intrinsics cargo fmt [nfc] iir: vminnm/vmaxnm iir: fmt [nfc] iir: fix comment [nfc] cargo-config: cm7 features iir: copy_within is better than rotate_right processing: use faster unsafe truncate

view details

bors[bot]

commit sha 311bc51f7f87f1cdfa7c8200fee44e17627332b5

[ci skip][skip ci][skip netlify] -bors-staging-tmp-180

view details

push time in 8 hours

create barnchquartiq/stabilizer

branch : staging.tmp

created branch time in 8 hours

pull request commentquartiq/stabilizer

Feature/adc dac io macros

bors r+

jordens

comment created time in 8 hours

more