Search Results - CodeGuru Forums
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: Bfrancesco

Page 1 of 2 1 2

Search: Search took 0.02 seconds.

  1. Replies
    72
    Views
    7,286

    Re: Sending Byte to serial port

    In that link there is the equation B(z). Is it sufficient to implement the filter FIR1(N,Wn) in c++?
  2. Replies
    72
    Views
    7,286

    Re: Sending Byte to serial port

    I'd need the algorithm of matlab FIR.
  3. Replies
    72
    Views
    7,286

    Re: Sending Byte to serial port

    I don't know the algorithm. With Matlab I use only this command: B = fir1(N,Wn) where N is the order and the Wn the cut-off frequency.
  4. Replies
    72
    Views
    7,286

    Re: Sending Byte to serial port

    One question please: I implemented a low-pass filter FIR of 12th order and 5Hz cut-off frequency. I'd like to implement the same filter in c++. Can you suggest something?
    Thank you
  5. Replies
    72
    Views
    7,286

    Re: Sending Byte to serial port

    Thank you very much 2kaud! now it works correctly!
  6. Replies
    72
    Views
    7,286

    Re: Sending Byte to serial port

    I'm trying to send encoded bytes (The codification with other code is made). I have understood that to stamp in the MFC application I must use "TRACE" and not "printf", but the real problem is that...
  7. Replies
    72
    Views
    7,286

    Re: Sending Byte to serial port

    This is the complete code:


    ///////////////////////////////// Includes //////////////////////////////////

    #include "stdafx.h"
    #include "SerialPort.h"


    /////////////////////////////////...
  8. Replies
    72
    Views
    7,286

    Re: Sending Byte to serial port

    I'm trying but I don't know if it's correct, because i don't read any error when I compile, but none window appears to read the byte that I send...
  9. Replies
    72
    Views
    7,286

    Re: Sending Byte to serial port

    Hi

    Now I have obtained the correct packet byte to send after coding and CRC calculation. This is: "01 02 04 01 02 09 0c 10 02 06 12 01 01 13 01 01 49 f1 00"
    Now I want to send it using the...
  10. Replies
    72
    Views
    7,286

    Re: Sending Byte to serial port

    Yes, Thank you!
  11. Replies
    72
    Views
    7,286

    Re: Sending Byte to serial port

    OK thank you. I didn't find http://msdn.microsoft.com/en-us/libr...(v=vs.80).aspx.
    Why the compiler gives the follow error:
    - syntax error: ';' before identifier ''^" ?
  12. Replies
    72
    Views
    7,286

    Re: Sending Byte to serial port

    One fast question...
    I'm implementing a 16bit CCITT CRC algorithm and I have found this sample:


    unsigned int crc(unsigned char data)
    {
    static unsigned int crc;

    crc = (unsigned...
  13. Replies
    72
    Views
    7,286

    Re: Sending Byte to serial port

    Well! Thank you! This is a very good forum. I forgot to create
    I have finished my second step with success: encoding and decoding the packet! And thanks to "printf" I have verified that all works...
  14. Replies
    72
    Views
    7,286

    Re: Sending Byte to serial port

    there aren't any errors with this code.
  15. Replies
    72
    Views
    7,286

    Re: Sending Byte to serial port

    Pardon...this is the code:


    int main()
    {
    const unsigned char text[] = {0x01, 0x01, 0x01 , 0x00, 0x00, 0x00, 0x01, 0x00, 0x04, 0x01, 0x00};
    unsigned char codify[200];

    StuffData(text,...
  16. Replies
    72
    Views
    7,286

    Re: Sending Byte to serial port

    This code show strange characters without errors:
  17. Replies
    72
    Views
    7,286

    Re: Sending Byte to serial port

    I tried before to write!!! but it doesn't work (I have errors when it compiles or i read very strange characters) and for this reason I want to know if it is correct...
  18. Replies
    72
    Views
    7,286

    Re: Sending Byte to serial port

    Ok I thank you very much.

    the follow code ran with success, but I'd like to see the encoding packet. I have thought to use printf, is it correct?


    int main()
    {
    const unsigned char...
  19. Replies
    72
    Views
    7,286

    Re: Sending Byte to serial port

    OK thank you very much! Also if the problem is to send this packet: 0x01, 0x01, 0x01 , 0x00, 0x00, 0x00, 0x01, 0x00, 0x04, 0x01, 0x00. Not an Array of char.
  20. Replies
    72
    Views
    7,286

    Re: Sending Byte to serial port

    I'm improving and now i'm trying and I'd like to estabilish a connection between 2 devices also if it's not very simple for me.
  21. Replies
    72
    Views
    7,286

    Re: Sending Byte to serial port

    I'm reading and I'm trying many applications.
  22. Replies
    72
    Views
    7,286

    Re: Sending Byte to serial port

    I have some problems...I'm a new programmer and all codes are not simple for me now. Are there some example code to understand how i can do it?
    Thank you and I'm sorry.
  23. Replies
    72
    Views
    7,286

    Re: Sending Byte to serial port

    Yes, but i don't understand well how i can do it.
  24. Replies
    72
    Views
    7,286

    Re: Sending Byte to serial port

    I copied that from here: http://www.stuartcheshire.org/papers/COBSforSIGCOMM/ (at the end of page)
  25. Replies
    72
    Views
    7,286

    Re: Sending Byte to serial port

    thank you very much Victor for your help! I'm a new programmer, but i'm improving and the communication between PC and device has been established also with C++ language. I discovered that I have...
Results 1 to 25 of 34
Page 1 of 2 1 2


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center