- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you for your answer...
I read the documentation:
iresult =
SPORT_SET_STATE (port [, baud] [, parity] [, dbits] [, sbits])sbits:
(Optional; input) Integer. The stop bits for the port (0, 1, 2 = 1, 1.5, 2).I don't understand what that mean : "(0 , 1, 2 = 1, 1.5, 2)"
what should I write if I want 2 stop bits ???
Thanks,
Eric Grenon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I don't know why your code doesn't work. Dealing with serial ports can be difficult. But I see that you don't check the result values - you should. They may tell you something.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'm suspicious about the stop bits setting. Are you sure that it is supposed to
be 2? In olden days, the baud rate was always a multiple of
(start bit + parity bit + data bits + stop bits), and you had 110 baud =
10 characters per second, 300 baud = 30 characters per second, 1200
baud = 120 characters per second. 110 baud was the odd one, using
11 bits per characters because it had 2 stop bits.The data bits +
parity bit would always add up to 8 (i.e. 8 data bits, no parity or
7 data bits, odd parity). For 9600 baud, I think I would expect the
stop bits to be 1.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I verified in the user manual of the multimeter and it's specified 2 stops bits:
I have an other question: should I do something to configure DTR / DSR ???
RS-232 Interface Configuration
The multimeter is configured as a DTE (Data Terminal Equipment) device. For all communications overthe
RS-232 interface, the multimeter uses two handshake lines: DTR (Data Terminal Ready) on pin 4 and DSR (Data Set Ready) on pin 6.RS-232 Configuration Overview
Configure the
RS-232 interface using the parameters shown below. Baud Rate: 300, 600, 1200, 2400, 4800, or 9600 baud (factory setting)Parity and Data Bits: None / 8 data bits (factory setting)
Even / 7 data bits, or Odd / 7 data bits
Number of Start Bits: 1 bit (fixed)
Number of Stop Bits: 2 bits (fixed)
Thank you, Eric Grenon

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page