Home AMX User Forum NetLinx Studio

7 bit telegram

I need help :-)

I need to send to device : 7 bit ASCII printable character, i.e. no control characters, providing values between hex 20 and 79

How to send 7 bit ascii char ? All the time, I receive answer that message ack, but invalid caracter in data feild.

Baud rate is 1200, E , 7 , 1

Comments

  • a_riot42a_riot42 Posts: 1,624
    VladaPUB wrote: »
    I need help :-)

    I need to send to device : 7 bit ASCII printable character, i.e. no control characters, providing values between hex 20 and 79

    How to send 7 bit ascii char ? All the time, I receive answer that message ack, but invalid caracter in data feild.

    Baud rate is 1200, E , 7 , 1

    A lookup table would be something you could do.
    Paul
  • VladaPUBVladaPUB Posts: 139
    a_riot42 wrote: »
    A lookup table would be something you could do.
    Paul

    Like D = $44 ?
  • jweatherjweather Posts: 320
    VladaPUB wrote: »
    I need help :-)

    I need to send to device : 7 bit ASCII printable character, i.e. no control characters, providing values between hex 20 and 79

    How to send 7 bit ascii char ? All the time, I receive answer that message ack, but invalid caracter in data feild.

    Baud rate is 1200, E , 7 , 1

    The NXC-COM2 can be configured for 7 data bits, but NI-X100 controllers can't. One approach would be to configure your NetLinx port for 8N1 and ignore the high bit of each byte received (it will be the parity bit). What's the device? What are you trying to control it from?

    Once you get the port configured correctly, you just send strings normally from your program, no lookup table required.
Sign In or Register to comment.