Categories
Development

Soldering

The image above shows something I call a CAN4VSCP trunk adapter. Soldering together a few of these for testing today. Handy to have on the lab bench if you have buses with different devices that need to be connected and disconnected. Here most devices can easily be connected to the bus.

Actually, I’m working on some demos for Wiznet. The WIZ-IP20 is a very nice device that can work as a TCP/IP server/client, UDP/multicast server/client and MQTT client and a bit more. You control it with serial commands. Simple as can be, and you can choose any processor you like.

Even better is that it contains the W55RP20 and that you can also load application code into it which completely replaces the serial-to-Ethernet functionality. Now it’s basically possible to create almost anything. My idea is to make a demo with NFC functionality and a slightly simpler demo that essentially just demonstrates some VSCP functionality. I also have two other boards from Wiznet that will be included.

So right now it’s a break from what I’m actually working on. But I’m expecting to be able to finish this after Midsummer so I can continue my other stuff after the summer vacations.

Categories
General

The pressure | daniel.haxx.se

I’m doing Open Source primarily because I love it. The social aspects, the for-the-good angle and for the challenge of engineering this to work for everyone. I also do it because it is my full-time job and getting food on the table and provide for my family is not unimportant. It may come as a … Continue reading The pressure →

Source: The pressure | daniel.haxx.se

Categories
General

Unboxing WIZnet goodies

Check out there site https://wiznet.io

Categories
General

Flipper One — we need your help

With Flipper One, we’re reimagining what a Linux cyberdeck can be — it’s a huge project. We’re opening up the development process and asking the community for help.

Source: Flipper One — we need your help

Categories
Open Hardware

JLCPCB

When I come home today the new cards are delivered from JLCPCB in China.

Have to do some other stuff first before I can look closer. Typically…

Looks good. Four layer boards this time.

And it fits in the new enclosure to. Happy. Build and test tomorrow (hopefully). The code for this WIFI to CAN4VSCP hardware is already done and working.

Just to be clear. JLCPCB does not sponsor my boards. I can recommend them anyway. Six days from order to delivery using Europack. Superb quality.

Categories
General

CAN4VSCP wireless gateway

Categories
VSCP

VSCP daemon moved

The VSCP daemon now is in it’s of repository https://github.com/grodansparadis/vscp-daemon . The VSCP repository will be streamlined to hold common code that will server other parts and also keep general discussions and wiki.

Categories
VSCP

Changes to vscp.h

The structures in vscp.h for events now is typedefed as vscp_event_t and vscp_event_ex_t. The old vscpEvent and vscpEventEx is still available for backward compatibility.

Also

vscpEventFilter has change to vscp_event_filter_t

VSCPStatistics to vscp_statistics_t

and

VSCPStatus to vscp_status_t

Old typedefs are still available for compatibility with legacy code.

Categories
LoRa Wireless

MeshCore or Meshtastic: Which one is better? – Latest News from Seeed Studio

MeshCore or Meshtastic

Source: MeshCore or Meshtastic: Which one is better? – Latest News from Seeed Studio

Categories
VSCP

nano second timestamp

black and white photo of clocks
Photo by Andrey Grushnikov on Pexels.com

The 64-bit nano second timestamp is now introduced for VSCP. This is what we often call a Unix timestamp with nano second resolution and which holds the number of nanoseconds since the epoch (January 1, 1970, 00:00:00 UTC).

The “old” format with separate bytes for year, month, day, hour, minute, second and a 32-bit microsecond timestamp was constructed that way to make it easy for very low-end devices to receive/send time information. This is still possible as the format is preserved. But the new format will be promoted.

Note that it is still possible to send a microsecond timestamp for devices that rely on it. Just multiply the value with 1000 and set it to timestamp_ns. Relative timestamps can easily still be used.

Two header bits 9/8 specify the frame format. They were originally set to 0b00 and would with the new format be set to 0b01. So when a new event is constructed they shoudl be set. The define VSCP_HEADER16_FRAME_VERSION_UNIX_NS in vscp.h does that. Priority is probably also bits that should be altered usually to VSCP_PRIORITY_NORMAL

Helpers to convert between the two formats are available in the helper library and in vscphelper.cpp and vscp-firmware-helper.c. They are

int64_t
vscp_fwhlp_to_unix_ns(int year, int month, int day, int hour, int minute, int second, uint32_t microsecond);

and

void
vscp_fwhlp_from_unix_ns(int64_t unix_ns,
int *year,
int *month,
int *day,
int *hour,
int *minute,
int *second,
uint32_t *microsecond);

year and month is still available in the event defines also if nanosecond timestamps are used. This to preserve the size of frames. It is recommended to set year=0xffff and month=0xff when the new timestamp is used. Still the frame versin bits in the header is the main detection to use for frame type.