Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / [SOLVED] Serial Packet Data Plugin for protocol development

Author
Message
Yeshu777
4
Years of Service
User Offline
Joined: 26th Feb 2020
Location: Cardiff ( Caerdydd ), Wales ( Cymru ), UK
Posted: 24th Jun 2023 01:23
Hi All,

I've developed a rather simple Plugin that allows you to send raw bytes, or an array of bytes ( eg. a command packet ) down the serial port.

It's purpose is for low level protocol development, rather than sending strings as per SerialPlugin.

If it's of use to anyone I'm happy to share.

The author of this post has marked a post as an answer.

Go to answer

Virtual Nomad
Moderator
18
Years of Service
User Offline
Joined: 14th Dec 2005
Location: SF Bay Area, USA
Posted: 24th Jun 2023 01:43 Edited at: 24th Jun 2023 01:49
i know nothing about protocol development but assuming that THIS is the SerialPlugin you referenced?

meanwhile, as this is in Showcase, you should share or showcase something more than a description? ie, feel free to attach the dll (and i'll fit it into the first post HERE). i'm sure someone would appreciate it

btw, this one's different in that it can send bytes vs strings? again, i don't know anything about this stuff but trying to understand what differentiates this from the TGC plugin. if/when i do reference this in the directory, would "Byte-sized Serial Plugin" be a good description?
Yeshu777
4
Years of Service
User Offline
Joined: 26th Feb 2020
Location: Cardiff ( Caerdydd ), Wales ( Cymru ), UK
Posted: 24th Jun 2023 12:49 Edited at: 26th Jun 2023 10:16
Hi VM,

It's different to SerialPlugin as this only sends strings.

eg. try sending the byte value 0x00 with SerialPlugin.. not a lot happens.

This plugin will allow you to send a packet of hex / decimal / byte values

So in essence, you could send [ 0, 0, 1, 253, 2 ] via the serial port..

And yes, I've posted in the wrong forum!

Too many late nights
335600330
1
Years of Service
User Offline
Joined: 25th Jul 2023
Location:
Posted: 25th Jul 2023 13:43
Dear Ye

Could you please share your serial plugin to me? I confused “string “ problem so much.

Thank you so much.

335600330gfk@gmail.com
Yeshu777
4
Years of Service
User Offline
Joined: 26th Feb 2020
Location: Cardiff ( Caerdydd ), Wales ( Cymru ), UK
Posted: 2nd Sep 2023 12:22
Hi!

Didn't get a notification of your response, happy to share my byte version

Yeshu777
4
Years of Service
User Offline
Joined: 26th Feb 2020
Location: Cardiff ( Caerdydd ), Wales ( Cymru ), UK
Posted: 23rd Sep 2023 14:37 Edited at: 23rd Sep 2023 19:10
This post has been marked by the post author as the answer.
Low Level Serial PlugIn

Hi All,

Here's a simple 'low-level' serial plugin for all to use, at present I've only compiled the DLL for Windows64.

It differs from SerialPlugin as it's sending RAW bytes not strings, so can be used for talking to Arduino's, Raspberry Pi's etc.

eg..

If you want to send a packet like an address poll..

[ destination address, nof bytes, host address, command, checksum ]

[ 0, 0, 1, 254, 2 ] ( decimal / hex )

Usage and Commands:



Attachments

Login to view attachments
blink0k
Moderator
11
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
JDforce
20
Years of Service
User Offline
Joined: 27th Jul 2004
Location: Sea of Tranquility
Posted: 22nd Dec 2023 03:46
Hi Yeshu777,
Do you have a version of the plugin for Raspberry Pi?
Let's go to Mars
Yeshu777
4
Years of Service
User Offline
Joined: 26th Feb 2020
Location: Cardiff ( Caerdydd ), Wales ( Cymru ), UK
Posted: 23rd Dec 2023 16:49 Edited at: 23rd Dec 2023 16:51
Hi,

I'll take a look at it.

At present I use a simple c program I wrote, opens the COM port and acts as a go between AppGameKit and the system.

You can then call it via RunApp from AppGameKit, admittedly it was a quick fix solution, worked - so left it as is.

It'll send whatever you pass as variables.

This was to talk to an Arduino Nano / Mega whatever.. see the following :



Yeshu777

Login to post a reply

Server time is: 2024-11-21 09:48:03
Your offset time is: 2024-11-21 09:48:03