superwaitsum / gdsercomm Goto Github PK
View Code? Open in Web Editor NEWGDNative Serial port communication
License: MIT License
GDNative Serial port communication
License: MIT License
Hi,
I have already written one application to work with a serial device under windows which is working perfectly. I now need a second application which sends AT commands to a device, but under Windows, I get no response. The device if configured for 115200 baud, 8 bits, 1 stop bit, even parity, and works fine under linux.
Is there anything that I can supply to help fix this, although I do realise that it may no longer be maintained (whilst still very useful).
Many thanks,
Mark
Hello,
When I try to compile the following shows
vk:GDSercomm vanoak$ scons p=osx
scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
gcc -o src/GDSercomm.os -c -g -O3 -arch x86_64 -fPIC -I. -Igodot_headers -Isercomm/include/public -Ilib src/GDSercomm.c
In file included from src/GDSercomm.c:5:
In file included from sercomm/include/public/sercomm/sercomm.h:28:
In file included from sercomm/include/public/sercomm/base.h:28:
sercomm/include/public/sercomm/common.h:28:10: fatal error: 'config.h' file not
found
#include "config.h"
^~~~~~~~~~
1 error generated.
scons: *** [src/GDSercomm.os] Error 1
scons: building terminated because of errors.
It seems to me that the problem is not related to GDSercomm but some directory that should be on PATH, but I can't figure it out which is.
Thank you.
When I want open the port, For some seconds game freezes and suddenly window closed and process killed.
This error appear in output windows:
drivers/windows/stream_peer_tcp_winsock.cpp:203 - Server disconnected!
I want use it on linux. But when i run [scons p=linux], ERROR :
src/GDSercomm.c:1:10: fatal error: gdnative_api_struct.gen.h: No such file or directory
I have a device which sends data over serial port, but this data is not formated as string.
It just sends bytes and I have to get my values from these bytes.
For example, the device sends me bytes like this:
165 0 21 24 11
165 0 22 22 10
In godot I get errors in the console output, because the bytes are outside of unicode range:
"unicode error: invalid skip"
"unicode error: no space left"
"unicode error: invalid utf8"
Would it be possible to have a function "readByteArray", so that the bytes from the serial port are returned as array, like [165, 0, 21, 24, 11], insted of strings?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.