This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi all,
I need to send a specific sequence of hex bytes like 0x00,0x80,0x8F etc using
MSP430F5529 USB CDC example 3(echo).
Since hyperterminal apllication cannot be used for this purpose I am using RealTerm free software.
All other values works fine(i.e echo) but problem occurs with 0x00,
whenever I send 0x00 I dont see any display on the terminal,I have also checked the
MSP430 buffer memory and nothing is written.
Thankyou in advance,
Are you sure you send 0x00 at all? Many programs do a check like if(x) to test whether there's something to do. And in case of 0x00, this results in no. This includes e.g. the windows standard input handlers, which refuse to accept an ALT-0 sequence as a character.
You can use hyper term (I recommend downloading the newer version from the net, the one that comes with windows is stone old and buggy) for sending data sequences by defining macros. Works fine. Even for 0x00.
Yes I am sending 0x00 through RealTerm, I think RealTerm is better than windows hyperterminal in this case.
Prad said:Yes I am sending 0x00
Prad said:I think RealTerm is better than windows hyperterminal in this case.
I actually tried using the H-term PC tool to transmit and receive hex/binary values (0x00h, 0x80h and 0xFFh) and was able to do so. Screen shot below:
I downloaded the RealTerm PC application, but the tool did not show any COM ports beyond Port 22 (the MSP430 CDC device came up on COM 94 on my PC) and so was not able to check the same.
Regards,
Bhargavi
Prad said:I am not having problem with printable digit character '0'(whose ASCII value is 48),but with 0x00 or 0,
That's what I was talking about. The macro function of the newest (2002) HyperTerm accepts ALT-0 (CTRL-@) as value and sends it properly.
I'm sorry, but I cannot easily install new software here, including RealTerm. So I cannot test whether RealTerm does send a 0x00 at all. Well, it should. So back to the question why you're not receiving anything. With the given information: I don't know.
Hi,
Thankyou,
I was able to transmit and receive the data,
but in case of Example 1,if the first byte is "00" nothing is trasmitted or received.
Out of curiosity, I tried to send a zero value with HyperTerm to my 'Debug interface' (actually an RS232 to RS485 converter with integrated message decoder), which is based on MSP1611. And I observed som strange things. The problem is that my implementation of getchar() returns 0 if there is a serial timeout. And the main loop, which was intended to forward the data bytes to the RS485, didn't check for the EOF flag. I quickly rewrote it and all bytes I send to the RS232 now from hyperterm are properly forwarded (and echoed back), now including a zero value. YOu cannot, however, send a 0 by typing ALT-0 (ALT-1 works for sending a binary 1). If put into a Macro (represented as <CTRL-@>), it works perfectly, alone, first of several bytes or in the middle of a sequence.
My guess is that the function that pulls the data from USB on the MSP (if any) or the function that groups and pushes an output sequence to the virtual serial port to the USB has a similar '0 = nothing to do' bug. So the problem could be the virtual com port driver.
**Attention** This is a public forum