https://github.com/jo-tools/crccalculator
Xojo example project: CRCCalculator (Cyclic Redundancy Check: CRC8, CRC16, CRC32)
https://github.com/jo-tools/crccalculator
crc-algorithms crc-calculation crc16 crc32 crc8 docker docker-image xojo
Last synced: 23 days ago
JSON representation
Xojo example project: CRCCalculator (Cyclic Redundancy Check: CRC8, CRC16, CRC32)
- Host: GitHub
- URL: https://github.com/jo-tools/crccalculator
- Owner: jo-tools
- License: mit
- Created: 2022-01-08T15:46:51.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2025-03-09T17:01:09.000Z (7 months ago)
- Last Synced: 2025-03-09T17:28:51.510Z (7 months ago)
- Topics: crc-algorithms, crc-calculation, crc16, crc32, crc8, docker, docker-image, xojo
- Language: Xojo
- Homepage: https://www.jo-tools.ch
- Size: 22 MB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# CRCCalculator
**Cyclic Redundancy Check: CRC8, CRC16, CRC32**
Xojo example project[](LICENSE)
## Description
This example Xojo project shows how CRC Calculations can be implemented in pure Xojo Code.
Because CRC classes are not available in the Xojo Framework, one has to either use a 3rd Party Plugin - or calculate the Algorithm(s) manually.### Cyclic Redundancy Check Algorithm
This example is based on this documentation: [Understanding CRC](http://www.sunshine2k.de/articles/coding/crc/understanding_crc.html).
That article is also included as a [PDF](./docs/crc/Understanding_CRC.pdf).### ScreenShots
Built Desktop application running on macOS:
Built Desktop application running on Windows:
Built Web application running on macOS:
## Xojo
### Requirements
[Xojo](https://www.xojo.com/) is a rapid application development for Desktop, Web, Mobile & Raspberry Pi.The Desktop application Xojo example project `CRCCalculatorDesktop.xojo_project` and the Web application Xojo example project `CRCCalculatorWeb.xojo_project` are using:
- Xojo 2024r4.2
- API 2### How to use in your own Xojo project?
1. Copy/paste the required CRC Calculator Classes into your project
2. Create an instance of the Class
- by using a predefined Algorithm: `CRC16Calculator.CreateByType(CRC16Type.MODBUS)`
- or create a custom Calculator: `New CRC16Calculator("CRC-16/GENIBUS", &h1021, &hffff, false, false, &hffff)`
3. Get the result: `myCRCCalculatorInstance.Result("1234567890")`### Xojo Web App 2 Docker
This repository contains [Documentation](docs/xojo2docker/Xojo2Docker.pdf) about [how to package a Xojo built Web Application in a Docker Image](docs/xojo2docker/Xojo2Docker.pdf). The Web application Xojo example project `CRCCalculatorWeb.xojo_project` includes a Post Build Script which automates the task of building the Docker Image of the web application.## About
Juerg Otter is a long term user of Xojo and working for [CM Informatik AG](https://cmiag.ch/). Their Application [CMI LehrerOffice](https://cmi-bildung.ch/) is a Xojo Design Award Winner 2018. In his leisure time Juerg provides some [bits and pieces for Xojo Developers](https://www.jo-tools.ch/).### Contact
[](mailto:xojo@jo-tools.ch)
[](https://www.facebook.com/juerg.otter)
[](https://twitter.com/juergotter)### Donation
Do you like this project? Does it help you? Has it saved you time and money?
You're welcome - it's free... If you want to say thanks I'd appreciate a [message](mailto:xojo@jo-tools.ch) or a small [donation via PayPal](https://paypal.me/jotools).[](https://paypal.me/jotools)