Hello Guys,
My routine is crashing when trying to perform analog weighing signal reading, using the ADS1231 library.
Probably some pointer error, could you help me?
Below the github link with...
Type: Posts; User: sergioms
Hello Guys,
My routine is crashing when trying to perform analog weighing signal reading, using the ADS1231 library.
Probably some pointer error, could you help me?
Below the github link with...
Thanks All for support,
There were no more errors in the code after your help.
The error was now in the CAN interface of the machine that was having trouble clearing the message queue.
I just left the recv function within the while and ran normally, without errors, without crashing.
However I have identified that the problem is in the ProcessarDadosRecebidos...
Thank you Salem,
It was already part of my plans to include the handling of packet leftovers, as I am handling the sending, I did a test routine to always send 13 bytes fixed.
At the moment, my...
Thanks Salem,
Now I changed the creation socket thread code like your suggestion, and not receiving/processing repeated data.
But. System continue to receive only exacly the same quantity of...
Hi flp1969,
Yes, I am from Brazil, SC ... I work for Meitech (Industrial Automation Company) producing machines for chicken fridges.
Very good to meet a fellow countryman here.
void...
mensagemRecebida is my buffer read from socket in.
I think this while is necessary, not to kill my thread .... it stays the whole time checking if something has arrived
while( (readSize =...
Hello guys
I'm having difficulty in a routine that will receive data via Socket and Send to a CAN interface.
My routine identifies a Bytes sequence, separates 13 bytes and processes, however...
Thanks you so much SALEM,
Now I'm studying your code, as soon as possible I will comment about results....
Apparently these algorithms serve to solve the same problem, but when we already know all the pieces available ...
Which is not exacly my case.
I did not express myself because of my short English.
* Yes, all packages need be to 2000 - 2030 grams, reject is a option to discard pieces when no way to fit the package, even in cases not last...
This software run in this machine:
YouTube
Actually, I have a software working at other situations, but 200-380g with 270g average pieces, is a difficult case!
No, no order, all itens can be distributed at any box in any time or order
Hi friends!
I need find a best way to combine pieces with 200-380g weight and form a package (box) of 2000 - 2030 grams.
At the system, the pieces come one each time and have 12 boxes (options)...
Thanks Salem.
Sorry, the problem was in my client socket routines.
/*
* SckClienteTest.c
*
* Created on: 13 de jul de 2018
* Author: sergiom
*/
How to manage a thread to receive/accept incoming connections and data receive, and other thread calls to SocketSendData and really send messages.
Actually some times messages are sended other...
That's right, perfect!
Thank you very much, it helped a lot!
Hi People,
Scale: 1 Weight: 155
Scale: 4 Weight: 231
Scale: 5 Weight: 247
Scale: 8 Weight: 332
Scale: 9 Weight: 328
Scale: 13 Weight: 342
Sorry guys,
At ServerModbus.h don't need #include "ModbusOptions.h"
main.c
#include "ServerModbus.h"
void* ThreadEntrada(void *arg);
void* ThreadSaida(void *arg);
int main(int lArgc, char *pcArgv[])
{
Algorism, I also could not translate, I installed Wolfram but I need to study better ...
WoodSTokk, thanks for the help.
Currently the system already works similarly, it is informed a delta and...
It depends on the size of the part being weighed.
The weighing platform is 30cm, a piece of 80g is longer in the center (straight) of the weighing curve and takes less time to go up and down.
For...
I am studying the best way to identify the real weight of a product that passes over a belt.
The system receives about 20 weighings, from the moment the scale is empty until the piece leaves the...
Thanks Algorism,
Exactly what I need