Search:

Type: Posts; User: sergioms

Page 1 of 8 1 2 3 4

Search: Search took 0.01 seconds.

  1. Routine locking when calling weight reading function (Pointer as argument)

    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...
  2. Thanks All for support, There were no more...

    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.
  3. I just left the recv function within the while...

    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...
  4. Thank you Salem, It was already part of my...

    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...
  5. Thanks Salem, Now I changed the creation socket...

    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...
  6. Hi flp1969, Yes, I am from Brazil, SC ... I...

    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...
  7. mensagemRecebida is my buffer read from socket...

    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 =...
  8. Socket buffer processing, start repeating data and get lost

    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...
  9. Thanks you so much SALEM, Now I'm studying...

    Thanks you so much SALEM,

    Now I'm studying your code, as soon as possible I will comment about results....
  10. Apparently these algorithms serve to solve the...

    Apparently these algorithms serve to solve the same problem, but when we already know all the pieces available ...

    Which is not exacly my case.
  11. I did not express myself because of my short...

    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...
  12. This software run in this machine: YouTube...

    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!
  13. No, no order, all itens can be distributed at any...

    No, no order, all itens can be distributed at any box in any time or order
  14. How to combines differents pieces and form a package

    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)...
  15. Thanks Salem.

    Thanks Salem.
  16. Sorry, the problem was in my client socket...

    Sorry, the problem was in my client socket routines.



    /*
    * SckClienteTest.c
    *
    * Created on: 13 de jul de 2018
    * Author: sergiom
    */
  17. Socket Message only receive / Not Send (Pthread Issue)

    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...
  18. That's right, perfect! Thank you very much, it...

    That's right, perfect!
    Thank you very much, it helped a lot!
  19. How The best way to combine all possibilities in array?

    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
  20. Sorry guys, At ServerModbus.h don't need...

    Sorry guys,

    At ServerModbus.h don't need #include "ModbusOptions.h"
  21. LD error - Multiple definition of 'UT_BITS_ADDRESS' / Previous Definition here

    main.c


    #include "ServerModbus.h"

    void* ThreadEntrada(void *arg);
    void* ThreadSaida(void *arg);

    int main(int lArgc, char *pcArgv[])
    {
  22. Algorism, I also could not translate, I installed...

    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...
  23. It depends on the size of the part being weighed....

    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...
  24. Algorithm to identify the correct weight of a piece.

    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...
  25. Thanks Algorism, Exactly what I need

    Thanks Algorism,
    Exactly what I need
Results 1 to 25 of 187
Page 1 of 8 1 2 3 4