Better HN
topnewbestaskshowjobs
Log inSign up

cjhdev

4 karma · joined Mar 16, 2016 (10y ago) · 16 submissions

Submissions

comment 5y ago · link · parent

I think this depends on the region. In the US you shouldn't exceed a dwell time limit on a single channel.

2.

Show HN: WebSockets in C for Embedded Applications(github.com ↗)

4 points · by cjhdev · 6y ago · discuss

3.

Show HN: Flora – LoRaWAN Network Server in Ruby(github.com ↗)

2 points · by cjhdev · 6y ago · discuss

4.

Show HN: An easy to use LoRaWAN implementation(github.com ↗)

1 points · by cjhdev · 7y ago · discuss

5.

Show HN: A Ruby wrapper for Olm double ratchet(github.com ↗)

1 points · by cjhdev · 8y ago · discuss

6.

Using Ruby to Emulate LoRaWAN Hardware(cjh.id.au ↗)

2 points · by cjhdev · 8y ago · discuss

comment 9y ago · link · parent

I have been improving a Ruby gem that I think would be useful for building web connected sensor applications (IoT stuff) in a hurry.

The tool implements a serialisation spec called The Blink Protocol. The spec is similar to Google Protobufs with a few differences, mainly:

- It's more compact on the wire (important for LPWAN)

- It's minimalistic and has a proper specification document

The gem implements a schema parser, a dynamic message class generator, and an extensible codec generator.

The idea is you can use the tool for both ends of your application:

- Use the codec generator to generate C source for your device

- Use the dynamic message class in your web app to consume messages

On the Ruby side it should be as easy to use as JSON.

https://github.com/cjhdev/slow_blink

comment 9y ago · link · parent

This is an example of using Flex and Bison to generate a parser that can be packaged up as a Ruby extension. The subject is JSON because it's LALR compatible and easily recognisable.

I've used this technique to produce tools that parse syntax other than JSON. I think it's neat because Flex/Bison is very mature, it works well the the Ruby C API, and the parser produced is self contained (i.e. no runtime components).

9.

Show HN: Parse JSON with Flex, Bison, and Ruby(github.com ↗)

3 points · by cjhdev · 9y ago · 1 comment

comment 10y ago · link · parent

I've learned a lot about LALR and GLR using Bison in combination with Ruby.

Bison and Flex are available as apt packages on Ubuntu and there is heaps of documentation.

The Ruby angle means you don't have to roll your own AST structures. Also, Ruby's 'VALUE' type is easily passed around in Bison grammar.

example:

https://github.com/cjhdev/slow_blink/blob/master/etc/slow_bl...

11.

Show HN: Blink Protocol in Ruby(github.com ↗)

1 points · by cjhdev · 10y ago · discuss

comment 10y ago · link · parent

SEEKING WORK - UK / Remote

Embedded software developer with background in smart meter product development.

  - Requirements capture, solution design, task decomposition, documentation
  - C, MISRA C, C++, Ruby
  - M2M protocols, especially those in the domain of smart metering (DLMS/COSEM, GBCS)
  - Automation with Jenkins and Ansible
email: cam@stackmechanic.com

linkedin: https://uk.linkedin.com/in/cameronisanengineer

comment 10y ago · link · parent

SEEKING WORK - UK / Remote

Embedded software developer with background in smart meter product development.

  - Requirements capture, solution design, task decomposition, documentation
  - C, MISRA C, C++, Ruby
  - M2M protocols, especially those in the domain of smart metering (DLMS/COSEM, GBCS)
  - Automation with Jenkins and Ansible
email: cam@stackmechanic.com

linkedin: https://uk.linkedin.com/in/cameronisanengineer

14.

Show HN: A MISRA C compatible AES, AES-GCM, and AES-CMAC implementation(github.com ↗)

3 points · by cjhdev · 10y ago · discuss